Forum Replies Created

Viewing 15 posts - 24,301 through 24,315 (of 26,484 total)

  • RE: Best Practice

    Not sure if MERGE is needed here. The question only indicted that a record needed to be inserted if it did not already exist in the database. Nothing...

  • RE: Best Practice

    Could just be me, but answer 2 just seemed to be the logically correct answer to the question.

    😎

  • RE: Move database/ldf file

    Not sure about the Alter (it may require a restart of SQL Server), but if your app can afford some down time another way to accomplish the move is to...

  • RE: Is it possible to load a new DB with .bak file of other DB?

    Preston (9/4/2008)


    Lynn Pettis (9/3/2008)


    Preston (9/3/2008)


    What does FILE = 1, NOUNLOAD, & STATS = 10 mean in a Restore statement? Thanks.

    Lookup RESTORE in BOL. If you still don't understand,...

  • RE: Is it possible to load a new DB with .bak file of other DB?

    Preston (9/3/2008)


    What does FILE = 1, NOUNLOAD, & STATS = 10 mean in a Restore statement? Thanks.

    Lookup RESTORE in BOL. If you still don't understand, let us know...

  • RE: Is it possible to load a new DB with .bak file of other DB?

    Symantics. If you restore DB2 using a just created DB1 backup, you have the same thing.

    😎

  • RE: Backup Exec general questions

    I'd have to agree with DavidB. I worked in an environment where I was trying backups directly to tape. I found the disk to disk backups were faster...

  • RE: BAK files -> shrinking

    Another option is HyperBac. We are using it, and it works quite well for us, and we still use standard SQL Server backup/restore commands.

    Compression is about 80% and backup/restore...

  • RE: Is it possible to load a new DB with .bak file of other DB?

    sg2000 (9/3/2008)


    To all responders:

    Thanks very much for the suggestions. I chose to use the one suggested by Leo (using Restore Wizard) since it is the easiest.

    Grant Fritchey: Yes, you did...

  • RE: Recover deleted records

    Go to redgate.com. If memory serves, they have a free tool that will read a SQL Server 2000 transaction log file (if your database is using the full or...

  • RE: Odd Construct in a WHERE clause

    GilaMonster (9/3/2008)


    The problem with this is that the repeated (Column = Variable or variable = constant) expressions confuse the optimiser's estimations of rows affected (on 2005 definitly, not sure about...

  • RE: Odd Construct in a WHERE clause

    What this does (colOne = @num1 or @num1 = 0) does is create a conditional where clause statement. If the value of @num1 = 0, you get all rows...

  • RE: Custom Sequence Values

    rbarryyoung (9/3/2008)


    You want the DENSE_RANK() function:

    Select Id, DENSE_RANK() OVER(order by Id) as [Seq_Num]

    From MyTable

    Geez, get side tracked by work for a couple of minutes and someone beats me to...

  • RE: Odd Construct in a WHERE clause

    It really has nothing to do with SQL itself, it is simple logic.

    Let's look at the first part of the WHERE clause:

    (colOne = @num1 or @num1 = 0)

    This part is...

  • RE: Custom Sequence Values

    Also, is it possible that data may be deleted that may result in sequence numbers changing? Such as id 221777 in your sample data being deleted. Would 221778...

Viewing 15 posts - 24,301 through 24,315 (of 26,484 total)