i want to create procedure for create table in sql server
2005
for example
create procedure create_table
@table varchar(20)
as
create @table(
id int,
name char(20)
)
but it will get error
what is solution?
Answer Posted / pradip jain
create procedure create_table
@table1 varchar(20)
as
Begin
Declare @table table
(
id int,
name char(20)
)
end
If you refer question only syntax error is there!!! as table
variable can not use using create command.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How can sql server instances be hidden?
What is the order in which the sql query is executed?
Sql studio em braces a variety of capabilities, but will I need them all? Is there a simpler product ? : sql server management studio
what is an index? : Sql server database administration
what purpose does the model database serve? : Sql server database administration
What is the purpose of a table?
Explain about merge replications?
Explain log shipping?
How to run sql server 2005 books online on your local system?
what number files will a information contain in SQL Server? How many forms of information files exist in SQL Server? How many of those files can exist for a single database?
How to loop through the result set with @@fetch_status?
Can We Use Data-grids For Our Report In Ssrs?
What happens if you are trying to access a schema not owned by you?
Explain external key management in sql server 2008
What xml support does the sql server extend?