Forum Replies Created

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

  • RE: T-SQL

    Actually original question (that I was answering) was

    I have a table XYZ with 3 INT columns. There are 3000 records already in this table. Now I need a copy of...

  • RE: T-SQL

    SELECT INTO loses all your original indexes, constraints etc - much better to copy the structure of original table by scripting it, add the Identity column, rename old table, build...

  • RE: Two scripts to spell out numbers in words

    Sort of conveniently omits the really tricky bit - the "and"

    10129 = ten thousand one hundred and twenty nine

    The rules for the "and" are rather complex ... e.g.

    101202 = one...

  • RE: How to improve insert performance

    If you decide to do that, pick a nice low FILL FACTOR or the page splits will be even more painfull than the hot spot.

    Indeed.

  • RE: database and transaction logs on same drive?

    Jeff Moden (9/2/2008)


    Yeaup... but if you loose the disk where the log file is, you're still going to miss data regardless of backups.

    I don't really agree - surely if the...

  • RE: How to improve insert performance

    In addition to the other posts you will always have a "hotspot" on the last data page of a clustered index on and identity column - this is because the...

  • RE: database and transaction logs on same drive?

    I surprised that the most obvious reason has not been given:

    If your data file disk fails you can recover to the failure point in time with the last full backup...

  • RE: Update trigger help.

    noeld (6/3/2008)


    sometimes is good to warn people about "sending emails from triggers may not be what you want" 😉

    Yes - I really think they should be warned ....

    You...

  • RE: Autonumbering Issue - Very Urgent **

    OK - I guess I misunderstood your requirement - I thought it was just getting in the existing data you had a problem with. Your manual sequence table will probably...

  • RE: Autonumbering Issue - Very Urgent **

    Seth Delconte (5/15/2008)


    James, I think you are right. SET IDENTITY_INSERT YOURTABLENAME ON should perform the same function as (in DTS) checking the Enable Identity Insert box, right?

    Seth

    Correct

  • RE: Autonumbering Issue - Very Urgent **

    If I understand you correctly the system will use Identity in the new database but your problem is pushing in existing data that already has ID's allocated via you manual...

  • RE: Generate random dates

    select cast(cast(RAND()*100000 as int) as datetime) will give you a random date between 1 Jan 1900 and 16 oct 2173 - you can see the range from

    select cast(cast(0*100000 as...

  • RE: Fastest way to copy backup file from server 1 to server 2

    Windows is rubbish at file copying - back in the old Netware days it had optimised file copy commands (NCOPY) to copy between servers - in all the time Microsoft...

  • RE: RGB calculation

    Assuming your fields are called RGB for RGB value and R, G & B for individual parts then

    RGB = 65536 * R + 256 * G + B

    This is because...

  • RE: Need help in Restoring a SQL Database

    I think you have a duff backup - try taking a fresh backup.

    Also for this sort of thing I would strongly recommend restoring first to a SQL server instance that...

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