ConnectionString

  • Thread starter Thread starter Josep Solà
  • Start date Start date
J

Josep Solà

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
 
Is that port opened? I use that syntax daily and haven't had any problems..
What specific error are you getting?
 
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
 
gotcha
Cor Ligthert said:
Bill,


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
 
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.
 
Back
Top