473,387 Members | 1,529 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Connection to DataBase

Hi,
I make a local database by using Access XP.
I connect to this file by the following string:

this.conStr = "Provider=Microsoft.JET.OLEDB.4.0 ;data
source= MyDa.mdb";

What I have to do to be able to have a Password to this
file, and how to open it ?
Nov 15 '05 #1
4 2627
Hi,
Your connection string will be like this:
"Provider=Microsoft.JET.OLEDB.4.0 ;data source= MyDa.mdb;User
ID=someuser;Password=somepassword;"
--
Andrew Gnenny
pulsar2003@/no-spam/email.ru (Please remove /no-spam/ for reply)
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE
"[Gho]" <yo*****@taux01.nsc.com> wrote in message
news:02****************************@phx.gbl...
Hi,
I make a local database by using Access XP.
I connect to this file by the following string:

this.conStr = "Provider=Microsoft.JET.OLEDB.4.0 ;data
source= MyDa.mdb";

What I have to do to be able to have a Password to this
file, and how to open it ?

Nov 15 '05 #2
I get the following Error:
"Cannot start your application. The workgroup information
file is missing or opened exclusively by another.."
Why?
the database is closed befor running the application

-----Original Message-----
Hi,
Your connection string will be like this:
"Provider=Microsoft.JET.OLEDB.4.0 ;data source= MyDa.mdb;UserID=someuser;Password=somepassword;"
--
Andrew Gnenny
pulsar2003@/no-spam/email.ru (Please remove /no-spam/ for reply)X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE
"[Gho]" <yo*****@taux01.nsc.com> wrote in message
news:02****************************@phx.gbl...
Hi,
I make a local database by using Access XP.
I connect to this file by the following string:

this.conStr = "Provider=Microsoft.JET.OLEDB.4.0 ;data
source= MyDa.mdb";

What I have to do to be able to have a Password to this
file, and how to open it ?

.

Nov 15 '05 #3
Hi,
This error occurs when the application cannot find the System.mdw file. On
Win2000 this file resides at
Program Files\Common Files\System\
This may help:
1. Copy your System.mdw file into the application database folder

- OR -

2. Specify "Jet OLEDB:System Database" parameter in your connection string
Jet OLEDB:System Database=C:\Program Files\Common Files\System\SYSTEM.MDW

3. Optional. Specify the password for the system database
Jet OLEDB:Database Password=12345

--
Andrew Gnenny
pulsar2003@/no-spam/email.ru (Please remove /no-spam/ for reply)
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE
"[Gho]" <yo*****@taux01.nsc.com> wrote in message
news:06****************************@phx.gbl...
I get the following Error:
"Cannot start your application. The workgroup information
file is missing or opened exclusively by another.."
Why?
the database is closed befor running the application

-----Original Message-----
Hi,
Your connection string will be like this:
"Provider=Microsoft.JET.OLEDB.4.0 ;data source=

MyDa.mdb;User
ID=someuser;Password=somepassword;"
--
Andrew Gnenny
pulsar2003@/no-spam/email.ru (Please remove /no-spam/ for

reply)
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE
"[Gho]" <yo*****@taux01.nsc.com> wrote in message
news:02****************************@phx.gbl...
Hi,
I make a local database by using Access XP.
I connect to this file by the following string:

this.conStr = "Provider=Microsoft.JET.OLEDB.4.0 ;data
source= MyDa.mdb";

What I have to do to be able to have a Password to this
file, and how to open it ?

.

Nov 15 '05 #4

i copied the System10.mdw to my current directory.
Whats wrong with the following?

this.conStr = "Provider=Microsoft.JET.OLEDB.4.0;Jet
OLEDB:System Database= C:\\System10.mdw; data source =
C:\\SuperIO_Chips.mdb;UserID=MySeflf;Password=MyPa ss;Workst
ation ID=VL51het83rOIQQo";
thanks
-----Original Message-----
Hi,
This error occurs when the application cannot find the System.mdw file. OnWin2000 this file resides at
Program Files\Common Files\System\
This may help:
1. Copy your System.mdw file into the application database folder
- OR -

2. Specify "Jet OLEDB:System Database" parameter in your connection stringJet OLEDB:System Database=C:\Program Files\Common Files\System\SYSTEM.MDW
3. Optional. Specify the password for the system database
Jet OLEDB:Database Password=12345

--
Andrew Gnenny
pulsar2003@/no-spam/email.ru (Please remove /no-spam/ for reply)X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE
"[Gho]" <yo*****@taux01.nsc.com> wrote in message
news:06****************************@phx.gbl...
I get the following Error:
"Cannot start your application. The workgroup information file is missing or opened exclusively by another.."
Why?
the database is closed befor running the application

>-----Original Message-----
>Hi,
>Your connection string will be like this:
>"Provider=Microsoft.JET.OLEDB.4.0 ;data source=

MyDa.mdb;User
>ID=someuser;Password=somepassword;"
>--
>Andrew Gnenny
>pulsar2003@/no-spam/email.ru (Please remove /no-spam/ for
reply)
>X-Unity Test Studio
>http://x-unity.miik.com.ua/teststudio.aspx
>Bring the power of unit testing to VS .NET IDE
>
>
>"[Gho]" <yo*****@taux01.nsc.com> wrote in message
>news:02****************************@phx.gbl...
>> Hi,
>> I make a local database by using Access XP.
>> I connect to this file by the following string:
>>
>> this.conStr = "Provider=Microsoft.JET.OLEDB.4.0 ;data
>> source= MyDa.mdb";
>>
>> What I have to do to be able to have a Password to

this >> file, and how to open it ?
>
>
>.
>

.

Nov 15 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: AMC | last post by:
Hi, I'm using an include file to store the connection string to a database. Whenever I try to reference that string to open a connection in the page that includes the file I get the error 'empy...
11
by: pradeep_TP | last post by:
Hi all, I have a few questions that I have been wanting to ask for long. These are all related to ADO.net and specifically to conenction to database. 1) If I have opened a connection to a...
3
by: R Reyes | last post by:
Hi, I'm trying to modularize my database connections a little better and get more out of my project with less code. First check out this common dbOpen() function inside class clsDatabase. I...
7
by: Lau Lei Cheong | last post by:
Hello, Actually I think I should have had asked it long before, but somehow I haven't. Here's the scenerio: Say we have a few pages in an ASP.NET project, each of them needs to connect to...
3
by: Martin B | last post by:
Hallo! I'm working with C# .NET 2.0, implementing Client/Server Applications which are connecting via Network to SQL-Server or Oracle Databases. To stay independent from the underlaying Database...
35
by: Terry Jolly | last post by:
Web Solution Goal: Have a global database connection Why: (There will be 30+ tables, represented by 30+ classes) I only want to reference the database connection once. I put the connection...
6
by: Arsalan Ahmad | last post by:
Hi all, I am creating a website in which in an Item detail page there are a number of web controls (7 or 8) and what is happening that inside each of control's Page_Load() function I am creating...
5
by: Suresh | last post by:
Hi Guys I have Db2 server installed on remote server. i am connecting to that remote server by using VPN. I want to connect that remote DB2 server instance using my local machine DB2...
20
by: fniles | last post by:
I am using VS2003 and connecting to MS Access database. When using a connection pooling (every time I open the OLEDBCONNECTION I use the exact matching connection string), 1. how can I know how...
6
Cintury
by: Cintury | last post by:
Hi all, I've developed a mobile application for windows mobile 5.0 that has been in use for a while (1 year and a couple of months). It was developed in visual studios 2005 with a back-end sql...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.