Forum Replies Created

Viewing 15 posts - 16 through 30 (of 532 total)

  • RE: T-SQL help

    Looks like you want someone to do your homework.

    If you want help, post what you're trying and specifics of how your efforts are not getting you the data you're expecting.

  • RE: Regular expression in T-sql

    The Dictionary.com definition of kludge:

    a software or hardware configuration that, while inelegant, inefficient, clumsy, or patched together, succeeds in solving a specific problem or performing a particular task

    I would not...

  • RE: Running out of Identity values

    GSquared (10/3/2012)


    A WaitFor in such a process is commonly there to give the server a chance to finish other threads/processes in between loops.

    However, on a process like this, if you...

  • RE: Running out of Identity values

    while 1 = 1 loops just fine. It will break out of the loop when applicable because of the break statement.

    My bad on @@ROWCOUNT ... that value should be...

  • RE: Running out of Identity values

    Wow, they built a billion record heap? Ouch. Sorry man.

  • RE: Running out of Identity values

    sql-lover (10/3/2012)


    bt,

    That's a very nice piece of code, thank you so much. However, I wonder how many locks (if one) it will create. Like I said, the production server has...

  • RE: Best way to effienctly store hugh amounts of data

    Maddave (10/3/2012)


    Thanks guys, all very interesting stuff. I'm getting more in to how this application is implemented and it's becoming scary. As Sean Lange mentioned, the developers have...

  • RE: Best way to effienctly store hugh amounts of data

    aaron.reese (10/3/2012)


    out of interest then; if I was selling books (ISBN, Author, Pages), wine (bottle size, ABV,Vinyard,grape,acidity) and shirts (material,collar type, sleeve length), how would you recommend storing the...

  • RE: Top Operations returns rows in different order when run within a SP

    The term for the issue in your query that you're dealing with is that it is "non-deterministic". Although you experienced the same order of results in the past, there...

  • RE: Running out of Identity values

    This is the kind of code I was referring to if you choose to go with a chunking process rather than BCP. We've had similar projects as yours and...

  • RE: Running out of Identity values

    Depending on your timeline, you could do this with virtually zero downtime. Rather than doing a bulk copy, you could easily chunk this up since you're not looking for...

  • RE: Running out of Identity values

    ScottPletcher (10/2/2012)


    Maybe I'm missing something.

    Why not just ALTER the column to be a bigint instead of an int?

    He said these are very big tables. Altering the column means that...

  • RE: Optimize query needed

    I'm not sure how logical this project is, but it seemed interesting to do this without looping. It was fun.

    declare @b-2 bigint = 31;

    declare @out varbinary(128) =...

  • RE: Help converting a decimal time in db4 to an actual time in sql server.

    declare @input int = 113804

    -- these are the different parts that will be used

    select @input / 10000

    select (@input / 100) % 100

    select @input % 100

    -- SQL Server 2008 Query

    select convert(time,...

  • RE: Best way to effienctly store hugh amounts of data

    One minor point ... even if you decide to use what they've established, you can make the inserts quite a bit more efficient by ditching the cursor loop. The...

Viewing 15 posts - 16 through 30 (of 532 total)