Hi,
I have the following Problem:
I want to write a stored Procedure which dynamically creates tables on different SQLDatabases and/or Servers.
The following doesn't work:
assumed that the procedure has been called whith this parameter:
The Stored Procedure looks like this:
Can anyone help ?
Thank you in advance
Sascha
I have the following Problem:
I want to write a stored Procedure which dynamically creates tables on different SQLDatabases and/or Servers.
The following doesn't work:
assumed that the procedure has been called whith this parameter:
Code:
CC_CreateTableMC 'server1.dbo.table1'
The Stored Procedure looks like this:
Code:
CREATE PROCEDURE CC_CreateTableMC
@ServerLocationString varchar
AS
CREATE TABLE @ServerLocationString (field1 varchar(100))
RETURN
Can anyone help ?
Thank you in advance
Sascha