C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » SQL Server »

how to create database?


Posted Date: 01 Dec 2007      Posted By: lekha      Member Level: Bronze     Points: 2   Responses: 2



iam new to sqlserver,pls help me.how to create database first and how to create tables and how to insert data into tables?




Responses

Author: KVGaneshBabu    01 Dec 2007Member Level: DiamondRating: 2 out of 52 out of 5     Points: 2

Step by Step Process:

1. Right click on Database -> Click New database
2. Give the name -> click Ok

The same way select that db and go thro table
1. Right click on Table -> Click New Table
2. It will ask a.ColumnName b. FieldName c. Allow Nulls
a. Field as you want
b. DataType (ex. varchar(10),int and so on)
c. Allow nulls (check whether allow null or not)

Give the name -> Click ok

YOu can insert record by using simple insert query

INSERT INTO TableName (slno, empname) values('1','Ganesh')

Regards,
K.V.GaneshBabu



Author: payal    01 Dec 2007Member Level: GoldRating: 2 out of 52 out of 5     Points: 2

Creating table:

Create table table_name (column_name1 datatype(size), column_name2 datatype(size),...)

Inserting values:

insert into table_name values(1,2,3...)



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : How to Pass column names dynamically to a query
Previous : stored procedure for change password
Return to Discussion Forum
Post New Message
Category: SQL Server

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use