The Microsoft OLE DB Provider for SQL Server (SQLOLEDB) and the Microsoft
OLE DB Provider for ODBC (MSDASQL) does not support all ADOX features
including the Command property of Procedure object.
To get the detailed content of a stored procedure, you can use the system
stored procedure: sp_helptext
For more information on this, please refer to the following article:
http://msdn.microsoft.com/library/en-us/tsqlref/ts_sp_help_7c38.asp
I hope this helps.
This posting is provided "AS IS" with no warranties, and confers no rights.
Copy Right, 2001 Microsoft Corporation. All rights reserved.
Regards,
Kally Wang
Microsoft Support Engineer
== Original Message ==
Subject: ADOX stored procedures question
Date: Tue, 8 Jan 2002 15:38:22 -0800
Newsgroups: microsoft.public.vb.database.ado
Is it possible to get the actual T-SQL Syntax out of a SQL
Server stored proceduer via ADOX? I can enumerate through
all the proceduers in a database and see their name, but i
cant seem to get the T-SQL syntax out. There is a Command
property of the Procedure object, but every time i try to
use it i get an interface not supported error. Is there
anything i can do?
us/tsqlref/ts_sp_help_7c38.aspQuote:>-----Original Message-----
>Hi John,
>The Microsoft OLE DB Provider for SQL Server (SQLOLEDB)
and the Microsoft
>OLE DB Provider for ODBC (MSDASQL) does not support all
ADOX features
>including the Command property of Procedure object.
>To get the detailed content of a stored procedure, you
can use the system
>stored procedure: sp_helptext
>For more information on this, please refer to the
following article:
>http://msdn.microsoft.com/library/en-
>I hope this helps.
>This posting is provided "AS IS" with no warranties, and
confers no rights.
>Copy Right, 2001 Microsoft Corporation. All rights
reserved.
>Regards,
>Kally Wang
>Microsoft Support Engineer
>== Original Message ==
>Subject: ADOX stored procedures question
>Date: Tue, 8 Jan 2002 15:38:22 -0800
>Newsgroups: microsoft.public.vb.database.ado
>Is it possible to get the actual T-SQL Syntax out of a
SQL
>Server stored proceduer via ADOX? I can enumerate
through
>all the proceduers in a database and see their name, but
i
>cant seem to get the T-SQL syntax out. There is a
Command
>property of the Procedure object, but every time i try to
>use it i get an interface not supported error. Is there
>anything i can do?
>.
1. ADOX stored procedures question
Is it possible to get the actual T-SQL Syntax out of a SQL
Server stored proceduer via ADOX? I can enumerate through
all the proceduers in a database and see their name, but i
cant seem to get the T-SQL syntax out. There is a Command
property of the Procedure object, but every time i try to
use it i get an interface not supported error. Is there
anything i can do?
2. How can I calcul the space needed before exporting a database>
3. QUESTION: How can I call a Stored Procedure from another Stored Procedure
5. Use ADOX (or anything else) to return text of Stored Procedure
7. getting the Text of a stored procedure using ado or adox
9. Creating Stored Procedures on SQLServer 7 with ADOX
10. ADOX and Encrypted Stored Procedures
11. Running Access - ADOX? For Stored Procedure
12. Deleting stored procedures with code (ADOX)
13. ADOX and Stored Procedure Problem.