Forum Replies Created

Viewing 15 posts - 31 through 45 (of 200 total)

  • RE: source unpivot(PIVOT and UNPIVOT)

    look through this post by pinal dave

    http://blog.sqlauthority.com/2008/05/29/sql-server-unpivot-table-example/

    --------------------------

    I long for a job where my databases dont have any pesky users accessing them 🙂

  • RE: Help with number formatting

    You're still converting the numbers you're performing the arithmetic on

    try this - does it work better for you?

    SELECT

    CAST

    (

    (SUM

    (

    CASE WHEN STAT_PRODUCTIVITY.Action != 'Folder'

    AND STAT_PRODUCTIVITY.Action != 'Assigned'

    THEN Number...

    --------------------------

    I long for a job where my databases dont have any pesky users accessing them 🙂

  • RE: Question about scripting out of stored procedures

    Perhaps this link from @AndyLeonard will help

    http://sqlblog.com/blogs/andy_leonard/archive/2010/07/19/why-does-ssms-generate-create-scripts-with-exec-dbo-sp-executesql.aspx

    --------------------------

    I long for a job where my databases dont have any pesky users accessing them 🙂

  • RE: Error 5, Access denied?

    file permissions will sting you if they're not local admin or whatnot..

    ah well.. i'm sure the user will be back.. when they are.. check the folder permissions and see how...

    --------------------------

    I long for a job where my databases dont have any pesky users accessing them 🙂

  • RE: Help with number formatting

    Yep, cause for example:

    If you had 18.642372121 / 37.33121

    What you're doing is

    18.64 / 37.33 = 0.49933029.....

    But what you want is the end result as 2 digits, not the entire math.....

    --------------------------

    I long for a job where my databases dont have any pesky users accessing them 🙂

  • RE: Error 5, Access denied?

    Check the users permissions - do they have permissions to start a service? do they have permissions to the file structure etc?

    --------------------------

    I long for a job where my databases dont have any pesky users accessing them 🙂

  • RE: Help with number formatting

    What's your desired result?

    --------------------------

    I long for a job where my databases dont have any pesky users accessing them 🙂

  • RE: Design the datamodel

    My intention wasnt to sound rude. i was just being sensible. i already posted my reasoning in the previous post.

    op is clearly over his/her head, so they shouldnt continue...

    --------------------------

    I long for a job where my databases dont have any pesky users accessing them 🙂

  • RE: Design the datamodel

    Actually.. you are here for some'bludy' advise from me, and anyone else who replies.. thats how you learn. starting your knowledge is one thing.. as you say, we all...

    --------------------------

    I long for a job where my databases dont have any pesky users accessing them 🙂

  • RE: Design the datamodel

    if you don't know, you're not the right person for the job. I'd advise seeking help from a professional, or explain to your boss that you they need to...

    --------------------------

    I long for a job where my databases dont have any pesky users accessing them 🙂

  • RE: uSING XP_CMDSHELL

    you could just use xp_cmdshell to execute the cmd file..

    though personally, I don't like xp_cmdshell to be enabled at all - i'd advise looking at other options, but thats just...

    --------------------------

    I long for a job where my databases dont have any pesky users accessing them 🙂

  • RE: Export Data from SQL to Excel

    Why not just use bcp? Its easy to do.. Open a command (the black dos type window) window and run the command..

    bcp <yourdb>.<yourschema>.<yourtable> out <filename> -c -t,...

    --------------------------

    I long for a job where my databases dont have any pesky users accessing them 🙂

  • RE: Converting rows into columns(MSSQL and Crystal Report)

    Sure

    right click your stored procedure and click Script Stored Procedure As - then pick ALTER To - Then pick new query window

    This will display your stored procedure - you can...

    --------------------------

    I long for a job where my databases dont have any pesky users accessing them 🙂

  • RE: Converting rows into columns(MSSQL and Crystal Report)

    modify your stored procedure and add a PIVOT

    --------------------------

    I long for a job where my databases dont have any pesky users accessing them 🙂

  • RE: need a brief explanation of a question

    ah ok - then in that case i don't feel quite so clueless - i was looking at this and was like.. HUH?

    --------------------------

    I long for a job where my databases dont have any pesky users accessing them 🙂

Viewing 15 posts - 31 through 45 (of 200 total)