Quantcast
Channel: Answers for "create databse dynamically using another databse"
Viewing all articles
Browse latest Browse all 6

Answer by KenJ

$
0
0

After your VB code creates the new_login you may need some vb code to do the following

'existing vb code creates new login

'vb code to backup [1] first database
'vb code to restore [2] first database as new_database use new_login for the name
'    vb code must rename the mdf and ldf files to match the new_database name
'vb code to give new_user access to new_database [3]

'existing vb code does whatever else it would normally do...

1: http://msdn.microsoft.com/en-us/library/aa225964(SQL.80).aspx

2: http://msdn.microsoft.com/en-us/library/aa238405(SQL.80).aspx

3: http://msdn.microsoft.com/en-us/library/ms173463.aspx


Viewing all articles
Browse latest Browse all 6

Latest Images

Trending Articles





Latest Images