In SQL server, table can be created by two ways:
- using graphical interface
- using query
Using GUI
- Go to the Database, expand it, you will see folder named Tables.
- Right Click on the Tables and then click Table
Using query
NULL means it allows null value (okay if no value if provided) while NOT NULL means we have to provide some value.
After writing this query we can run it (or press F5). then a message will be seen as shown below:
Now table is created inside Tables Folder. Right click on the folder and click Refresh. You should be able to see it there.
EmoticonEmoticon