AV using sp_attach_db with more than 1 file

Discussion of open issues, suggestions and bugs regarding SDAC (SQL Server Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Posts: 39
Joined: Thu 17 Apr 2008 13:01

AV using sp_attach_db with more than 1 file

Post by formi » Wed 11 Jun 2008 09:11

Executing the following SQL raises an access violation:

sp_attach_db "MyDBname", "c:\MyPath\MyFile.mdf", "c:\MyPath\MyFile_log.ldf"

with only one file it works.

The error occurs on this line in oledbaccess.pas:

function TOLEDBRecordSet.GetIRowset: IRowset;
Result := FIRowset;

Please help, Peter

Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Thu 12 Jun 2008 07:24

I could not reproduce the problem with the latest SDAC version.
Please send me a complete small sample at sdac*crlab*com to demonstrate it.

Also supply the following information:
- the exact version of SDAC. You can see it in the About sheet of TMSConnection Editor;
- the exact version of your IDE;
- the exact version of SQL server and client. You can see it in the Info sheet of TMSConnection Editor.

Post Reply