One TMSStoredProc component used with many strored procedures - HOW?

Discussion of open issues, suggestions and bugs regarding SDAC (SQL Server Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
B4rT
Posts: 6
Joined: Mon 17 Jan 2005 11:41
Contact:

One TMSStoredProc component used with many strored procedures - HOW?

Post by B4rT » Wed 26 Jan 2005 11:58

Can I and how can I use one TMSStoredProc component with many strored procedures?

I have two different stored procs with different StoredProcNames names and params on the server and I want to use onlny one TMSStoredProc component do execute them interchangeable on the run-time (each of stored procs returns a result set (rows)).
(first, I want get result set from the first stored proc; next, I want use the same component to execute different stored proc and get different result set; and so on from beginning)

Can I do this? How?

What steps I must do and how must I assign or set properties for this component to make him work?


Thanx

B4rT

Ikar
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Re: One TMSStoredProc component used with many strored procedures - HOW?

Post by Ikar » Fri 28 Jan 2005 16:10

It's enough to change StoredProcName. But it is not a good solution from the point of view of performance as for describe parameters call to the server is required. It would be correct to use two instances of TMSStoredProc

Post Reply