zarkwizard
User
 Fresh Boarder
| Posts: 2 |   | Karma: 0 |
|
Re:Command Text Must Not Be Empty..
|
|
Posted: 2008/01/16 06:09 |
|
|
|
|
Actually I figured out what the issue was. I was looking at the property .StoredProcName like other components (I have had several to review and code layers for to use in testing), and I thought you would include the package name if you were using a package..
eg : .StoredProcName := 'MyPKG.ProcName';
Well, it doesn't work like that it works more like DBX where you have to do the following :
ADStoredProc1.PackageName := 'MyPKG';
ADStoredProc1.StoredProcName := 'ProcName';
ADStoredProc1.Prepared := True;
ADStoredProc1.ParamByName('pIn_val').Value := 1234;
ADStoredProc1.Open;
|
I didn't notice the .PackageName property, and when the error came up it didn't make sense to me, and I didn't see any message on using packages. Once I did the above though the error went away.
Thanks for the help.
Regards,
Jeff
|
|