Article ID: 197426
Article Last Modified on 5/17/2007
(SELECT authors.*, roysched.*, titleauthor.*, titles.*, publishers.* FROM titleauthor INNER JOIN authors ON titleauthor.au_id = authors.au_id INNER JOIN titles ON titleauthor.title_id = titles.title_id INNER JOIN roysched ON titles.title_id = roysched.title_id INNER JOIN publishers ON titles.pub_id = publishers.pub_id).
Public Function GetRs() As ADODB.Recordset
Dim cn As ADODB.Connection
Dim Rs As ADODB.Recordset
Dim strsql As String
Set cn = New ADODB.Connection
cn.Open "dsn=pubs"
Set Rs = New ADODB.Recordset
strsql = "(SELECT authors.*, roysched.*, titleauthor.*, titles.*, " & _
"publishers.* FROM titleauthor INNER JOIN authors ON " & _
"titleauthor.au_id = authors.au_id INNER JOIN titles ON " & _
"titleauthor.title_id = titles.title_id INNER JOIN roysched ON " & _
"titles.title_id = roysched.title_id INNER JOIN publishers ON " & _
"titles.pub_id = publishers.pub_id)"
Rs.CursorLocation = adUseClient
Rs.LockType = adLockBatchOptimistic
Rs.Open strsql, cn
Set Rs.ActiveConnection = Nothing
Set GetRs = Rs
cn.Close
Set cn = Nothing
End Function
Dim rs1 As ADODB.Recordset Dim rs2 As ADODB.Recordset Dim rs3 As ADODB.Recordset Set rs1 = New ADODB.Recordset Set rs2 = New ADODB.Recordset Set rs3 = New ADODB.Recordset Dim gs As RsEXE.rs Set gs = New RsEXE.rs 'Add rsEXE to Performance Monitor before executing the next line Set rs1 = gs.GetRs Set rs2 = gs.GetRs Set rs3 = gs.GetRs rs1.Close rs2.Close rs3.Close Set rs1 = Nothing Set rs2 = Nothing Set rs3 = Nothing Set gs = Nothing
Keywords: kbhotfixserver kbqfe kbado200fix kbado210fix kbado260fix kbbug kbdatabase kbfix kbmdac210fix kbmdacnosweep kbqfe KB197426