BUG: AV in MSADCE When Executing a SHAPE Query Using a .udl FileID: Q208210
|
The following procedure will result in an Access Violation in Msadce.dll (version 2.10.3513.2):
ADO is not able to recognize that you are using the Shape Provider because the connection string contains a reference to a .udl file instead of a reference to the Shape Provider.
To work around this problem do either of the following:
cnn.Open "Data Provider=MSDASQL;DSN=Pubs;uid=sa;pwd=;"
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.
Dim cnn As New ADODB.Connection
Dim rst As New ADODB.Recordset
Dim rsChapter As Recordset 'Variant
cnn.CursorLocation = adUseClient
cnn.Open "File Name=c:\data sources\pubs.udl"
rst.Open "SHAPE {select * from authors}APPEND ({select * from titleauthor} AS chapter RELATE au_id TO au_id)", cnn
Additional query words: kbDSupport
Keywords :
Version : WINDOWS:2.1
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: May 11, 1999