V
Vinod
Hi All,
Please help me out in creation of stored procedure from Access in SQL Server
I've been using following method:
strProc="Create Procedure test As Begin Delete * from EMP; Delete * From
temp; End"
Set qdfPass = Nothing
Set qdfPass = CurrentDb.QueryDefs("qryPass")
qdfPass.Connect = "ODBC;DRIVER={SQL
Server};SERVERPERSONAL-4B2728\SQLEXPRESS;DATABASE=master;Trusted_Connection"
qdfPass.SQL = strStrdProc
CurrentProject.Connection.Execute "qryPass"
I'm getting following error:
Invalid SQL statement; expected 'Delete', 'Insert', 'Update' or 'Select',
etc.,
Please share your thoughts and ideas in resolving above issue for successful
creation of stroed procedure in SQL Server 2005 from MS Access 2003.
Advanced Thanks
Vinod
Please help me out in creation of stored procedure from Access in SQL Server
I've been using following method:
strProc="Create Procedure test As Begin Delete * from EMP; Delete * From
temp; End"
Set qdfPass = Nothing
Set qdfPass = CurrentDb.QueryDefs("qryPass")
qdfPass.Connect = "ODBC;DRIVER={SQL
Server};SERVERPERSONAL-4B2728\SQLEXPRESS;DATABASE=master;Trusted_Connection"
qdfPass.SQL = strStrdProc
CurrentProject.Connection.Execute "qryPass"
I'm getting following error:
Invalid SQL statement; expected 'Delete', 'Insert', 'Update' or 'Select',
etc.,
Please share your thoughts and ideas in resolving above issue for successful
creation of stroed procedure in SQL Server 2005 from MS Access 2003.
Advanced Thanks
Vinod