Marten Posted March 25, 2020 Report Share Posted March 25, 2020 Hi All, I have created an stored procedure in an SQL server. I would like to create a table whith a variable name. EXEC CreateTable[:Test] It creates always a table with the same name. The name between brackets [] This Test parameter should be variable, how can I archieve this? Link to comment Share on other sites More sharing options...
AlexUT Posted March 25, 2020 Report Share Posted March 25, 2020 Hi Marten, Please visit Unitronics Helpdesk Portal https://support.unitronics.com/index.php and search for "stored" Look "SQL Dynamic Table Name" article. Link to comment Share on other sites More sharing options...
Marten Posted March 25, 2020 Author Report Share Posted March 25, 2020 Thanks, I do not completely understand. I have created and tested a stored procedure in management studio, input variable is @|TableName But how to adress the variable name in Unilogic? It works but only inserts a static/constant table name, not dependent on a var. In the example it provides information on how to insert a table, and this works. But how to call/handle the [dbo].[Dymanic_Query] :TableName especcially the : TableName Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now