Forum Replies Created

Viewing 15 posts - 301 through 315 (of 516 total)

  • RE: Remove All Identity Tables

    Nils Gustav Stråbø (10/9/2012)


    Lokesh Vij (10/9/2012)Here you go:

    Won't work. Only one table at the time can have IDENTITY_INSERT OFF

    It will certainly work. Execute the query - this will generate a...

  • RE: Remove All Identity Tables

    vahid.arr (10/9/2012)


    NO friend

    I want To Set Identity Off for All Tables not drop table.

    Here you go:

    SELECT DISTINCT 'SET IDENTITY_INSERT '

    ...

  • RE: #Table

    These are temporary tables. Single and Double hash defines the scope of these tables. Refer the link below where it tempory tables are very nicely explained.

    http://www.simple-talk.com/sql/t-sql-programming/temporary-tables-in-sql-server/

  • RE: Remove All Identity Tables

    Here is the query to get the list of all "User" tables have identity column:

    SELECT DISTINCT Object_name(t.object_id)

    FROM sys.all_columns c

    INNER JOIN sys.tables...

  • RE: Statistics - 3

    Thanks Ron for this great question today as well. It required a little bit of reading before attempting it.

    Happy that I got it correct in the end 🙂

  • RE: View - 8

    L' Eomot Inversé (10/6/2012)


    But all those settings up front are just a red herring - completely irrelevant to the question. It's not a trick question, because it's extremely unlikely...

  • RE: View - 8

    L' Eomot Inversé (10/6/2012)


    It's a question with a correct answer, no scope for argument for that (as I have come to expect from Ron's questions, which seem to be always...

  • RE: Help on Update

    jdelorino (10/5/2012)


    Thank you for your reply,your help is greatly appreciated, more power.

    Please post the correct solution and which query worked for you. This might help us.

  • RE: Help on Update

    I might be wrong as well. Let jdelorino confirm!

  • RE: Help on Update

    Jason-299789 (10/5/2012)


    Lokesh Vij (10/5/2012)


    Here is the modified version with totalcount values:

    SELECT ERRORCODE, ERRORDESC,

    Terminal_1 = MAX(CASE WHEN TERMINALID = 'Terminal_1' THEN TOTALCOUNT ELSE 0 END),

    Terminal_2 = MAX(CASE WHEN TERMINALID =...

  • RE: Help on Update

    Here is the modified version with totalcount values:

    SELECT ERRORCODE, ERRORDESC,

    Terminal_1 = MAX(CASE WHEN TERMINALID = 'Terminal_1' THEN TOTALCOUNT ELSE 0 END),

    Terminal_2 = MAX(CASE WHEN TERMINALID = 'Terminal_2' THEN TOTALCOUNT...

  • RE: SELECT

    mccork (10/4/2012)


    Lokesh Vij (10/4/2012)


    sam.dahl (10/4/2012)


    I recognised the attempt to insert null and hence picked 2,0 because that's what the two select statements return: 2 and 0. It's the insert statement...

  • RE: List all jobs associated with a database

    Abhilash_A (10/4/2012)


    Hi,

    Thanks for the reply.

    This is what i was searching for.Thanks a lot.:-D

    You are welcome Abhilash 🙂

  • RE: SELECT

    sam.dahl (10/4/2012)


    I recognised the attempt to insert null and hence picked 2,0 because that's what the two select statements return: 2 and 0. It's the insert statement that fails.

    +1

    I also...

  • RE: Default Constraint

    I don't think there should be a problem. Here is the sample code which executed perfectly

    CREATE TABLE dftBIT

    (

    id INT,

    ...

Viewing 15 posts - 301 through 315 (of 516 total)