SERVER SETUP
Step 1: Download Microsoft SQL Server 2000 Desktop Engine Service Pack 3 file (MSDE2000A.exe) from http://go.microsoft.com/fwlink/?linkID=14502
Step 2: Execute MSDE2000A.exe to extract the MSDE, it extracts to C:\MSDERelA by default
Step 3: Now open an MS-DOS command prompt, and change to the directory where MSDERelA file is extracted, now execute following command to set up the server.
Windows authentication with network access.
Setup.exe DISABLENETWORKPROTOCOLS=0 SAPWD=
Windows authentication without network access.
Setup.exe SAPWD=
Mixed Windows and SQL mode authentication with network access.
Setup.exe DISABLENETWORKPROTOCOLS=0 SAPWD= SECURITYMODE=SQL
Mixed Windows and SQL mode authentication without network access.
Setup.exe SAPWD= SECURITYMODE=SQL
Step 4: Now in installation window in the left pane double click “Named Pipes” and then “TCP/IP” and then click ok.
Step 5: Now go to Start>Control Panel>Administrative Tools>Services and right click MSSQLSERVER option in the right pane and press Start to start the service. Also make sure startup type should be “Automatic”.
CREATE DATABASE
Execute following command to create database
C:\>OSQL –U sa –P –S
1>use master
2>go
1>CREATE DATABASE
2>go
BACKUP DATABASE
Execute following command to backup database
C:\>OSQL –U sa –P –S
1>BACKUP DATABASE TO DISK=
2>go
RESTORE DATABASE
Execute following command to restore database
C:\>OSQL –U sa –P –S
1>RESTORE DATABASE FROM DISK=
2>go
DELETE DATABASE
Execute following command to delete database
C:\>OSQL –U sa –P –S
1>use master
2>go
1>DROP DATABASE
2>go
Step 1: Download Microsoft SQL Server 2000 Desktop Engine Service Pack 3 file (MSDE2000A.exe) from http://go.microsoft.com/fwlink/?linkID=14502
Step 2: Execute MSDE2000A.exe to extract the MSDE, it extracts to C:\MSDERelA by default
Step 3: Now open an MS-DOS command prompt, and change to the directory where MSDERelA file is extracted, now execute following command to set up the server.
Windows authentication with network access.
Setup.exe DISABLENETWORKPROTOCOLS=0 SAPWD=
Windows authentication without network access.
Setup.exe SAPWD=
Mixed Windows and SQL mode authentication with network access.
Setup.exe DISABLENETWORKPROTOCOLS=0 SAPWD=
Mixed Windows and SQL mode authentication without network access.
Setup.exe SAPWD=
Step 4: Now in installation window in the left pane double click “Named Pipes” and then “TCP/IP” and then click ok.
Step 5: Now go to Start>Control Panel>Administrative Tools>Services and right click MSSQLSERVER option in the right pane and press Start to start the service. Also make sure startup type should be “Automatic”.
CREATE DATABASE
Execute following command to create database
C:\>OSQL –U sa –P
1>use master
2>go
1>CREATE DATABASE
2>go
BACKUP DATABASE
Execute following command to backup database
C:\>OSQL –U sa –P
1>BACKUP DATABASE
2>go
RESTORE DATABASE
Execute following command to restore database
C:\>OSQL –U sa –P
1>RESTORE DATABASE
2>go
DELETE DATABASE
Execute following command to delete database
C:\>OSQL –U sa –P
1>use master
2>go
1>DROP DATABASE
2>go
Comments