G
Guest
Access 2002 VBA provides easy ways to delete, copy, and run an MS SQL Server
stored procedure, via DoCmd. However, I cannot find any way to CREATE an MS
SQL Server stored procedure from Access 2002. Here's what I'm trying now, but
it doesn't work:
CurrentProject.Connection.Execute "CREATE PROCEDURE proc_name AS SELECT *
etc. etc."
NOTE: The "CREATE PROCEDURE proc_name ..." statement works to successfully
create the stored procedure when pasted into Enterprise Manager. Once
created, the stored procedure runs successfully. Options I've tried with the
..Execute command include adCmdText, adCmdStoredProc, adCmdUnknown, and
adAsyncExecute.
Any help you could give would be greatly appreciated!
stored procedure, via DoCmd. However, I cannot find any way to CREATE an MS
SQL Server stored procedure from Access 2002. Here's what I'm trying now, but
it doesn't work:
CurrentProject.Connection.Execute "CREATE PROCEDURE proc_name AS SELECT *
etc. etc."
NOTE: The "CREATE PROCEDURE proc_name ..." statement works to successfully
create the stored procedure when pasted into Enterprise Manager. Once
created, the stored procedure runs successfully. Options I've tried with the
..Execute command include adCmdText, adCmdStoredProc, adCmdUnknown, and
adAsyncExecute.
Any help you could give would be greatly appreciated!