Forum Replies Created

Viewing 15 posts - 6,961 through 6,975 (of 7,597 total)

  • RE: Tracking the successful/un-successful execution of T-SQL and then making a choice

    Sean Lange (12/28/2012)


    TRY/CATCH sounds like the exact thing you need.

    begin transaction

    begin try

    -- PART 1 --

    Insert into first table

    Delete from first table

    -- PART 2 --

    Insert into a second table

    Update my second...

  • RE: Not null Foreign key self-referencing identity column

    You could use an AFTER INSERT trigger to insure that the parent id got set to the identity column values ... but you still couldn't define the parent id as...

  • RE: Keeping all three environment(Dev,Stag,Prod) in sync

    I would never try to re-run the prod processes to get the data for other environments. That would be a nightmare to keep clean.

    One possibility is to mix differential...

  • RE: Why Allow Heaps at All?

    As noted, heaps are great for "work" / "staging" tables.

    Also, I guess in theory a heap could be more efficient for certain types of tables with multiple nonclust indexes, particularly...

  • RE: how to fetch records from multiple tables

    Sean Lange (12/28/2012)


    Joe I certainly understand your position but I do have a question. You continually refer to Cindy Lou Who as employee #42. In a Joe Celko database what...

  • RE: how to fetch records from multiple tables

    Bhuvnesh (12/27/2012)


    Also please post exec plan(people would prefer graphical plan 😛 ) along with index definition too as index play significant role to pull out the data faster.

    Agreed....

  • RE: tempdb fileplacement

    SQLRNNR (12/26/2012)


    stakes (2/28/2011)


    Hi all,

    I have a 1T, high I/O database in a SAN environment on which I have planned the database files this way:

    L: logfile (8k)

    M: mdf file (64k)

    N: ndf...

  • RE: Table documentation advice

    Btw, the column data types are not stored in my documentation tables -- I retrieve them at gen time from system views. This adds a little overhead, but insures...

  • RE: tempdb fileplacement

    Again, if you've got unlimited funds, definitely go RAID10 (or SSD) throughout, but because of the better resiliency, even if pure reads are somewhat slower.

    Presumably all of us have done...

  • RE: Table documentation advice

    Used .rtf instead.

    The hyperlinks don't work, but it still gives you the flavor.

    The underlying html is generated from a table that contains the text documentation.

    I'm still working to fully extended...

  • RE: Table documentation advice

    Sean Lange (12/26/2012)


    ScottPletcher (12/26/2012)


    Sean Lange (12/26/2012)


    ScottPletcher (12/26/2012)


    Sean Lange (12/26/2012)


    SQL_Kills (12/26/2012)


    Hi,

    First of all I hope everyone has had a good Christmas!

    Just wanted to know if anyone documents there table using...

  • RE: Table documentation advice

    Sean Lange (12/26/2012)


    ScottPletcher (12/26/2012)


    Sean Lange (12/26/2012)


    SQL_Kills (12/26/2012)


    Hi,

    First of all I hope everyone has had a good Christmas!

    Just wanted to know if anyone documents there table using MS_Description? I'm struggling...

  • RE: Len did not display right size

    It really looks like the column is "char(11)" and not "varchar(11)".

    Can you verify the column's data type?

  • RE: Table documentation advice

    Sean Lange (12/26/2012)


    SQL_Kills (12/26/2012)


    Hi,

    First of all I hope everyone has had a good Christmas!

    Just wanted to know if anyone documents there table using MS_Description? I'm struggling to think how...

  • RE: tempdb fileplacement

    Lynn Pettis (12/25/2012)


    ScottPletcher (12/25/2012)


    Lynn Pettis (12/24/2012)


    ScottPletcher (12/24/2012)


    You also need to verify that the log LUNs are RAID10 and the data LUNs are RAID5 (typically that is the best performance).

    If you're...

Viewing 15 posts - 6,961 through 6,975 (of 7,597 total)