Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic Table names in Stored Procedures?

Status
Not open for further replies.

Terafic

Programmer
Dec 11, 2001
5
US
Can the table name be passed into a stored procedure as a parameter?
I have mutiple identical tables and am trying to read them using one stored procedure with the table name passed into the procedures as a parameter.

thanks
 
Hi,
this feature is in 4.1. There are some limitations on the use of DYNAMIC SQL in stored procedure.

You can look at the SQL reference manual volume 6 on stored procedure language


click on

SQL reference

and find volume 6 for Release 4.1.x
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top