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
What is the difference between substr and charindex in the sql server?
What to perform pattern match with the like operator?
What is checkpoint in sql server?
Explain what are the restrictions that views have to follow? : SQL Server Architecture
Explain cdc and sql injection?
what is bit datatype and what's the information that can be stored inside a bit column? : Sql server database administration
Tell about MOM Tool(Microsoft Operator Manager)?
What is partition in sql server?
What will be the maximum number of index per table?
How to write an inner join with the where clause in ms sql server?
What are security principals used in sql server 2005?
What is the difference RDBMS and Graph Database?
How do I start and stop sql server?
What are the recovery models in sql server 2000?
Explain DBCC?