Posts

Showing posts from July, 2022

How to Generate Script of Database With Data And Without Data

Image
Step 1: Connect your SQL server. Step 2: Select the database in which you want to take backup with the script. Step 3: Right-click in the database, go to the "tasks" option and select "Generate Script" option. Step 4: Select the next button Step 5: Choose an option, If you want all tables, views, and store procedures (like all DB objects) then select the first option, and if your requirement is for selected DB objected then you can choose the second option. click the next button. Step 6: On the next page, you can see multiple choices. 1> If you want one file for all scripts then select the first option which is " Single file ". 2> If you want to generate a file with multiple database objects then select " Single file per object ". 3> Choose your local file path and add the file name. 4> Select the " Unicode text " button. 5> If you want to save a file in the clipboard then select " Save to Clipboard ". 6> If