Forum Replies Created

Viewing 15 posts - 50,776 through 50,790 (of 59,078 total)

  • RE: Running Total variable resolution

    No, the order is predictable especially if you supress parallelism with MAXDOP... please see the following article...

    http://www.sqlservercentral.com/articles/Advanced+Querying/61716/

    ... and just say "NO" to cursors 😛

  • RE: Cursor not working

    Heh... yeech... you can use a cursor, if you like... here's your's with the fix...

    DECLARE @MyCmd VARCHAR(100)

    declare @database nvarchar(128)

    declare mycursor CURSOR LOCAL

    FOR select name from master.dbo.sysdatabases where dbid>5

    OPEN mycursor

    fetch...

  • RE: How to import data from a CSV file?

    Yes there is... you will need to build a BCP Format File, but it's worth it for the sheer speed of Bulk Insert...

    The format file would look something like this...

    8.0

    4

    1...

  • RE: Parsing a cell into multiple rows

    Hi Bill,

    I'm a little confused by the data you've posted. Take a look at the URL I carry in my signature line... providing data and table info in that...

  • RE: cursor through user databases the SEQUEL

    Simon_L (5/1/2008)


    Jeff Moden (5/1/2008)


    Ok... thanks... just trying to figure it all out... I think that's the last piece. I'll see what I can do tonight.

    thanks Jeff appreciated 🙂

    Sorry, Simon......

  • RE: SQL Server Project

    Not with 60 points in 79 visits, you haven't 😉

  • RE: Export SQL unique format

    Sorry, my mistake... you don't need a CASE at all...

    DECLARE @DemoTable TABLE (Amount VARCHAR(15))

    INSERT INTO @DemoTable (Amount)

    SELECT '$102.50' UNION ALL

    SELECT '-$57.75'

    SELECT REPLACE(STR(ABS(CAST(Amount AS MONEY)*100.0),8),' ','0')

    ...

  • RE: Export SQL unique format

    Don't need a case statement to figure the zero's...

    DECLARE @DemoTable TABLE (Amount VARCHAR(15))

    INSERT INTO @DemoTable (Amount)

    SELECT '$102.50' UNION ALL

    SELECT '-$57.75'

    SELECT REPLACE(STR(ABS(CAST(Amount AS MONEY)*100.0),8),' ','0')

    ...

  • RE: SQL Server Project

    You want projects to practice on? Why go anywhere else... stay on this forum and start answering questions. You won't find a better or more diverse set of...

  • RE: Last time when did the SP run

    So, turn it on... end of proc trace takes no overhead and beats the heck out of modifying 300+ procs 🙂

  • RE: The T-SQL Quiz

    Matt Miller (5/2/2008)


    Grant Fritchey (5/2/2008)


    How did you know what I had planned for the week-end... 😀

    I have to ask though, what's drowning breath exercise? While we do incorporate a lot...

  • RE: The T-SQL Quiz

    DFalso, if you get hit by a bus tomorrow and your boss can't figure out your code, then you're proving exactly what I said... your code is not production quality...

  • RE: Row-By-Row Processing Without Cursor

    poornima.s_pdi (5/1/2008)


    Hi Jeff,

    Thanks a lot for ur reply.I learnt more from ur sites.very good snd useful forum...

    Thank you for the feed back, Poornima... are you all set now?

  • RE: Row-By-Row Processing Without Cursor

    Funny, they work fine for me... they take me right to the post I wanted.

  • RE: Add a temp unique ID column to a view?

    ebarsamian (5/2/2008)


    Thanks for the help. This is the sql that puts the stored procedure into a temp table with a unique ID:

    CREATE TABLE #trustgoals

    (ID int IDENTITY,

    Trust varchar(100),

    InitialReview varchar(100),

    ReReview varchar(100),

    TotalReview...

Viewing 15 posts - 50,776 through 50,790 (of 59,078 total)