Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Vista API competition Print Broken Article? Bookmark Discuss Send to a friend
$10,000 in prizes
Vista Mobile comp:
Win a Samsung UMPC Introduction
Vista Secure API
comp: Win a Laptop! This article describes how to configure the Microsoft MSDE database engine
VB6 Interop Comp
Win an Xbox Elite! z What is MSDE?
Monthly Competition z Limitations
z What you get
z How to install and configure the MSDE
z Arguments to the setup.exe file
z Using the “setup.ini” file
z Post reconfiguration
z Configure the server
z Configure the client
z Fire it up!
z How do I determine what version I am running?
z Create and delete a database
z How do I list all the databases on the system?
z How do I detach a database from the system?
z How do I attach a database to the system?
z How do I list all tables in a database?
z Database users
z Add a new user with SQL authentication
z With Win authentication
z How to list all users and roles in a database
z How to remove users from a database
z Exit osql
What is MSDE?
http://www.codeproject.com/database/ConfigureMSDE.asp 5/24/2007
Hands on how to configure the Microsoft MSDE - The Code Project - Database Page 2 of 12
Limitations
z Failover clustering.
z Log shipping.
z Parallel DBCC.
z Parallel create index.
z Enhanced read ahead and scan.
z Indexed views.
z Federated database server.
z System area network support (SAN).
z Graphical DBA, and developer utilities and wizards.
z Full-text search.
z Analysis services.
z OLAP partitions.
z Partition wizard.
z Linked OLAP cubes.
z ROLAP dimension support.
z HTTP Internet support.
z Custom rollups.
z Calculated Cells.
z Write back to dimensions.
z Very large dimension support.
z Actions.
z Real-time OLAP.
z Distributed partition cubes.
z Data mining.
z English query.
The MSDE can be downloaded from the Microsoft web site for free. Downlo
hard drive. There are four different ways to run the MSDE depending on ho
below.
http://www.codeproject.com/database/ConfigureMSDE.asp 5/24/2007
Hands on how to configure the Microsoft MSDE - The Code Project - Database Page 3 of 12
Please use Windows authentication whenever possible. SQL mode will send
network in plain text. This means it can be sniffed by intruders or hackers.
more about on these web pages MSDN [1], and MSDN [2]. A default instal
Windows authentication mode.
Before you start the installation of the MSDE, disable Norton Antivirus and
installation has completed. Norton Antivirus will not let you install the MSD
In all of our examples, we will be using “password” for the system adminis
You can run configure the MSDE by giving arguments to the setup.exe file
C:\...MSDE\>Setup.exe DISABLENETWORKPROTOCOLS=0
SAPWD="password "INSTANCENAME="myinstance"
C:\...MSDE\>Setup.exe DISABLENETWORKPROTOCOLS=0
SAPWD="password " INSTANCENAME="myinstance" SECURITYMODE=SQL
In this example, we will not be granting access from the network. Only loc
mixed mode authentication for Java applications.
http://www.codeproject.com/database/ConfigureMSDE.asp 5/24/2007
Hands on how to configure the Microsoft MSDE - The Code Project - Database Page 4 of 12
In this example, we will not grant network access to the database. We will
most secure setup, and should be used for embedded MSDE applications.
You will find a file called “setup.ini” in the MSDE folder, if you want to use
with read access to this file can see the system administrator password if t
[Options]
[Options]
DISABLENETWORKPROTOCOLS=0
SAPWD="password "
INSTANCENAME="myinstance"
SECURITYMODE=SQL
[Options]
DISABLENETWORKPROTOCOLS=0
SAPWD="password "
INSTANCENAME="myinstance"
http://www.codeproject.com/database/ConfigureMSDE.asp 5/24/2007
Hands on how to configure the Microsoft MSDE - The Code Project - Database Page 5 of 12
In this example, we will not be granting access from the network. Only loc
mixed mode authentication for Java applications.
[Options]
SAPWD="password "
INSTANCENAME="myinstance"
SECURITYMODE=SQL
In this example, we will not grant network access to the database. We will
most secure setup, and should be used for embedded MSDE applications.
[Options]
SAPWD="password "
INSTANCENAME="myinstance"
Post reconfiguration
http://www.codeproject.com/database/ConfigureMSDE.asp 5/24/2007
Hands on how to configure the Microsoft MSDE - The Code Project - Database Page 6 of 12
Run the SQL Server network utility. Open a command prompt and type:
C:\> svrnetcn.exe
Enable the “Named Pipes” protocol and the “TCP/IP” protocol. Click on “Pro
configure the default port MSDE will be listening on if you want network ac
Run the SQL Server client network utility. Open a command prompt and ty
C:\> cliconfg.exe
Enable the “Named Pipes” and the “TCP/IP” protocols. Click on “Properties”
number you found with the “svrnetcn.exe” utility. Default is 1433.
Add an alias for the “Named Pipes” and the “TCP/IP” under the “Alias” box
applications to a specific configuration. The client just accesses the alias, a
configuration.
Fire it up!
Let’s start the MSDE. Open the Control Panel, the Administrative Tools and
“MSSQL$MYINSTANCE” in the list. Right click it, and choose “Start”. Startu
OK, the MSDE should now be up and running. Let’s test it. Run the osql too
http://www.codeproject.com/database/ConfigureMSDE.asp 5/24/2007
Hands on how to configure the Microsoft MSDE - The Code Project - Database Page 7 of 12
By default, the MSDE has four databases installed. These databases are:
You should not use any of these databases for any application purposes. T
are out of reach, simple as that. Create a new database to store your appl
Let us create a database with the name “Books”. First of all, you must logi
dbcreator privileges. Open the osql administration utility and login as syste
Or
http://www.codeproject.com/database/ConfigureMSDE.asp 5/24/2007
Hands on how to configure the Microsoft MSDE - The Code Project - Database Page 8 of 12
z NAME = Logical name used to specify the log and the database in TS
z FILENAME = Physical location of the log file and the database on the
z SIZE = Initial file size.
z MAXSIZE = The log and the database maximum size.
z FILEGROWTH = Increments of the log and the database file. The DB
If you want to list all the databases in the instance, please open the osql u
http://www.codeproject.com/database/ConfigureMSDE.asp 5/24/2007
Hands on how to configure the Microsoft MSDE - The Code Project - Database Page 9 of 12
To detach a database called larsinge from the system, please do the follow
If you want to list all tables in an instance, please open the osql utility and
In this example, we list all tables in the Products database in the myinstan
type to “S” if you want to list out all System tables.
http://www.codeproject.com/database/ConfigureMSDE.asp 5/24/2007
Hands on how to configure the Microsoft MSDE - The Code Project - Database Page 10 of 12
2> go
1> select name from sysobjects where type = 'S'
Database users
This will add a new SQL login user ‘lars’ with the password ‘pass45’ and se
user, remember to grant access to the database and the tables for the use
Please open the osql utility, and do the following query to list all users in th
This is how you revoke a user ‘lars’ access to the database ‘larsinge’.
http://www.codeproject.com/database/ConfigureMSDE.asp 5/24/2007
Hands on how to configure the Microsoft MSDE - The Code Project - Database Page 11 of 12
Exit osql
1> quit
Lars-Inge Tønnessen
[Top] Sign in to vo
Subject
How can i use SQL Server2000 database without using SQL Server In java
how can I grant user the swpro with system administrator permission/privilege
How can I
Great Article
http://www.codeproject.com/database/ConfigureMSDE.asp 5/24/2007
Hands on how to configure the Microsoft MSDE - The Code Project - Database Page 12 of 12
user id
Re: user id
Localized string
create view
dfg
Re: where can I retain the password of 'sa' without uninstalling MSDE.?
The Ultimate Toolbox • ASP Alliance • Developer Fusion • Developersdex • DevGuru • Programmers He
http://www.codeproject.com/database/ConfigureMSDE.asp 5/24/2007