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
How do I partition a table in sql server?
What happens if the update subquery returns no rows in ms sql server?
What are the different index configurations a table can have?
How to apply filtering criteria at group level with the having clause in ms sql server?
Write a SQL query to delete a table?
What is optimization and its types?
what is sql server? : Sql server database administration
What is the web service used for reporting services?
What is the data tier application?
Explain what is the main purpose of having conversation group?
What is a cache in ssrs?
Define msdb database?
What does nvl stand for?
How to create a view using data from another view?
What is the function of inner join?