Forum Replies Created

Viewing 15 posts - 691 through 705 (of 1,479 total)

  • RE: INSERT STORED PROCEDURE THAT DOESNT INSERT DUPLICATES

    You could do it that way:

    IF NOT EXISTS (SELECT * FROM usp_tblDivisionINSERT WHERE DivisionAbbr = @DivisionAbbr AND DivisionName = @ DivisionName)

    INSERT INTO…

    You’ll might have to modify it to...

  • RE: Bulk Insert Q

    Jeff Moden (1/20/2010)


    You can also use a pass through view with the columns in the correct order.

    This will work on most cases, but in case that the file has more...

  • RE: DBREINDEX and Log Shipping

    Its been a while since I’ve worked with log shipping, but as far as I remember, it simply does the reindex operation on the secondary database just like it was...

  • RE: Bulk Insert Q

    If I understood your question correctly, you can use a format file in order to insert data from a file that has different number of values then the table’s columns...

  • RE: Missing 31 stored procedures after migrating to sql 2005

    Are you using a backup file that contains few backups of the database? If you are doing a backup and pointing it a file that already exists and has...

  • RE: Missing 31 stored procedures after migrating to sql 2005

    Check the creation date of those procedures in the source database and compare it with the Backup's date.

    Adi

  • RE: How do I Create a Temp table with Incr dates for each day

    You can create a table with the needed date and then use a cross join with your original table in order to get all the combinations between each date and...

  • RE: DateTime Field Search In Table

    Notice that both queries are not the same. The second query that uses the between operator will also return records where column SAMPLE_DATE has the date 2003-04-10 in it...

  • RE: Case When Then Error

    arun.sas (1/18/2010)


    Hi,

    What you have written in the statement is correct, but you should convert the date time type by convert (varchar (15), tet.dteTravelDate, 103)

    (case when pt.intPointTypeID = 1 then convert...

  • RE: What Node am I on?

    Matt Miller (#4) (1/15/2010)


    Seth Lynch (1/15/2010)


    Spot on 😛

    Thank-you

    Seth

    .

    Keep in mind that may execute under the service account context, which could show you the location of the IIS server serving up...

  • RE: SERVER REBOOT REPORT

    Only way that I know is to check old SQL Server’s error logs and\or event viewer logs from that time frame.

    Adi

  • RE: Drop and Recreate constraints

    There are some tables that you can’t truncate. One of the conditions is that the table is not referenced in a foreign key constraint. Unfortunately even if...

  • RE: Create procedure permission in schema

    As far as I know, create procedure permissions can be granted (and denied) only on a database level and not on schema level. You could grant it to the...

  • RE: INSERT Error

    Jeff Moden (1/17/2010)


    Ummmm... I tried to find xp_restore_filelistonly in my installation of 2k5 and it doesn't exist nor is it in Books Online.

    If I remember correctly this is an extended...

  • RE: sql 2000 FOR XML

    I don’t have here a SQL Server 2000, so I can’t try a solution. One way of doing so is to add a new level to the query. ...

Viewing 15 posts - 691 through 705 (of 1,479 total)