Create an Database in an MSDE Database
Databases are located in the C:\All Programs\Microsoft SQL Server directory and have an *.mdf extension associated to a log file with an *.ldf extension.
What do you want to do?
ClicknDECiDE databases are located in the C:\All Programs\Microsoft SQL Server\ directory and have an *.mdf extension associated to a log file with an *.ldf extension. To create a new database, please perform the steps below. In this example we will create the testdb database.
Note: use uppercase characters if required in the following command lines, for example for -U -P or -Q.
Select Start> All Programs> Accessories> Command Prompt to open a DOS Window.
Type the database directory: C:\All Programs\Microsoft SQL Server
Type the command: OSQL -U sa
Press ENTER.
Enter the Password.
Press ENTER. The following command line will appear: >1
Type the command:
1> Create database
testdb
Press ENTER. The following command line will appear: >2
Type the command:
2> go
Press ENTER. A message will be displayed if the command is successful and the command line will return to >1.
Type the following
command to quit:
1> Exit
Press ENTER. The prompt will return to: C:\All Programs\Microsoft SQL Server
See Also |