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
What is a sql join?
What are the advantages of using stored procedures in sql server?
Can I disable or restrict ssrs export formats (rendering formats)?
What are partitioned views and distributed partitioned views?
Explain forward - only cursors?
How to configure odbc dsn with different port numbers?
What is the primary use of the model database?
Explain go command in sql server?
Is the log file is a part of file group?
How to delete duplicate rows in sql server?
Explain various data region available in ssrs with their use?
What do you mean by a dependent functionality in a build?
Does an index slow down updates on indexed columns?
Is it possible to import data directly from t-sql commands without using sql server integration services? If so, what are the commands?
How to use the inserted and deleted pseudo tables?