Re: Return Key (identity) on INSERT operation (SQL/ASP)
From: Tibor Karaszi (tibor_please.no.email_karaszi_at_hotmail.nomail.com)
Date: 03/23/04
- Next message: Pete Casey: "Re: Start off server space!"
- Previous message: Joe: "hyperlink to files not in web root"
- In reply to: Tom Moreau: "Re: Return Key (identity) on INSERT operation (SQL/ASP)"
- Next in thread: Aaron Bertrand [MVP]: "Re: Return Key (identity) on INSERT operation (SQL/ASP)"
- Reply: Aaron Bertrand [MVP]: "Re: Return Key (identity) on INSERT operation (SQL/ASP)"
- Reply: Bob Barrows [MVP]: "Re: Return Key (identity) on INSERT operation (SQL/ASP)"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 23 Mar 2004 21:06:14 +0100
> I think I've seen similar writings elsewhere, perhaps in Bill Vaughn's
> ADO/ADO.NET book.
I recall an article in SQLMag a few years back by Bill Vaughn where he
measured I believe a few thousand times improvements using out params
compared to a result set. This was, as I recall it, ADO and I believe that
Bill's assumption here as well was that the major part was in the ADO
handling.
-- Tibor Karaszi, SQL Server MVP http://www.karaszi.com/sqlserver/default.asp "Tom Moreau" <tom@dont.spam.me.cips.ca> wrote in message news:uRwU74QEEHA.3040@TK2MSFTNGP12.phx.gbl... > Actually, when you have a high number of inserts, it's not so negligible. > Craig Utley did a cool article on output vars vs. rowsets in SQL Server > Professional: > > http://www.pinpub.com/html/main.isx?sub=64&story=729 > > > He used ASP pages as a test harness. Craig seems to think that the payback > is in ADO - less overhead in handling the rowset than the output var. > > I think I've seen similar writings elsewhere, perhaps in Bill Vaughn's > ADO/ADO.NET book. > > > -- > Tom > > --------------------------------------------------------------- > Thomas A. Moreau, BSc, PhD, MCSE, MCDBA > SQL Server MVP > Columnist, SQL Server Professional > Toronto, ON Canada > www.pinnaclepublishing.com/sql > > > "Aaron Bertrand [MVP]" <aaron@TRASHaspfaq.com> wrote in message > news:#nc$owQEEHA.2968@TK2MSFTNGP12.phx.gbl... > >> My $0.02. In addition to Tibor and Aaron's comments, I'd avoid using a > >> row set and go with using an output parameter with your proc. It's more > >> efficient. > > Yes, but the difference is negligible -- unless you're up into the thousands > of concurrent users. The verbose and troublesome command object syntax that > would be required in ASP to handle the alternative approach is hardly worth > the trouble, if the only reason is to use the "more efficient" output > variable. That's my $0.02, and though I'm in the states, it's on par with > your CDN$0.02. :-) > > -- > Aaron Bertrand > SQL Server MVP > http://www.aspfaq.com/ > >
- Next message: Pete Casey: "Re: Start off server space!"
- Previous message: Joe: "hyperlink to files not in web root"
- In reply to: Tom Moreau: "Re: Return Key (identity) on INSERT operation (SQL/ASP)"
- Next in thread: Aaron Bertrand [MVP]: "Re: Return Key (identity) on INSERT operation (SQL/ASP)"
- Reply: Aaron Bertrand [MVP]: "Re: Return Key (identity) on INSERT operation (SQL/ASP)"
- Reply: Bob Barrows [MVP]: "Re: Return Key (identity) on INSERT operation (SQL/ASP)"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|