
June 30th, 2003, 02:43 AM
|
|
Registered User
|
|
Join Date: Jun 2003
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Problem calling a stored procedure from asp.
Hi all!<br><br>Having a problem that I donīt get and hope you can help me. <br>I'm calling a function called sp when somebody clicks on a link. <br>The function is javascript with asp in it. <br><br>Everything works fine the first time around but the second time <br>nothing happens - why? Whatīs the difference?<br><br>The stored procedure works fine when I execute it from the query analyzer.<br><br>//Ylvur<br><br><br>-------------------------------------------------------------------------<br><br>function sp(){<br><%<br>set conn=server.createobject("adodb.connection") <br>set rs=server.CreateObject("adodb.recordset") <br><br> conn.Open "FILEDSN=bdg.dsn"<br><br>SQLStmtGetID = "add_values_to_new"<br>rs.open SQLStmtGetID,conn<br><br><br>conn.Close<br>set conn= nothing<br>set rs = nothing<br>%><br><br>}<br>-------------------------------
|