Re: Control Search in all database tables
To execute a SP in mysql, you do a call, for example.
Call GetCust(‘AZ’)
might be a SP called GetCust, where you pass it a state code and it retrieves all the records for that State.
In MS SQL Server, it’s an Exec statement, but basically the same thing.
So it will retrieve the records, so it’s basically a form a select, but you can have the SP do a lot of other things for you.
It’s very common to only be able to get to tables thru SP’s. This is done for various reasons, but basically I just need to get my parameter values from my Search form, and use them to do a Call GetCust(my parms), instead of having SC just do a normal Select statement.
SC can handle using SP’s for updates, deletes, and inserts into the tables, but I think they don’t yet support queries by using SP’s. They may not see the value in doing it, I’m not sure.
If I could just intercept the complete SQL Statemetn that SC was going to execute to query my data and replace it with my own statement that would work, though I don’t know of a way to just replace the one that SC creates for me.
Does that make it clearer? If not, just let me know and I’ll see if I can explain it better.