Frans
Sat Nov 22 05:53:09 CST 2003
"Stan Sainte-Rose" <stan@cyber972.com> wrote in news:eqzVl0OsDHA.3468
@TK2MSFTNGP11.phx.gbl:
> Hi,
>
> How can I detect if a stored procedure exists in my database with ado.net
?
Query the system tables in Master (sqlserver 7) or use a query on
INFORMATION_SCHEMA.ROUTINES to see if the stored proc is there. (Sqlserver
2000).
There is also a way to determine this via OleDb, using the
OleDbConnection.GetOleDbSchemaTable() method with the proper parameters.
Frans
--
Get LLBLGen Pro, the new O/R mapper for .NET:
http://www.llblgen.com