You can also read my previous articles Insert, Update, Delete and Select Operation in SQL Server Database, Joins in SQL, How to Backup MS SQL Database, How to Restore MS SQL Database from Backup.
Some other articles asp.net core mvc and SQL Database are How to Get Data from SQL Database in Asp.net Core MVC Using C#.Net, Bind Multiple Dropdown List from Database in Asp.Net Core MVC, C#.Net, Asp.Net Core MVC Login Form Using Ms SQL, Entity Framework, C#.Net, Search Record from Database in Asp.Net Core MVC Using EF, C#.Net.
So for this article first we will login to MS SQL server database.
Step 1:
Open the SQL server and click on login. After opening the ms sql server you will below screen to login.
Step 2:
After login you will the object explorer. In this you need to right click on database for which you want to generate the script. On open menu select option
Step 3:
Ones you click on "Generate Scripts" below screen will open. In this screen we need to click on "Next" button to navigate to next screen.
Step 4:
In this screen we will get option to select the object. Here you need to select which object you want to generate the script. Select the appropriate option and click on "Next" button.







