AV using sp_attach_db with more than 1 file
Posted: 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;
begin
Result := FIRowset;
end;
Please help, Peter
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;
begin
Result := FIRowset;
end;
Please help, Peter