Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: ADOCommand & SQLCommand


Message #1 by Imtiaz ALAM <imtiaz_alam@u...> on 23 Nov 00 11:15:07 EST
Hi,



Can any please tell me what is the diff. between these two objects and wh

ich

should be used and when.





Thanks in Advance



Imtiaz



Message #2 by danielw@w... on Thu, 23 Nov 2000 16:47:46 -0000
The latter is for working with the SQL7-and-upwards managed provider. It's

one of the three objects that belong to that provider. they're optimised

for the SQL 7 and (currently, but presumably including all subsequent)

SQL2000 DB managers.



The ADOcommand is the correctsponding object belonging to the more generic

ADO+ managed provider. Its used when accessing

other datastores.



Dan Whalin's article about ADO+/C# on ASP Today has some info on using the

two providers. I haven't got the link, but it'll be listed on my links

page http://p2p.wrox.com/topics/asplinks/asplinks.htm



HTH

Daniel Walker

Wrox Press

> Hi,

> 

> Can any please tell me what is the diff. between these two objects and wh

> ich

> should be used and when.

> 

> 

> Thanks in Advance

> 

> Imtiaz

Message #3 by =?us-ascii?Q?Fredrik_Normen?= <fredrik.normen@e...> on Fri, 24 Nov 2000 08:33:01 +0100
Hi,



You should use SQLCOmmand if you have a MS SQL Server.

SQLCommand work directly to the database without an OLEDB Provider, this

increase perfomance.



Use ADOCommand when you work with other data sources, such as ORACLE, Sybas

etc.

With ADO you can use OLEDB providers.



/Fredrik Normen







-----Original Message-----

From: Imtiaz ALAM [mailto:imtiaz_alam@u...]

Sent: den 23 november 2000 17:15

To: ASP+

Subject: [aspx] ADOCommand & SQLCommand





Hi,



Can any please tell me what is the diff. between these two objects and which

should be used and when.





Thanks in Advance



Imtiaz




  Return to Index