Ask a Question related to ASP Database, Design and Development.
-
Jen #1
Client unable to establish connection
Hi,
I get the connection as following:
set objCon = CreateObject("ADODB.Connection")
objCon.ConnectionTimeout = 15
objCon.CursorLocation = adCmdTex
objCon.Open "Provider=sqloledb;Data Source=mainDB;Initial
Catalog=config;User Id=me;Password=pwd;"
for i = 0 to objCon.Errors.Count
sErr = sErr & "Opening con Error " & cstr(i + 1) & ": <"
& objCon.Errors(i).Number & "> " & objCon.Errors
(i).Description & vbCrLf
next
if sErr <> "" then
Response.Write sErr
end if
I got:
Opening con Error 1: <-2147467259> [DBNMPNTW]
ConnectionOpen (CreateFile()). Opening con Error 2: <-
2147467259> Client unable to establish connection
what's wrong
Jen Guest
-
Timed out trying to establish connection
cool! i will give that a try next time it happens. we try to restart the service through the services console on windows but even the service hangs... -
#39979 [NEW]: PGSQL_CONNECT_FORCE_NEW will causes next connect to establish a new connection
From: solar dot c at gmx dot net Operating system: SLES 10 PHP version: 5.2.0 PHP Bug Type: PostgreSQL related Bug... -
How to establish connection of DataGridView Control to Stock Excha
Dear Sir, I m develop a application in vb.net which update a live prices of stocks by a website named (www.nseindia.com) i m using... -
The underlying connection as closed: Could not establish secure channel for SSL/TLS
Ok, I try to communicate with a web service who receive xml message under a https using SSL. I have a directory with 240 XML files on my desktop.... -
Establish a connection telnet in PHP on a UNIX server
Hello, I wish to establish a connection in language PHP on a UNIX server by telnet. In fact, I would like : - Connect to server by sending IP... -
Bob Barrows #2
Re: Client unable to establish connection
Jen wrote:
This is not a valid setting for CursorLocation, although you may have lucked> Hi,
> I get the connection as following:
>
> set objCon = CreateObject("ADODB.Connection")
> objCon.ConnectionTimeout = 15
> objCon.CursorLocation = adCmdTex
out. The valid constants are listed here:
[url]http://msdn.microsoft.com/library/en-us/ado270/htm/mdaenumac_13.asp[/url]
<snip>> objCon.Open "Provider=sqloledb;Data Source=mainDB;Initial
> Catalog=config;User Id=me;Password=pwd;"
>
The "DBNMPNTW" means that the Named Pipes network library is being used to> I got:
>
> Opening con Error 1: <-2147467259> [DBNMPNTW]
create the connection to SQL
You must have an older version of MDAC on your machine since it seems that> ConnectionOpen (CreateFile()). Opening con Error 2: <-
> 2147467259> Client unable to establish connection
>
> what's wrong
it is defaulting to Named Pipes to establish the connection. Which leads to
possibility 1:
Your SQL Server is configured to not use Named Pipes.
You have a few options:
1. Reconfigure SQL Server so it supports Named Pipes
2. Upgrade to the latest MDAC ([url]www.microsoft.com/data[/url]), which will default
to using TCP/IP
3. Specify that TCP/IP should be used in the connection string: "...;network
library=DBMSSOCN"
Possibility 2:
Your SQL Server is configured to only use Windows Security. It needs to use
either mixed or SQL Server security to enable connections using username and
password
[url]http://support.microsoft.com?kbid=253500[/url]
If none of the above fix the problem, see these:
[url]http://support.microsoft.com?kbid=306518[/url]
[url]http://support.microsoft.com/default.aspx?scid=/support/sql/content/connect/ClientIP.asp[/url]
HTH,
Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Bob Barrows Guest
-
Jen #3
Re: Client unable to establish connection
Thank you very much. Now I know more about ado.
how can I check my current MDAC version?
you may have lucked>-----Original Message-----
>Jen wrote:>>> Hi,
>> I get the connection as following:
>>
>> set objCon = CreateObject("ADODB.Connection")
>> objCon.ConnectionTimeout = 15
>> objCon.CursorLocation = adCmdTex
>This is not a valid setting for CursorLocation, althoughus/ado270/htm/mdaenumac_13.asp>out. The valid constants are listed here:
>[url]http://msdn.microsoft.com/library/en-[/url]Source=mainDB;Initial>>> objCon.Open "Provider=sqloledb;Datais being used to><snip>>> Catalog=config;User Id=me;Password=pwd;"
>>
>>>> I got:
>>
>> Opening con Error 1: <-2147467259> [DBNMPNTW]
>The "DBNMPNTW" means that the Named Pipes network librarysince it seems that>create the connection to SQL
>>>> ConnectionOpen (CreateFile()). Opening con Error 2: <-
>> 2147467259> Client unable to establish connection
>>
>> what's wrong
>You must have an older version of MDAC on your machineconnection. Which leads to>it is defaulting to Named Pipes to establish thewhich will default>possibility 1:
>
>Your SQL Server is configured to not use Named Pipes.
>
>You have a few options:
>
>1. Reconfigure SQL Server so it supports Named Pipes
>2. Upgrade to the latest MDAC ([url]www.microsoft.com/data[/url]),string: "...;network>to using TCP/IP
>3. Specify that TCP/IP should be used in the connectionSecurity. It needs to use>library=DBMSSOCN"
>
>Possibility 2:
>Your SQL Server is configured to only use Windowsusing username and>either mixed or SQL Server security to enable connectionsscid=/support/sql/content/connect/ClientIP.asp>password
>[url]http://support.microsoft.com?kbid=253500[/url]
>
>If none of the above fix the problem, see these:
>[url]http://support.microsoft.com?kbid=306518[/url]
>[url]http://support.microsoft.com/default.aspx?[/url]spam trap so I>
>HTH,
>Bob Barrows
>
>--
>Microsoft MVP - ASP/ASP.NET
>Please reply to the newsgroup. This email account is mythen remove the>don't check it very often. If you must reply off-line,>"NO SPAM"
>
>
>.
>Jen Guest
-
Bob Barrows #4
Re: Client unable to establish connection
Jen wrote:
There's a tool called Component Checker that is available from the MDAC> Thank you very much. Now I know more about ado.
> how can I check my current MDAC version?
>
site: [url]www.microsoft.com/data[/url]
Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Bob Barrows Guest
-
Jen #5
Re: Client unable to establish connection
OK, I checked the Properties of the db server. Under
Security tab, the "SQL Server and Windows" is selected. so
possibility 2 is out. Also under General, the version is
7.00.1077.
For possibility 1, where can i configure the server to
allow the Named Pipe?
And I check the MDAC on the web server, it's MDAC 2.5 sp3.
Thanks
you may have lucked>-----Original Message-----
>Jen wrote:>>> Hi,
>> I get the connection as following:
>>
>> set objCon = CreateObject("ADODB.Connection")
>> objCon.ConnectionTimeout = 15
>> objCon.CursorLocation = adCmdTex
>This is not a valid setting for CursorLocation, althoughus/ado270/htm/mdaenumac_13.asp>out. The valid constants are listed here:
>[url]http://msdn.microsoft.com/library/en-[/url]Source=mainDB;Initial>>> objCon.Open "Provider=sqloledb;Datais being used to><snip>>> Catalog=config;User Id=me;Password=pwd;"
>>
>>>> I got:
>>
>> Opening con Error 1: <-2147467259> [DBNMPNTW]
>The "DBNMPNTW" means that the Named Pipes network librarysince it seems that>create the connection to SQL
>>>> ConnectionOpen (CreateFile()). Opening con Error 2: <-
>> 2147467259> Client unable to establish connection
>>
>> what's wrong
>You must have an older version of MDAC on your machineconnection. Which leads to>it is defaulting to Named Pipes to establish thewhich will default>possibility 1:
>
>Your SQL Server is configured to not use Named Pipes.
>
>You have a few options:
>
>1. Reconfigure SQL Server so it supports Named Pipes
>2. Upgrade to the latest MDAC ([url]www.microsoft.com/data[/url]),string: "...;network>to using TCP/IP
>3. Specify that TCP/IP should be used in the connectionSecurity. It needs to use>library=DBMSSOCN"
>
>Possibility 2:
>Your SQL Server is configured to only use Windowsusing username and>either mixed or SQL Server security to enable connectionsscid=/support/sql/content/connect/ClientIP.asp>password
>[url]http://support.microsoft.com?kbid=253500[/url]
>
>If none of the above fix the problem, see these:
>[url]http://support.microsoft.com?kbid=306518[/url]
>[url]http://support.microsoft.com/default.aspx?[/url]spam trap so I>
>HTH,
>Bob Barrows
>
>--
>Microsoft MVP - ASP/ASP.NET
>Please reply to the newsgroup. This email account is mythen remove the>don't check it very often. If you must reply off-line,>"NO SPAM"
>
>
>.
>Jen Guest
-
Bob Barrows #6
Re: Client unable to establish connection
Jen wrote:You need to run the SQL Setup program, but don't bother. Use TCP/IP to> OK, I checked the Properties of the db server. Under
> Security tab, the "SQL Server and Windows" is selected. so
> possibility 2 is out. Also under General, the version is
> 7.00.1077.
>
> For possibility 1, where can i configure the server to
> allow the Named Pipe?
connect, using option 3 below.
I would upgrade it to at least 2.7.> And I check the MDAC on the web server, it's MDAC 2.5 sp3.
Bob Barrows>> 3. Specify that TCP/IP should be used in the connection string:
>> "...;network library=DBMSSOCN"
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Bob Barrows Guest



Reply With Quote

