Archives of the TeradataForum
Message Posted: Sat, 29 Jan 2005 @ 19:33:35 GMT
Subj: | | Teradata ODBC and ASP - Session remains open |
|
From: | | Joseph Massena |
Hi All,
Does anyone knows if there is a existing problem with teradata sessions staying open when using odbc in asp pages? We have encountered that
the teradata session stays open even if the asp page is closed or is forced to close with vbscript commands Connection.Close.
Any solution would be greatly appreciated.
Joseph
**************** partial asp script *****************************
Set Connection = server.CreateObject("ADODB.Connection")
Set rs = server.CreateObject("ADODB.Recordset")
Server.ScriptTimeout = 3600
'login and password are pulled from login.asp
ConnString = "dsn=wdw; uid=" & login & "; pwd=" & password &";"
Connection.connectiontimeout = 0
Connection.commandtimeout = 0
Connection.open(ConnString)
rs.CursorType = adOpenStatic
'Execute
rs.Open sql, Connection, adOpenStatic, adLockReadOnly, adCmdText
....
'Clean Up
rs.Close
Connection.Close
Set rs = Nothing
Set Connection = Nothing
*****************************************************************
|