on execution of TMSStoredProc with:syntax error, permission violation, or other nonspecific error
1. newest SDAC & Delphi 2006
2. SQL Server 2005 SP1
3. option "concat_null_yields_null" set to "off"
example:
Code: Select all
procedure TForm2.Button2Click(Sender: TObject);
var
sp: TMSStoredProc;
begin
msConnection1.ExecSQL('set concat_null_yields_null off', []);
sp := TMSStoredProc.Create(nil);
try
sp.Connection := MSconnection1;
sp.StoredProcName := 'sp_tables';
sp.ExecProc; // here comes the error
finally
sp.Free;
end;
end;