Re: Help -- SQLConnection Problem
- From: "Daniel Walzenbach" <daniel.walzenbach@xxxxxxxxxxxxxxxx>
- Date: Sun, 4 Sep 2005 14:55:37 +0200
Michael,
This will help you setting up your connection string.
http://www.connectionstrings.com/
What do you mean by "copy all the properties of that SQLConnection object to
a new SQLConnection"? Do you really mean all? Do you now have two
SQLConnection Objects having the same name? If you could provide us with the
error message you get it would me much easier to find a solution to your
problem.
Basically I agree to what Jordan said. What I usually do is dragging a
SQLConnection of my form, copy the connection string, delete the
SQLConnection again and then create the SQLConnection in code behind using
the connection string I copied (I always forget about
theconnectionstrings.com).
You should also have a look at the msdn reference which comes with some nice
examples:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemDataSqlClientSqlConnectionClassConnectionStringTopic.asp
Does this help?
Daniel Walzenbach
"Michael D Murphy" <mdmurphy@xxxxxxxxxxxxxxxxxxxxx> schrieb im Newsbeitrag
news:exXGo2LsFHA.1252@xxxxxxxxxxxxxxxxxxxxxxx
> Hi,
> I continually have problems with SQLConnections. Once I fix the one that I
> am having problems with I move on. I would rather have more confidence. I
> must be not understanding something or another. If I drag a SQLConnection
> to the form and configure it and then drag a SQLDataAdapter to the form
> and configure that, then right click on the SQLAdapter and click on
> Preview Data, I always get the data. But if I use that exact SQLConnection
> object or copy all the properties of that SQLConnection object to a new
> SQLConnection object, and try to connect I get errors. Why would it work
> one way and not the other. If you could point me to a SQLConnection primer
> or other tutorial that will finally get me past these problems, I would
> appreciate it.
> Thanks for your time,
> Michael
> 954-452-1047
>
.
- Follow-Ups:
- Re: Help -- SQLConnection Problem
- From: Michael D Murphy
- Re: Help -- SQLConnection Problem
- From: Michael D Murphy
- Re: Help -- SQLConnection Problem
- From: Michael D Murphy
- Re: Help -- SQLConnection Problem
- References:
- Help -- SQLConnection Problem
- From: Michael D Murphy
- Help -- SQLConnection Problem
- Prev by Date: How to get the virtual directory?
- Next by Date: Re: How to get the virtual directory?
- Previous by thread: Re: Help -- SQLConnection Problem
- Next by thread: Re: Help -- SQLConnection Problem
- Index(es):
Relevant Pages
|
Loading