Very close. Needs a tweak! (Full Version)

All Forums >> [Web Development] >> ASP and Database



Message


hzarabet -> Very close. Needs a tweak! (5/28/2002 19:51:02)

Here is my script:

<%
Set Conn = Server.CreateObject("ADODB.Connection")
conn.open "DRIVER={SQL Server};SERVER=xx.xx.xx.xxx;DATABASE=xxxxxx;UID=xxxxx;PWD=xxxxx"
fp_sQry="UPDATE SHL_DeLuxe SET SHL_DeLuxe.State1 = 'Test10000' WHERE SHL_DeLuxe.Username = 'test'"
Set RS = Conn.Execute(fp_sQry)
fp_sQry="UPDATE SHL_DeLuxe SET SHL_DeLuxe.State2 = 'Test2000' WHERE SHL_DeLuxe.Username = 'test'"
Set RS = Conn.Execute(fp_sQry)
fp_sQry="UPDATE SHL_DeLuxe SET SHL_DeLuxe.State3 = 'Test3000' WHERE SHL_DeLuxe.Username = 'test'"
Set RS = Conn.Execute(fp_sQry)
fp_sQry="UPDATE SHL_DeLuxe SET SHL_DeLuxe.State4 = 'Test4000' WHERE SHL_DeLuxe.Username = 'test'"
Set RS = Conn.Execute(fp_sQry)
fp_sQry="UPDATE SHL_DeLuxe SET SHL_DeLuxe.State5 = 'Test5000' WHERE SHL_DeLuxe.Username = 'test'"
Set RS = Conn.Execute(fp_sQry)
set rs=nothingConn.Close
%>

And here is my error message:

Microsoft VBScript runtime error '800a01a8'

Object required: 'nothingConn'

/updatetext.asp, line 14


The script is working and making the update so I am close.

Thanks all!

http://www.SigningsHotline.com lists EVERY upcoming athlete autograph appearance in the US and Canada




Spooky -> RE: Very close. Needs a tweak! (5/28/2002 21:04:44)

set rs=nothing
Conn.Close
Set Conn=nothing

§þððk¥
Database / DRW Q & A
VP-ASP Shopping cart
Spooky Login




hzarabet -> RE: Very close. Needs a tweak! (5/28/2002 23:50:11)

( :

http://www.SigningsHotline.com lists EVERY upcoming athlete autograph appearance in the US and Canada




Spooky -> RE: Very close. Needs a tweak! (5/29/2002 15:58:06)



§þððk¥
Database / DRW Q & A
VP-ASP Shopping cart
Spooky Login




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.0625