473,320 Members | 1,856 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,320 software developers and data experts.

Connection problem in 2005

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.settings.
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.DbConnection" value="packet size=4096;user id=sa;integrated
security=SSPI;data source=MKKCT;persist security info=False;initial
catalog=FSIS"

How can I recreate this in settings.settings so it will work when I deploy it?

TIA,
Amber
Nov 23 '05 #1
1 1219
Hi,

All the information on Settings.Settings 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***@discussions.microsoft.com> wrote in message
news:94**********************************@microsof t.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.settings.
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.DbConnection" value="packet size=4096;user
id=sa;integrated
security=SSPI;data source=MKKCT;persist security info=False;initial
catalog=FSIS"

How can I recreate this in settings.settings so it will work when I deploy
it?

TIA,
Amber

Nov 23 '05 #2

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

Similar topics

17
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
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...
3
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...
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...
2
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...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.