473,466 Members | 1,363 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Add password to connectionstring

Creating a new typed dataset using the Data Source Configuration Wizard (and
opting NOT to save the password with user settings) generates a
ConnectionString setting like...

Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\JB74\LISYSTEM.MDB;User
ID=user;Jet OLEDB:System database=C:\JB74\system.mdw

How do I now incorporate "password=xxx" without saving it in app.config?

Thanks

Jan 18 '06 #1
1 1269
You could do this :

string tempConectionnsting = @"Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\JB74\LISYSTEM.MDB;User ID=user;{0}Jet OLEDB:System
database=C:\JB74\system.mdw";
string passwordString = "password=xxx";
string finalConectionString =
String.Format(tempConectionnsting,passwordString);
"Job Lot" <Jo****@discussions.microsoft.com> wrote in message
news:76**********************************@microsof t.com...
Creating a new typed dataset using the Data Source Configuration Wizard
(and
opting NOT to save the password with user settings) generates a
ConnectionString setting like...

Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\JB74\LISYSTEM.MDB;User
ID=user;Jet OLEDB:System database=C:\JB74\system.mdw

How do I now incorporate "password=xxx" without saving it in app.config?

Thanks


Jan 20 '06 #2

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

Similar topics

1
by: Jaret Brower | last post by:
I have a SqlConnection object that in turn has a ConnectionString property set that includes a "pwd=password" in it. When I make the call SqlConnection.Open() and I later try to get the...
3
by: Henry | last post by:
Hi, my asp.net application is accessing a mssql on another server. This works fine when I use this in my web.config file: <add key="dbkey"...
5
by: scorpion53061 | last post by:
is it possible to set the database password that you can set in access for a database from a vb.net application?
15
by: Eugene Anthony | last post by:
Is this method of validation for password and username considered to be secured. In my previous post I was given a solution that uses command object and the values are parsed by parameters. But the...
3
by: DJ | last post by:
Hi, Got a real problem here and I can't figure it out. I set up the connection string to my database in my web config file, do it right by the book, and retreive it using the...
6
by: SAL | last post by:
Hello, Currently, I'm using Visual Studio 2003, C#, Framework 1.1 and Enterprise Library 2005 (for framework 1.1). I've used the Enterprise Library Configuration utility to create my...
1
by: Luqman | last post by:
I want to use Sql Server Roles, Sql Server Logins/Passwords with ASP.Net 2.0, instead of saving One username/password in Connectionstring of Web.Config, is it possible ? I don't want to save the...
0
by: =?Utf-8?B?cGFucGF3ZWw=?= | last post by:
I assigned the ConnectionString to SqlConnection, then I called Open() which succeeded, but when I tried to used the that conn. object ConnectionString for another connection, it was missing...
9
by: Jordi Maicas | last post by:
Hello again! I've got a typical problem validating a user/pass through an access database with C#. I tried with two functions, and both tell me that the resulting string is out of context.
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.