260 likes | 416 Views
Introduction about MS SQL Server 2005. Introduction about MS SQL Server 2005. What’s new ? Installation Connect to Database Engine Create Database Backup and restore Database Create user and grant permission for user. References. What’s new ?.
E N D
Introduction about MS SQL Server 2005 BSG Group - Dau Anh Trong
Introduction about MS SQL Server 2005 • What’s new ? • Installation • Connect to Database Engine • Create Database • Backup and restore Database • Create user and grant permission for user. • References BSG Group - Dau Anh Trong
What’s new ? • SQL Server Management Studio : providing one integrated management console to monitor and manage the SQL Server relational database as well as SQL Server 2005’s services • Replication • Scalability • Query Notification • Service Broker • Business Intelligence : make better decisions faster • More and detail at References BSG Group - Dau Anh Trong
Installation BSG Group - Dau Anh Trong
Installation First, installing MS SQL Server Update Advisor. Click “Next” and “Finish” to complete install process. BSG Group - Dau Anh Trong
Installation Second, installing MS SQL Server 2005 and its components. Select all component (Recommended) BSG Group - Dau Anh Trong
Installation Select “Default instance” and click Next BSG Group - Dau Anh Trong
Installation • Select “Use the build-in System account” and choose “Local System” in the drop down list. • We must select SQL Server Agent (very important) BSG Group - Dau Anh Trong
Installation Select “Mixed Mode” option so that we can connect to DataBaseEngine through Windows accounts and SQL Accounts BSG Group - Dau Anh Trong
Installation Let everything is default. BSG Group - Dau Anh Trong
Installation Impossible to change options BSG Group - Dau Anh Trong
Installation Don’t check any options unless you want to waste time BSG Group - Dau Anh Trong
Installation Installation process, you can take a coffee or go to sleep. Because it’s very long and slow. After all, click “Finish” to complete installation BSG Group - Dau Anh Trong
Connect to Database Engine • Click on “Connect” button on the top left and choose “Database Engine …” • “Server name” is “.” for localhost • Authentication type is SQL Server Authentication”. • Fill “Login” and “Password”. “Login” should be “sa” (SQL top-level user) • Don’t forget check “Remember password”, and then click on “Connect” BSG Group - Dau Anh Trong
Create Database Right click on “Databases” nodes and choose “New Database …”. Then fill database name and click OK. BSG Group - Dau Anh Trong
Backup Database Backup : right click on Database name. Choose Tasks Backup. Click on “Add” button to browse to backup file. BSG Group - Dau Anh Trong
Backup Database Browse and name database file (extension is “.bak” for recommend). Then click “OK” to come back to “Back Up Database” dialog, click “OK” again to complete backup database. BSG Group - Dau Anh Trong
Restore Database Right click on Database name, choose “Task” “Restore” “Database…”. Select “From device” option and browse to backup file. BSG Group - Dau Anh Trong
Restore Database Choose your backup file by clicking “Add” button and click “OK” button. BSG Group - Dau Anh Trong
Restore Database Check on your selected backup file. And then change to “Options” tab. BSG Group - Dau Anh Trong
Restore Database Check “Overwrite existing database”. Pay attention to “Original File Name”, it should point to “C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA” folder. Then click “OK” to complete. BSG Group - Dau Anh Trong
Create user Fill username and password. Select user type is “SQL Server authentication”. Uncheck “Enforce password policy” and choose “Default database” for the user (optional) BSG Group - Dau Anh Trong
Grant permission for user Select “Security” node “Login” node and double click on the username. In “Login Properties” dialog, select “User Mapping”, check on Database name and check on “db_owner” option. Then click “OK”. Now the user can access the database and manipulate on it. BSG Group - Dau Anh Trong
References • http://msdn.microsoft.com/en-us/library/bb418498.aspx • http://www.microsoft.com/sql/prodinfo/overview/whats-new-in-sqlserver2005.mspx • http://msdn.microsoft.com/en-us/library/ms170363.aspx BSG Group - Dau Anh Trong
Thanks your attention BSG Group BSG Group - Dau Anh Trong