Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


how to give input dynamically to a insert statement in
sqlserver

Answers were Sorted based on User's Feedback



how to give input dynamically to a insert statement in sqlserver..

Answer / ramadass

Write a store procedure for insert and pass the input value
as parameters to proc.

Is This Answer Correct ?    4 Yes 0 No

how to give input dynamically to a insert statement in sqlserver..

Answer / ashutosh rai

Declare @id int,@name varchar(100),@class varchar(100)
set @id=1
set @name='Ashutosh'
set @class='MCA'

insert into student_table(id,name,class)
values(@id,@name,@class)

Is This Answer Correct ?    3 Yes 2 No

how to give input dynamically to a insert statement in sqlserver..

Answer / 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

More SQL Server Interview Questions

Do you know what are different types of replication in sql server?

0 Answers  


What is subquery in sql?

0 Answers  


How to compose an inquiry to demonstrate the points of interest of an understudy from students table whose name begins with k?

0 Answers  


What is a database in ms sql server?

0 Answers  


what r steps to we need to fallow b4 kill the process?

1 Answers   Verizon,


What is a mixed extent?

0 Answers  


What is 1nf normalization form?

0 Answers  


What are the basic functions for master, msdb, model, tempdb and resource databases?

0 Answers  


What are the different types of Indexes available in SQL Server?

0 Answers  


sql server architecture ?

0 Answers  


What is isnull() operator?

0 Answers  


Working with TLogs

0 Answers  


Categories