Forum Replies Created

Viewing 15 posts - 17,386 through 17,400 (of 26,484 total)

  • RE: Delete statment not in

    Ninja's_RGR'us (1/18/2010)


    With that many rows you may also consider 2 more things :

    How many rows will be left after the delete? Sometimes it's just faster to figure out...

  • RE: updating 1,000 records takes 5-6 minutes I would like to decrease the time that takes

    Jeff Moden (1/17/2010)


    itsmeman (1/5/2010)


    This issue is done for now....

    Two way street here... please explain how this issue is "done for now".

    My guess, they ran the update that took 11...

  • RE: updating 1,000 records takes 5-6 minutes I would like to decrease the time that takes

    I have to agree with Gail again. If you can provide us with more specifics, table DDL (CREATE TABLE statement(s)), sample data (series of INSERT INTO statement(s)) for then...

  • RE: returning one value at a time to variable

    Should have seen this to begin with, here is what you need to do:

    Change:

    INSERT INTO Files (Dir, FilePath)

    (

    SELECT('O', filePath) FROM #Temp

    )

    To:

    INSERT INTO Files(Dir, FilePath)

    SELECT 'O', filePath FROM #Temp;

  • RE: returning one value at a time to variable

    What is the exact error message you are getting.

  • RE: returning one value at a time to variable

    ragie (1/16/2010)


    sorry bout that Lynn.

    i'm writing a sp where the goal is to get two output parameters: the fileid, and filepath. as you saw from the first post, i...

  • RE: returning one value at a time to variable

    ragie (1/16/2010)


    Thanx Lynn. i don't know why i didn't see that!

    quick question, is it possible to do an INSERT SELECT like this:

    INSERT INTO Files (Dir, filePath)

    SELECT('O', filePath) FROM #Temp

    it's...

  • RE: Need simple date function help

    Jeffrey Williams-493691 (1/15/2010)


    Lynn Pettis (1/15/2010)


    Ready to smack yourself on the forehead??

    SET @start_dt = (SELECT dateadd(hh, 19, dateadd(day,datediff(day,0,GetDate())- 9,0)))

    SET @end_dt = (SELECT dateadd(hh, 19, dateadd(day,datediff(day,0,GetDate())- 2,0)))

    And, just to make things a...

  • RE: Backup / Restore question?

    backup data base MyDB to disk = N'MyDB.bak'; -- remove space between data and base, only way to get this to post from work

    restore database MyDBClone

    from disk = N'MyDB.bak'

    with...

  • RE: How to find backup type (differential or full) from restore filelistonly output

    Use RESTORE HEADERONLY, that will tell you what type of backup the native backup file contains.

  • RE: CHECKDB

    Not really, your only choice is to run DBCC CHECKDB with repair_allow_data_loss option. The optimum solution would have been to restore from a previous database backup prior to the...

  • RE: CHECKDB

    So you are saying that you have no previous backups made before getting this CHECKDB error, correct?

  • RE: Backup Error

    One, I don't use Redgate SQL Backup. Two, it looks like the error message basically tells you what you need to do.

  • RE: Partitioned View

    One, SQL Server 2008 supports partitioned tables, you may want to read about them in BOL (Books Online, the SQL Server Help System).

    Two, how is the ID determined?

    Three, good luck....

  • RE: Partitioned View

    The first step is to know the structure of the table. Oh, we don't. Can you post the DDL (CREATE TABLE statement) for the table?

    Second step, what edition...

Viewing 15 posts - 17,386 through 17,400 (of 26,484 total)