
@Mrashmi586, in a very similar way as how we do for other objects.
We can create the DB objects from the
Generate and Publish Script wizard (Right click on the DB (say TestDB) -> Tasks ->Generate Script..).
From the "Choose Objects" screen, choose the Type of database objects as per your need. In the very next screen which is "Set Scripting Options" , Click
Advanced Button. The
last of the
General Section will be
"Types of Data To Script" which will be set to
Schema Only (default) . If we wish to get the Schema and data, choose the option "Schema and Data". The rest is simple steps in the wizard.
Once done, take the script file and load into TFS/Subversion.
The other alternative is to create a backup(.bak) of the db and then we can import but the .bak file size will be too huge.
Hope this helps. Let us know in case of any concern.
--
Thanks & Regards,
RNA Team
Mrashmi586, if this helps please login to Mark As Answer. | Alert Moderator