|
-
Jan 17th, 2005, 08:38 PM
#1
Thread Starter
Fanatic Member
How to drop SQL Server Database by using VbScript
Dear all,
How to drop SQL Server Database by using VbScript? .. please advise
Regards
Winanjaya
-
Jan 18th, 2005, 09:21 AM
#2
Lively Member
Re: How to drop SQL Server Database by using VbScript
What do you mean by 'dropping' a database?
-
Jan 18th, 2005, 10:35 AM
#3
Frenzied Member
Re: How to drop SQL Server Database by using VbScript
Sean
Some days when I think about the next 30 years or so of my life I am going to spend writing code, I happily contemplate stepping off a curb in front of a fast moving bus.
-
Jan 18th, 2005, 10:35 AM
#4
Re: How to drop SQL Server Database by using VbScript
 Originally Posted by aidan
What do you mean by 'dropping' a database?
"Dropping" in SQL usually refers to "Delete". I assume he wants to delete Delete an SQL server DataBase.
Are you sure you want to perform this kind of action using VBScript?Deleting a entire db is a bit dangerous and should be done manuallu.
But if thats what you want use ADO...
Here is an article which discusses about Dropping DB.
http://www.aspfree.com/c/a/MS-SQL-Se...2000-Part-3/2/
[VBF RSS Feed]
There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.
If I have been helpful, Please Rate my Post. Thanks.
This post was powered by : 
-
Jan 18th, 2005, 10:51 AM
#5
Frenzied Member
Re: How to drop SQL Server Database by using VbScript
Actually, when he said drop, I assume he means he wants to detach it, not delete it.
Sean
Some days when I think about the next 30 years or so of my life I am going to spend writing code, I happily contemplate stepping off a curb in front of a fast moving bus.
-
Jan 18th, 2005, 11:25 AM
#6
Re: How to drop SQL Server Database by using VbScript
 Originally Posted by SeanGrebey
Actually, when he said drop, I assume he means he wants to detach it, not delete it.
If its "Detaching" then there is a built in stored proc that comes in master Database, one just need to pass the Database name to detach.
Though "Drop" usually means Delete, there is a SQL Command called Drop which can be used to Delete Database(IN SQL Server), Table etc.
[VBF RSS Feed]
There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.
If I have been helpful, Please Rate my Post. Thanks.
This post was powered by : 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|