Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Cannot start your application. The workgroup information file is missing or opened exclusively by another user.

$
0
0

I am building a windows form application and have integrated an oracle database using ODT for visual studio 2012....I am posting the code below

Imports System.Data.OleDb
Imports System.Data.Odbc

Public Class Form1

    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        Dim connection As OleDbConnection = New OleDbConnection("PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=MyDB;PERSIST SECURITY INFO=True;USER ID=SYSTEM;")
        Dim cmd As OleDbCommand = New OleDbCommand("delete * from emp;")
        connection.Open()
        cmd.ExecuteNonQuery()
        connection.Close()

    End Sub
End Class

this is just a sample code which i created to get used to the commands...but on execution it throws the above xception...PLZ HELP


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>