ADO Connection object in Session_OnEnd
From: Agoston Bejo (gusz1_at_freemail.hu)
Date: 09/24/04
- Next message: Roji. P. Thomas: "Re: ADO Connection object in Session_OnEnd"
- Previous message: Strider: "Re: Update Database from DataAdapter"
- Next in thread: Roji. P. Thomas: "Re: ADO Connection object in Session_OnEnd"
- Reply: Roji. P. Thomas: "Re: ADO Connection object in Session_OnEnd"
- Reply: Aaron [SQL Server MVP]: "Re: ADO Connection object in Session_OnEnd"
- Reply: Bob Barrows [MVP]: "Re: ADO Connection object in Session_OnEnd"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 24 Sep 2004 15:12:38 +0200
Hi!
Why doesn't the following code work?
Sub Session_OnEnd
Dim Conn
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.ConnectionString = Application("Connection_String")
Conn.Open 'here is the error
...
End Sub
A Conn object is created the same way in Session_OnStart and is used
throughout the application, and Application("Connection_String") still
exists here (I tested).
So I suppose the error is caused by the fact that we are in Session_OnEnd.
- Next message: Roji. P. Thomas: "Re: ADO Connection object in Session_OnEnd"
- Previous message: Strider: "Re: Update Database from DataAdapter"
- Next in thread: Roji. P. Thomas: "Re: ADO Connection object in Session_OnEnd"
- Reply: Roji. P. Thomas: "Re: ADO Connection object in Session_OnEnd"
- Reply: Aaron [SQL Server MVP]: "Re: ADO Connection object in Session_OnEnd"
- Reply: Bob Barrows [MVP]: "Re: ADO Connection object in Session_OnEnd"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|