Is it possible to create tables in stored procedures using
a variable for the table name?
Answer Posted / skybeaver
create proc ShowMeHow
as
declare @Cities table(
AirportCode char(3) not null primary key,
CityName varchar(255) not null
)
insert into @Cities values('LAX', 'Los Angeles')
insert into @Cities values('ORD', 'Chicago')
select * from @Cities
go
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
What is the maximum size of column in sql server?
How to deploy the Report?
What are the different Topologies in which Replication can be configured?
What is transact-sql language?
How do I find the query plan in sql server?
How to scale out a federation by Sql statement?
How do I view a script in sql server?
Explain different types of Normalization.
If you are given access to a SQL Server, how do you find if the SQL Instance is a named instance or a default instance?
Explain an incremental backup?
Explain how does the report manager work in ssrs?
What happens when converting big values to integers?
What are the advantages of paper records?
What do you mean by SQL injection attack?
What new data source types were added in ssrs 2014?