1) Why are you using ODBC to access SQL Server? SqlClient is faster, has
100% coverage of SQL Server features as well as easier management (no DSNs
or other ODBC dependencies). ODBC is useful when working with databases that
do not have .NEW managed providers.
2) To execute any query from ADO.NET you need to build a "Command" object
whose CommandText is set to the SQL text for the query.
I expect my book would help. It's designed to help both beginners and pros
work with ADO.NET, SQL Server and VB.NET.
hth

Signature
__________________________________________________________________________
William R. Vaughn
President and Founder Beta V Corporation
Author, Mentor, Dad, Grandpa
Microsoft MVP
(425) 556-9205 (Pacific time)
Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition)
____________________________________________________________________________________________
> As a newbie to ADO.NET I am struggling with the following:
>
[quoted text clipped - 13 lines]
>
> Regards,
Alan Morris - 27 Mar 2008 00:43 GMT
Many thanks your reply, I am using ODBC because the source database is
proprietary (non SQL server).
Regards,
>1) Why are you using ODBC to access SQL Server? SqlClient is faster, has
>100% coverage of SQL Server features as well as easier management (no DSNs
[quoted text clipped - 7 lines]
>
>hth