
August 24th, 2004, 03:20 AM
|
|
Registered User
|
|
Join Date: Aug 2004
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
stored procedure with variable table name/column
Hello all!
I have a problem concerning stored procedures! How can I create a stored procedure that will take as input the table name?I have a db with 4 tables. and I want to call a select all stored procedure. How can I call this procedure with input the table name?
Furthermore, how can I have as input variables of the stored procedure the column names that I want to select? For example the query will not be select * but
select [input variable - columns] from [input variable - table]
Any suggestion would be really helpfull!
Thanx in advance
axelmangr
|