Click here to Skip to main content
15,892,746 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
>Hello Sir


I have lots of data in to a table and do not want to generate whole data from table i want to generate only those data which is i need required

like

Select * Frin Table where Datayear='2016'


so please guide me how to do

beacuse if i generate whole table data then i get exception during generate script

What I have tried:

I Need Data so Please help Me i am trying to generate like right click on database
task ,then generate script like that
Posted
Updated 3-May-18 21:54pm

1 solution

There is nothing built-in in SQL server to generate such scripts. Reason being that the where clause would be different for each table of yours. You will need to write your own code to export partial data.

If you are looking for data after certain date, backups might help. If you take incremental back up, you will get all the data after the date of last full back up.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900