Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Call Stored Procedure in MS SQL Server

Status
Not open for further replies.

vincentius

Programmer
Feb 11, 2002
17
0
0
ID
Hi all,

How to call a stored procedure in MS SQL Server from an ASP. I try this code, but it's generate an error.

Code:
set rs = conn1.execute("TEMaster.dbo.CP_PtBrg " & qqakh & "," & usr)

Error:
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near '.'.

What code should I add so I can free from this error?

Thanks,

Vincent.
 
set rs = conn1.execute("Exec TEMaster.dbo.CP_PtBrg " & qqakh & "," & usr)


penny1.gif
penny1.gif
 
link 9,

I try the code you give to me, but it still generates the same error. Why?

Thanks,

Vincent.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top