شعار الشركة Ms SQL Server 2008 Express Edition
SQL Server Management Studio 2008 When we open the SQL server management studio this window are seen: - Right pane :write query and view the Results. - Left pane :object explorer ( Database, security, server objects ….)
Create A Database If we want to create new database: 1- right click on the (Database) icon and select (new database).
Create A Database 2-name your database and click ok.
Create A Database Now your new database appears under the(database).
SQL Server Data Types DescriptionData type Fixed-length character string. Maximum 8,000 characterschar(n) Variable-length character string. Maximum 8,000 charactersvarchar(n) Variable-length character string. Maximum 1,073,741,824 characters varchar(max) Variable-length character string. Maximum 2GB of text datatext Fixed-length Unicode data. Maximum 4,000 charactersnchar(n) Variable-length Unicode data. Maximum 4,000 charactersnvarchar(n) Variable-length Unicode data. Maximum 536,870,912 characters nvarchar(max) Variable-length Unicode data. Maximum 2GB of text datantext
Create A Table If you want to create new table into database: 1- right click on the (tables) icon and select (new table).
Create A Table 2- While you have this screen open, Using the values in the screenshot, complete the details in the "Column Name" column, the "Data Type" column, "Length" column, and "Allow Nulls" column.
Create A Table 3- save the table by selecting File>save table_1. 4- name your table.
Create A Table Now that you've created a new table, it will appear under your database in the "Tables" section.
Adding Data When we want to entered new data we should do this steps: 1-right click on the table you wish to open and select (Edit Top 200 Rows).
Adding Data 2- now start entering the data directly into your table.
Create A New Query Now we will create new query by: 1- click (New Query). 2- Type your query into the workspace on the right pane. 3-Click (Execute).
The End