How to create DATA BASE And Tables in MSSQL Server
Step 1. Press Windows Button in that search for SSMS,
Image will appear like this click on this image Microsoft SQL Server
Management Studio window will open.
Step 2. Enter Server name if it’s not available as
default, else connect to default server
by pressing connect in login
window.
Step 3. After
perfectly login a window will open in that a sub window by name Object Explorer
will be there.
Step 4. In Object Explorer
right click on the Data Base in
that press new Data Base.
Step 5. Type any name in Database name bar. As I have
created a new database as tested which will be explore in Databases in Object
Explorer.
Step 6. Explore the database which you have created as I
have created database by name tested I am exploring my database in that go to
tables.
Step 7. Right click on tables to add new table.
Step 8. After clicking on new table Insert the requirement .
As I am creating table for employee I am putting my requirements as EmpId,
Empname,Email,Phoneno. One should keep in mind that while creating the database
space should not be used in between & primary column should not be allow as
null. Nvarchar takes both char and variables.
Step 9. After inserting values set the primary key .
Step 10. After setting primary key auto-increment the table.If
we have to use multiple to use in the table as multiple accounts or
employees we have to use auto increment
in the table.
Nice
ReplyDelete