Strange behavior from ADODB and SQL Server
From: mklapp (mklapp_at_discussions.microsoft.com)
Date: 08/25/04
- Next message: mklapp: "RE: Strange behavior from ADODB and SQL Server"
- Previous message: Kevin Yu [MSFT]: "RE: ADOCE error"
- Next in thread: mklapp: "RE: Strange behavior from ADODB and SQL Server"
- Reply: mklapp: "RE: Strange behavior from ADODB and SQL Server"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 25 Aug 2004 06:17:22 -0700
Hello,
This is a difficult question to ask because most of the circumstances are
not internally consistent.
This function (not a canonical function, just a collection of subs that
perform a job) Connects to SQL Server 2000 through an ADODB dataset (MDAC
2.8).
All ran well. In order to improve performance and remove connection
timeouts, I have all my opens use the same ADO connection.
Now one open consistently returnrs either a 'Connection failure' or 'Thread
has been stopped'.
The statement:
sql = "SELECT AdditionalContacts.ContactDate, '53' AS visitcode, "
sql = sql & "'" & "BOTH" & "'" & " AS session,
AdditionalContacts.DateStamp, "
sql = sql & " AdditionalContacts.StudentID,
StudentVisits.StudentVisitsId "
sql = sql & " FROM (AdditionalContacts LEFT JOIN TransData ON
(AdditionalContacts.ContactDate = "
sql = sql & " TransData.VisitDate) AND
(AdditionalContacts.StudentID = TransData.StudentId)) "
sql = sql & " INNER JOIN StudentVisits ON
(AdditionalContacts.ProviderNumber = StudentVisits.ProviderNumber) "
sql = sql & " AND (AdditionalContacts.StudentID =
StudentVisits.StudentId) "
sql = sql & " WHERE (((TransData.VisitDate) Is Null)) "
has run for months. Now I cannot get it to execute at all. The open
completes without apparent error, but none of the recordset properties can be
displayed in the command window (error: cannot obtain value).
I am going to spend some time evaluating the above SQL Server statement, but
as I said, this program has run successfully with the existing source code
for a time. Now, it consistently breaks.
Ideas?
Mklapp
- Next message: mklapp: "RE: Strange behavior from ADODB and SQL Server"
- Previous message: Kevin Yu [MSFT]: "RE: ADOCE error"
- Next in thread: mklapp: "RE: Strange behavior from ADODB and SQL Server"
- Reply: mklapp: "RE: Strange behavior from ADODB and SQL Server"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|