how to give input dynamically to a insert statement in
sqlserver
Answer Posted / senthil kumar.m
Declare @sql_tmp varchar(100)
set @sql_tmp="insert into table1(col1,col2..)
select 'val1','val2','') "
sp_executesql @sql_tmp
| Is This Answer Correct ? | 0 Yes | 10 No |
Post New Answer View All Answers
Why normalization is used?
Differentiate between delete and truncate.
Explain about Views?
Explain intellisense for query editing
Define right outer join in sql server joins?
What are the limitations in ssrs on sql server express edition?
Create and insert into temp table in sql server?
Find first and last day of current month in sql server
explain different types of constraints? : Sql server database administration
Sql studio em braces a variety of capabilities, but will I need them all? Is there a simpler product ? : sql server management studio
Your company has 50 branches all over the country all the branches, including the head office have sql server as the database every night all 50 branches upload certain information to the head office which replication topology is best suited for the above scenario?
What is difference between group by and having?
What are user defined functions in ms sql server?
What is an execution plan?
What is the data tier application?