|
-
Nov 4th, 2002, 03:13 AM
#1
Thread Starter
Addicted Member
HOW TO: Delete a SQL 7.0 database?
Hello there,
Does anybody knows how to delete a SQL Server 7.0 or MSDE database using VB. Pls show me some codes..
actually i do have d codes but it only works on SQL 2000
heres d code. (pls try to debug what is wrong)
Dim objRoot As Object
Set objRoot = CreateObject("SQLDMO.SQLServer")
objRoot.LoginTimeout = 60
objRoot.Connect "(local)", user, password
Call objRoot.KillDatabase("MyDatabase")
tried it on MSDE and SQL 7.0
it generates an error #2702-database do not exist
Your help is very much appreciated.
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
|