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 do we partition data?
Explain primary key and foreign key constraints?
Do you know the cursor types?
Explain what is “asynchronous” communication in sql server service broker?
Tell about MOM Tool(Microsoft Operator Manager)?
Do you know what are the steps to process a single select statement?
What are the different types of cursor?
what are candidate key, alternate key and composite key? : Sql server database administration
Explain the steps to create and execute a user-defined function in the sql server?
What is master database? : SQL Server Architecture
What are synonyms?
Explain in details security in SQL azure?
Are semicolons required at the end of sql statements in sql server 2005?
When you use @@error and try-catch?
How to create “dependant” parameter “make, model, year”