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 multi-statement table-value user-defined function?
Explain query editor regions
What is default constraint in ms sql server?
What is the use of for clause?
What is meant by datasource?
How to drop an existing stored procedure in ms sql server?
How to convert a unicode strings to non-unicode strings?
What is the difference RDBMS and Graph Database?
How do we upgrade from SQL Server 6.5 to 7.0 and 7.0 to 2000?
what is the difference between count(*) and count(1) ?
explain different types of constraints? : Sql server database administration
How can we check the sql server version?
Are null values the same as that of zero or a blank space?
What is a not null constraint?
How do I get to sql server configuration manager?