Hello,
I've just upgraded from .NET 2003 to 2005 and to SQL Server Express 2005.
I've rebuilt my connection string. Before I used app.config, and now have
the connection string is in the settings.settin gs.
This works great for debugging/running on my machine, but I'm not sure how
to deploy this and install on another machine.
With 2003, in my app.config file, I had several connection strings, all but
the one I needed commented out (so when I was working on my machine, I had it
set to my connection, before I deployed, I'd change the connection string to
the machine I was putting it on).
I can't get the current connection string to work when I install on another
machine.
My old string was:
<add key="SqlDb.DbCo nnection" value="packet size=4096;user id=sa;integrate d
security=SSPI;d ata source=MKKCT;pe rsist security info=False;init ial
catalog=FSIS"
How can I recreate this in settings.settin gs so it will work when I deploy it?
TIA,
Amber 1 1235
Hi,
All the information on Settings.Settin gs are saved automatically in your
App.Config file. So really VS 2005 has made it very simple to access config.
And another aded feature is that you can actually save changes to your
app.config through settings.
Fitim Skenderi
"amber" <am***@discussi ons.microsoft.c om> wrote in message
news:94******** *************** ***********@mic rosoft.com... Hello, I've just upgraded from .NET 2003 to 2005 and to SQL Server Express 2005.
I've rebuilt my connection string. Before I used app.config, and now have the connection string is in the settings.settin gs. This works great for debugging/running on my machine, but I'm not sure how to deploy this and install on another machine. With 2003, in my app.config file, I had several connection strings, all but the one I needed commented out (so when I was working on my machine, I had it set to my connection, before I deployed, I'd change the connection string to the machine I was putting it on). I can't get the current connection string to work when I install on another machine. My old string was:
<add key="SqlDb.DbCo nnection" value="packet size=4096;user id=sa;integrate d security=SSPI;d ata source=MKKCT;pe rsist security info=False;init ial catalog=FSIS"
How can I recreate this in settings.settin gs so it will work when I deploy it?
TIA, Amber This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Danieltbt05 |
last post by:
just installed SQL server 2000 and using my client , i can't locate
the server. I used SQL query analyzer to search but no servers were
found. Error message is as below
Server : Msg17,level 16, state1
SQL server does not exist
or denied access.
|
by: crbd98 |
last post by:
Hello All,
Some time ago, I implemented a data access layer that included a simple
connectin pool. At the time, I did it all by myself: I created N
connections, each connection associated with a worker thread that would
execute the db commands. The pool was fixed and all the connections
were created when the db access class was...
|
by: Ted |
last post by:
In WSAT, I get the following error when trying to set up my provider:
Could not establish a connection to the database.
If you have not yet created the SQL Server database, exit the Web Site
Administration tool, use the aspnet_regsql command-line utility to
create and configure the database, and then return to this tool to set
the provider....
|
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 many connection has been used ?
2. If the maximum pool size has been reached, what happens when I call the
method Open to open the connection ? Will I...
|
by: samadams_2006 |
last post by:
Hello,
I have a problem that I'm hoping someone will be able to help me
resolve.
1) I have a C# Web Site in which I connect to the database: "Install
Microsoft SQL Server 2005 Express Edition" via the link on:
http://msdn2.microsoft.com/en-us/express/bb410792.aspx
| |
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |