How to create Insert Script Of a single row which is exist in the table?
-In Task->Generate Script : we can Generates all rows script and not single row
-In Import/Export : it is possible to directly copy the single/ all row data and not to generate script
Anyone having a solution please reply


Rafnas T PRank #280 · 8.8K reputationPosted May 5, 2017, 11:15 PM EDT
Manas MohapatraRank #182 · 13.2K reputationPosted May 5, 2017, 11:17 PM EDT
Rafnas T PRank #280 · 8.8K reputationPosted May 5, 2017, 11:24 PM EDT
If you are using the SQL Management Studio, you can right click your DB name and select Tasks > Import/Export data and follow the wizard.
one of the steps is called "Specify Table Copy or Query" where there is an option to write a query to specify the data to transfer, so you can simply specify the following query:
select * from [Table] where ID= 1rupali patil174 reputationPosted May 6, 2017, 12:01 AM EDT
Manas MohapatraRank #182 · 13.2K reputationPosted May 6, 2017, 7:10 AM EDT