PC Review


Reply
Thread Tools Rate Thread

ConnectionString

 
 
Josep Solą
Guest
Posts: n/a
 
      19th Dec 2005
Hi,

I'm using a connection string what has this DataSource :
"PCNAME\INSTANCENAME,1884".

In my application if I don't use name instance and port, it works fine, but
if I use instancename and port don't work.

SQL Server is configured correctly, and Delphi applications works fine with
it.

What is wrong?

Thanks,

Josep


 
Reply With Quote
 
 
 
 
W.G. Ryan - MVP
Guest
Posts: n/a
 
      19th Dec 2005
Josep - try using the IP Address ie:

"Data Source=192.168.1.120,1433;
"Josep Solą" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> I'm using a connection string what has this DataSource :
> "PCNAME\INSTANCENAME,1884".
>
> In my application if I don't use name instance and port, it works fine,
> but
> if I use instancename and port don't work.
>
> SQL Server is configured correctly, and Delphi applications works fine
> with
> it.
>
> What is wrong?
>
> Thanks,
>
> Josep
>
>



 
Reply With Quote
 
Josep Solą
Guest
Posts: n/a
 
      19th Dec 2005
Hi William,

I use IP Address too, but it doesn't work.

Thanks

"W.G. Ryan - MVP" <(E-Mail Removed)> escribió en el mensaje
news:uN2S$(E-Mail Removed)...
> Josep - try using the IP Address ie:
>
> "Data Source=192.168.1.120,1433;
> "Josep Solą" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Hi,
> >
> > I'm using a connection string what has this DataSource :
> > "PCNAME\INSTANCENAME,1884".
> >
> > In my application if I don't use name instance and port, it works fine,
> > but
> > if I use instancename and port don't work.
> >
> > SQL Server is configured correctly, and Delphi applications works fine
> > with
> > it.
> >
> > What is wrong?
> >
> > Thanks,
> >
> > Josep
> >
> >

>
>



 
Reply With Quote
 
W.G. Ryan - MVP
Guest
Posts: n/a
 
      19th Dec 2005
Is that port opened? I use that syntax daily and haven't had any problems..
What specific error are you getting?
"Josep Solą" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi William,
>
> I use IP Address too, but it doesn't work.
>
> Thanks
>
> "W.G. Ryan - MVP" <(E-Mail Removed)> escribió en el mensaje
> news:uN2S$(E-Mail Removed)...
>> Josep - try using the IP Address ie:
>>
>> "Data Source=192.168.1.120,1433;
>> "Josep Solą" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>> > Hi,
>> >
>> > I'm using a connection string what has this DataSource :
>> > "PCNAME\INSTANCENAME,1884".
>> >
>> > In my application if I don't use name instance and port, it works fine,
>> > but
>> > if I use instancename and port don't work.
>> >
>> > SQL Server is configured correctly, and Delphi applications works fine
>> > with
>> > it.
>> >
>> > What is wrong?
>> >
>> > Thanks,
>> >
>> > Josep
>> >
>> >

>>
>>

>
>



 
Reply With Quote
 
Cor Ligthert [MVP]
Guest
Posts: n/a
 
      19th Dec 2005
Bill,

>I'm not following you here, where does SelectedValue fit in?


Because that the messages you are answering have the same subject as the
original it is in OE probably attached to the one from No So Clever, who
uses a combobox to set his different connectionstrings in the strings (I
have seen that probably you have advised that in far history, I would advise
in such a situation of course always a config.sys).

:-))

He is now moving the SelectedIndex into the connectionstring, probably is
here needed the selectedvalue.

I had not seen it if you had not answered that other question, I found it
all so strange and than I saw this problem as well.

Clear?

:-)

Cor


 
Reply With Quote
 
W.G. Ryan - MVP
Guest
Posts: n/a
 
      19th Dec 2005
gotcha
"Cor Ligthert [MVP]" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Bill,
>
>>I'm not following you here, where does SelectedValue fit in?

>
> Because that the messages you are answering have the same subject as the
> original it is in OE probably attached to the one from No So Clever, who
> uses a combobox to set his different connectionstrings in the strings (I
> have seen that probably you have advised that in far history, I would
> advise in such a situation of course always a config.sys).
>
> :-))
>
> He is now moving the SelectedIndex into the connectionstring, probably is
> here needed the selectedvalue.
>
> I had not seen it if you had not answered that other question, I found it
> all so strange and than I saw this problem as well.
>
> Clear?
>
> :-)
>
> Cor
>



 
Reply With Quote
 
Josep Solą
Guest
Posts: n/a
 
      21st Dec 2005
I think I found the solution.

To use instance name I must use ".

For example Data Source = "PCNAME\INSTANCENAME,1884". it works fine.

Thanks to all.

Have a nice XMAS.


"Josep Solą" <(E-Mail Removed)> escribió en el mensaje
news:(E-Mail Removed)...
> Hi,
>
> I'm using a connection string what has this DataSource :
> "PCNAME\INSTANCENAME,1884".
>
> In my application if I don't use name instance and port, it works fine,

but
> if I use instancename and port don't work.
>
> SQL Server is configured correctly, and Delphi applications works fine

with
> it.
>
> What is wrong?
>
> Thanks,
>
> Josep
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
connectionstring Tony Johansson Microsoft ASP .NET 0 4th Jan 2010 01:23 AM
ConnectionString Without DSN Ross Culver Microsoft Dot NET Framework Forms 7 16th Nov 2007 11:13 AM
connectionstring to 127.0.0.1 Tina Microsoft ASP .NET 4 22nd Aug 2007 09:02 AM
Asking for a ConnectionString Francesco Microsoft C# .NET 1 26th Feb 2004 11:10 AM
ConnectionString Becks Microsoft Access ADP SQL Server 2 3rd Dec 2003 10:46 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:47 AM.