Dim trstring As String = "C:\somedatabasefile.mdb"
Dim sconnstring As String = "Provider=Microsoft.Jet.OLEDB.4.0;data source =" & trstring & ""
Dim oledb As New OleDbConnection(sconnstring)
In the deployment project, right click on the "Application Folder" and select "Add" and "File" then select the .mdb file you want to include in the deployment.Originally posted by Vidhya
Can you please tell me how to add the mdb file (Access database) plus its necessary components while creating PDW. I have added the mdb file into bin folder currenctly. I want both the exe and mdb file together.
Dim strPath As String = Application.StartupPath()
Dim strConnection As String =
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & strPath & "\Northwind.mdb"
Dim cn As OleDbConnection = New OleDbConnection(strConnection)