Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / ADO.NET / February 2005

Tip: Looking for answers? Try searching our database.

Script problem...

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rapha?l D?salbres - 26 Feb 2005 15:55 GMT
Hello, I'm having trouble with the following script:

Me.cnAccountingProgram.Close()
Me.cnAccountingProgram.Dispose()
Dim cnMaster As New SqlConnection("Initial Catalog=Master; Data
Source=(local); Integrated Security=SSPI")
Dim cmd1 As New SqlCommand
cnMaster.Open()
cmd1.Connection = cnMaster
cmd1.CommandText = "DROP DATABASE DB_Accounting"
cmd1.ExecuteNonQuery()
cnMaster.Close()

I get a system error?
Can anyone help me?

Thanks,

Rapha?l....
Cor Ligthert - 27 Feb 2005 10:51 GMT
Raphael,

Maybe when you tell us what the first two rows mean, in the rest I see no
problems.

(When you sent next time a message, than don't call it "script" next time
however "code" or even better describe what is the problem in the subject)

Cor
Rapha?l D?salbres - 27 Feb 2005 16:07 GMT
Hello,

The first two row are used to close the current connection, before I drop
the database and restore the backup....

Thanks, anyhow...

Rapha.....

> Raphael,
>
[quoted text clipped - 5 lines]
>
> Cor
Elton Wang - 27 Feb 2005 18:44 GMT
Hi Raphaël,

Not sure. But you can check if the count has enough
permission to drop DATABASE DB_Accounting.

HTH

Elton Wang
elton_wang@hotmail.com

>-----Original Message-----
>Hello, I'm having trouble with the following script:
[quoted text clipped - 18 lines]
>
>.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.