|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Tuesday, November 23, 2010 2:55 AM
Points: 142,
Visits: 37
|
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Tuesday, November 23, 2010 2:55 AM
Points: 142,
Visits: 37
|
|
Hi All, The following are the references that were used in the write up for the article. It has been missed during the compliation of the article.Please refer to the reference for further details. REFERENCES 1.SQL Server 2005 Books Online
Kindest Regards,
Sureshkumar Ramakrishnan
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Today @ 6:48 AM
Points: 30,
Visits: 241
|
|
Isn't there an error in the first example? Shouldn't the last record in tblsection join to the 4, Test record in tblModule? 
I think that you didn't mean to insert the 4, TEST record into tblModule, correct? D'Arcy
|
|
|
|
|
Right there with Babe
      
Group: General Forum Members
Last Login: Friday, May 17, 2013 9:18 AM
Points: 772,
Visits: 1,825
|
|
Great article! I particularly enjoy the OUTPUT clause. One of the thing that I bi***, er, gripe about is data archiving. It is usually left out of designs until the server fills up. This will be a great boon as I can now write my archive function with only one statement per table and wrap the whole thing in a transaction. My archive database is an exact copy, structurally, of the production database.
ATB
Charles Kincaid
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Tuesday, November 23, 2010 2:55 AM
Points: 142,
Visits: 37
|
|
You are right D'Archy .The section table should not be populated with the records for Module 4. Apologies for that ..Just execute the following script and it should give you the desired results delete from tblsection where fk_moduleid=4 Thanks for your comments
Kindest Regards,
Sureshkumar Ramakrishnan
|
|
|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: Monday, July 30, 2012 10:42 AM
Points: 3,434,
Visits: 519
|
|
Good Article, easy to read and understand.
Regards, Yelena Varshal
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Friday, September 18, 2009 1:07 AM
Points: 5,
Visits: 23
|
|
Couple of things incorrect with the OUTPUT example. There is no 'Oxford' store to update in dbo.tblStore and the SELECT * FROM dbo.StoreAudit should show the InsertedStore as 'Grantham'.
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Friday, February 09, 2007 8:44 AM
Points: 36,
Visits: 1
|
|
| Good work Suresh. I am following this series. Thanks a lot.
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Wednesday, May 09, 2012 10:26 AM
Points: 891,
Visits: 1,958
|
|
| Very good series! My entire shop, with the exception of a one-shot project, is SQL 2000, I'm hoping to move it to 2k5 in the next six months as prep for 2k8. Useful stuff, I only wish that your articles linked to previous/next articles in the series.
|
|
|
|