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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple Stored Proc Problem

Status
Not open for further replies.

anyideas

Programmer
May 2, 2002
127
GB
Hi all.

I have an MSSQL stored Procedure which works when I access it from Query Analyzer but not from ASP.

The stored Proc has one value passed to it

Any help really appreciated!

Mark

The line in query analyzer is:


execute op_CSInsertCustomerCall 100


The code for my asp file is:


<%@ Language=VBScript %>

<%

Dim dbConn
Dim strSQL
Dim username

Set dbConn = Server.CreateObject(&quot;ADODB.Connection&quot;)

'Connect to the database
dbConn.ConnectionString = Application(&quot;CustomerServices_ConnectionString&quot;)
dbConn.ConnectionTimeout = Application(&quot;CustomerServices_ConnectionTimeout&quot;)
dbConn.Open

dbConn.Execute &quot;EXEC op_CSInsertCustomerCall 100&quot;

%>

<HTML>
<HEAD>
</HEAD>
<BODY>

<SCRIPT>

window.close()

</SCRIPT>

</BODY>
</HTML>
 
Sorted it out-

The permissions of the stored procedure weren't set to EXEC for the user logged one

Thanks for trying

Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top