Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

create msde database

Status
Not open for further replies.

153

Programmer
Mar 16, 2003
25
ID
Does anyone know how to create an msde database programmatically?

 
Because MSDE is just a slightly crippled version of MS SQL Server if you use a connection to a DB Server that is actually an MSDE server you can use all the standard MS SQL features to create a database such as the T-SQL command CREATE DATABASE.

AFAIK MSDE doesn't restrict the number of databases per server, just the maximum size of each DB (2GB?)



Bob Boffin
 
Yup, just issue CREATE DATABASE and CREATE TABLE statements.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Thanks for reply.

How should I write the connection string? (connection to which database?)


 
You would connect to the 'master' database on the server prior to sending your create database commands.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
thanks,

I will try it!


 
Thanks...

It works fine.

Thanks for all of your help.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top