Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Creating procedure to exec when new DB is created

2 views
Skip to first unread message

Ruslan Kogan

unread,
Aug 21, 2002, 8:48:55 AM8/21/02
to
Hi,

I'm using SQL Server 7 and I was wondering if it is possible to write some
script that automatically creates a folder to store the data file and the
log file when a new db is created.

eg.
if the database is called "dbClients" then the following should be created
and the appropriate files put there.
g:\data\dbclients
g:\log\dbclients

and also, if possible, these folders get removed when the database is
deleted.

Your help is greatly appreciated.

0 new messages