Showing posts with label instances. Show all posts
Showing posts with label instances. Show all posts

Tuesday, March 27, 2012

Cannot enlist with MSX server

We have a server with the default instance and 2 additional named instances running SQL 2000 SP4. Recently I installed another instance for SQL Server 2005. We also use MSX/TSX approach to manage the servers so I tried to enlist the SQL 2005 instance with the master server using the

msdb..sp_msx_enlist @.msx_server_name = N'SQLMON', @.location = N'Datacentre. Margin Lending overnight copy'

and got this error,

Msg 22026, Level 16, State 1, Line 0

The enlist operation failed (reason: SQLServerAgent Error: Unable to connect to MSX 'SQLMON'.)

Looking at the text for this procedure it looks like it reads the wrong registry keys. The procedure it hardcoded to read,

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer\SQLServerAgent

This key doesn't exist, but this one does,

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.1\SQLServerAgent

Is this causing the connection error? I know that the MSX server is available as I can connect and query it in Management Studio.

http://msdn2.microsoft.com/en-us/library/ms365379.aspx

Please take a look at the above link on what has changed in MSX/TSX on security lines.

Also, note that in a mixed(SQL 2K and 2005) multi-server environment MSX can be only SQL 2000. TSXs can be both SQL 2K and 2005

|||

Thanks for your reply. I set the Encryption option to zero.and was able to make the SQL 2005 server a TSX.

When will the encryption option be selecteable in the TSX setup wizard?

|||Unfortunately no. We have a tracking bug for the next release to expose it at SMO and UI level

Wednesday, March 7, 2012

Cannot connect with SQL Server Management Studio to SQL2K5

Hi
we are using SQL 2005 SP2 cluster with 3 instances. We are trying to connect
with SQL Server Management Studio thrue a Firewall that have only port
1433/TCP open. This has worked with SQL Auth and SQL 2000 perfectly. I also
tried to add 1433/UDP, 1434/TCP and 1434/UDP, but haven't had any success.
On the machines themself the connection is working well... i'm connecting to
the instances with server name "CLU1INS1\Instance1", "CLU1INS2\Instance2"
and "CLU1INS3\Instance3" and SQL Auth, but from remote it is not working.
What could be wrong here and how are we able to solve this problem?
Regards
MarcMarc
Do you get an error? If so , what?
"Marc Bauer" <marc.bau@.gmx.net> wrote in message
news:u06scMCXIHA.4440@.TK2MSFTNGP06.phx.gbl...
> Hi
> we are using SQL 2005 SP2 cluster with 3 instances. We are trying to
> connect with SQL Server Management Studio thrue a Firewall that have only
> port 1433/TCP open. This has worked with SQL Auth and SQL 2000 perfectly.
> I also tried to add 1433/UDP, 1434/TCP and 1434/UDP, but haven't had any
> success.
> On the machines themself the connection is working well... i'm connecting
> to the instances with server name "CLU1INS1\Instance1",
> "CLU1INS2\Instance2" and "CLU1INS3\Instance3" and SQL Auth, but from
> remote it is not working.
> What could be wrong here and how are we able to solve this problem?
>
> Regards
> Marc
>
>|||Only default instance of SQL Server (referring to it by computer's name)
uses port 1433, named instance (computerName\instanceName) uses other
port/dynamic port. You must determine which port the named SQL Server
instance uses and allow the port on the firewall.
"Marc Bauer" <marc.bau@.gmx.net> wrote in message
news:u06scMCXIHA.4440@.TK2MSFTNGP06.phx.gbl...
> Hi
> we are using SQL 2005 SP2 cluster with 3 instances. We are trying to
> connect with SQL Server Management Studio thrue a Firewall that have only
> port 1433/TCP open. This has worked with SQL Auth and SQL 2000 perfectly.
> I also tried to add 1433/UDP, 1434/TCP and 1434/UDP, but haven't had any
> success.
> On the machines themself the connection is working well... i'm connecting
> to the instances with server name "CLU1INS1\Instance1",
> "CLU1INS2\Instance2" and "CLU1INS3\Instance3" and SQL Auth, but from
> remote it is not working.
> What could be wrong here and how are we able to solve this problem?
>
> Regards
> Marc
>
>|||hi
> Only default instance of SQL Server (referring to it by computer's name)
> uses port 1433, named instance (computerName\instanceName) uses other
> port/dynamic port. You must determine which port the named SQL Server
> instance uses and allow the port on the firewall.
Ups... never heard about this... where can i change this setting? Every
instance has it's own IP... so i don't know why this should be dynamic...
Marc|||It is port, not IP Address. At the same IP address, different applications
use different ports. SQL Server's default instance uses port 1433 by
default, named instance uses different port. but you could configure it to
use whatever port you see fits. Use SQL Server's server configuration tool
to examine/set TCP/IP port used by an SQL Server instance.
"Marc Bauer" <marc.bau@.gmx.net> wrote in message
news:%23DQg3yDXIHA.4684@.TK2MSFTNGP06.phx.gbl...
> hi
>> Only default instance of SQL Server (referring to it by computer's name)
>> uses port 1433, named instance (computerName\instanceName) uses other
>> port/dynamic port. You must determine which port the named SQL Server
>> instance uses and allow the port on the firewall.
> Ups... never heard about this... where can i change this setting? Every
> instance has it's own IP... so i don't know why this should be dynamic...
>
> Marc
>|||Hi
> It is port, not IP Address. At the same IP address, different applications
Yep, i know, but i tried to understand why instances have dynamic ports...
normaly every instance need it's own IP adrress. If this is the case i can
bind 1433 to every instance without any collisions, isn't it?
> use different ports. SQL Server's default instance uses port 1433 by
> default, named instance uses different port. but you could configure it to
> use whatever port you see fits. Use SQL Server's server configuration tool
> to examine/set TCP/IP port used by an SQL Server instance.
This settings tool is somewhat strange... "0" enables dynamic ports and
"blank" disabled this... however there is a "AllIP" setting that have a
dynamic port value of 1512 (what ever this means). I switched this to blank
value and set the Port to 1433. Should this work as expected? I've only done
this on a testing system... not sure if i must configure every instance for
it's own or if there is a global setting.
Gruss
Alex

Saturday, February 25, 2012

Cannot connect via Linked Server

We have two servers, each with named instances of SQL Server 2000 SP3a installed. Server1\Instance1 has a linked server to Server2\Instance2. The linked server is using the SQLOLEODB provider. This linked server is setup with remote login and a correct
password. We get an error #17: SQL Server does not exist or access denied. We also get the same behaviour while trying an OPENROWSET query from the Server1\Instance1 Query Analyzer. All other SQL Server instances we have installed (on other machines)
can connect to Server2\Instance2 with a SQLOLEDB linked server, no problems.
As far as I can tell, this error is only happening when using the SQL Server. I can connect to the remote (Server2\Instance2) server using osql from Server1, and I can even connect to Server2\Instance2 by using a SQLOLEDB connection from a desktop app (f
or example, I can test the connection successfully in a UDL using SQLOLEDB to the remote server from Server1).
We are only using named pipes. I have verified that all client and all server network utilities are set exclusively to named pipes. This is true. I have also performed a network trace on the Server1 server. It does not even attempt to contact the Serv
er2 machine. I have also network traced a different SQL Server instance on another machine that can connect to Server2\Instance2 and it's network trace shows a very clear, immediate connection to the Server2.
What other steps can I take to troubleshoot this problem? I think that I have hit all the common trouble points in setting up a linked server.
Thanks,
Frank
Update: We noticed that there was an additional NIC card on the Server1 server that had an APIPA IP address. We have disabled this NIC and now the network trace is showing some communication between Server1 and Server2.
Basically, the trace shows Server1 attempts to connect using SMB to set the session up on Server2. Server2 responds with an NT error 22, STATUS_MORE_PROCESSING_REQUIRED, then a few frames later, it tries to open the IPC$ pipe on Server2. Server2 respond
s with an NT error 34, STATUS_ACCESS_DENIED. So why is SMB not allowing connections to the IPC$ pipe? I can log in to the Server1 machine under the same account as SQL Server is running as and issue a successful "net use \\Server2\IPC$" without a proble
m. The network trace requests from Server1 for the net use look similar to those generated by SQL Server linked server. Why does one get an access denied and the other does not?
Thanks,
Frank
|||Hi Frank,
I learned you are failed to create linked Server between Server1\Instance1
and Server2\Instance2. The error "SQL Server does not exist or access
denied." occurred.
1. Please check the Server Network Utility for named pipes and make sure it
is the default value.
\\.\pipe\MSSQL$ Instance2\sql\query
2. Please check to see if UDP port 1434 is enabled.
3. Please try to add the linked Server using sp_addlinkedserver in QA
(Query Analyzer). What's the result? If there is any error occurring,
please provide the detailed error message.
For more information regarding sp_addlinkedserver, please refer to the
article on SQL Server Books Online.
Topic: "sp_addlinkedserver"
4. Please check the application/system log on both Servers and see if there
is any error information when the "linked Server" error occurred.
5. Please try to create an alias for Server2\Instance2 and then create the
linked Server. Does the same problem still persist?
Also, such issues tend to be complex and take up extensive research time.
I'd like to set your expectations that it may take a while for us to help
you narrow down the problem and we may eventually redirect you to PSS to
continue working with a dedicated Support Professional. If this is
critical, I'd recommend contacting PSS and opening a Support incident
troubleshoot this further. If you need any help in this regard, please let
me know.
Regards,
Michael Shao
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
|||Hi Yuan, I have completed the following steps for troubleshooting from your post. My comments are indented below each of your suggestions:
1. Please check the Server Network Utility for named pipes and make sure it
is the default value.
\\.\pipe\MSSQL$ Instance2\sql\query
I have checked the Server & Client network utilities: named pipes is default and the only protocol. That was stated in my original post.
2. Please check to see if UDP port 1434 is enabled.
Yes, port 1434 UDP is listening on the Server2 machine.
3. Please try to add the linked Server using sp_addlinkedserver in QA
(Query Analyzer). What's the result? If there is any error occurring,
please provide the detailed error message.
For more information regarding sp_addlinkedserver, please refer to the
article on SQL Server Books Online.
Topic: "sp_addlinkedserver"
Adding the linked server is not the problem. I can do it either through Enterprise Manager or the stored procedure. It is when I try to connect to the linked server (for example, when EM queries for table names from the linked server) that I get
Error #17 SQL Server does not exist or access denied, as stated in my original post.
4. Please check the application/system log on both Servers and see if there
is any error information when the "linked Server" error occurred.
I have been monitoring the event log (all application, security and system) for any errors on either system and there is nothing.
5. Please try to create an alias for Server2\Instance2 and then create the
linked Server. Does the same problem still persist?
I have tried to create an alias with the same results. No connectivity; access denied.
I have hit most of these normal troubleshooting steps. I don't usually jump to a network trace before trying things like this. The SMB network trace for opening the named pipe shows an access denied error from the Server2. What other issues might cause
this?
Thanks,
Frank
|||Hi Frank,
This issue is very strange. Please try the following steps to see if they
are helpful.
1. Try to create a new linked server using SQL Server directly but not OLE
DB provider for SQL Server. In the meantime, please specify a SQL account
in the general tab to connect to Server2\instance2 server. After creating
this linked server, please try to perform the following sql statements. It
is best to grant the admin permission of server2\instance2 to this test SQL
account.
Select * from OPENQUERY(<Linked Server Name>, 'SQL statements')
Select * from <Linked server Name>X<Table Name>
Does the same error message "SQL Server does not exist or access denied"
still persist? Is there any other error message occurring? It is
appreciated you can provide the completely error message.
2. Please use MDAC checker on your Server1 and provide the result.
HOW TO: Check for MDAC Version
http://support.microsoft.com/default...b;EN-US;301202
I am looking forward to hearing from you soon.
Regards,
Michael Shao
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
|||Yuan, we have tried creating a SQL Server without using the OLEDB provider and this failed in the same manner as the prior failures. Both the openquery and the four part fully qualified name queries failed with Error #17, SQL Server does not exist or acc
ess denied.
The MDAC is 2.7SP1 on Server1, 2.8 on Server2...
Any help at this point would be greatly appreciated...
Thanks,
Frank
-- "Yuan Shao" wrote: --
Hi Frank,
This issue is very strange. Please try the following steps to see if they
are helpful.
1. Try to create a new linked server using SQL Server directly but not OLE
DB provider for SQL Server. In the meantime, please specify a SQL account
in the general tab to connect to Server2\instance2 server. After creating
this linked server, please try to perform the following sql statements. It
is best to grant the admin permission of server2\instance2 to this test SQL
account.
Select * from OPENQUERY(<Linked Server Name>, 'SQL statements')
Select * from <Linked server Name>?X<Table Name>
Does the same error message "SQL Server does not exist or access denied"
still persist? Is there any other error message occurring? It is
appreciated you can provide the completely error message.
2. Please use MDAC checker on your Server1 and provide the result.
HOW TO: Check for MDAC Version
http://support.microsoft.com/default...b;EN-US;301202
I am looking forward to hearing from you soon.
Regards,
Michael Shao
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
|||Hi Frank,
Thanks for your feedback. After reviewing our discussion in detail, I
noticed you test the connection successfully in a UDL using SQLOLEDB to the
remote server (server2/instance2) from Server1. However, you still got the
error "SQL Server does not exist or access denied." using linked server
I would like you to check if this is a permission problem. Please try to
create a linked server with sa login and check to see if the same error
persists. I have attached a linkedserver.zip file with my notification to
help describe the configuration of linked server using sa login.
I am looking forward to hearing from you soon.
Regards,
Michael Shao
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
|||Yuan, we have tried connecting to the linked server using the sa password and it still results in the original failure: Error 17, SQL Server does not exist or access denied. It seems like it is the named pipes connectivity shutting the door down rather t
han SQL Server, although I cannot verify this as neither SQL Server nor the operating system are logging this (despite having all failure logging turned on both the OS local security policy and in SQL Server). Any other ideas?
Thanks,
Frank
|||Have you tried a connection method other than named pipes. Try making TcpIP and secondary connection method and setting up an alias using IP.
Are both servers on the same segment?
Sometimes netbios names are not passed across segments.
Have you tried rebooting the server1 since disabling the NIC. Sometimes it needs to rebroadcast its existance on the NIC.
Thanks
Jeff
|||Hello Frank,
Looking at the nature of this issue, it would require intensive
troubleshooting which would be done quickly and effectively with direct
assistance from a Microsoft Support Professional through Microsoft Product
Support Services. You can contact Microsoft Product Support directly to
discuss additional support options you may have available, by contacting us
at 1-(800)936-5800 or by choosing one of the options listed at
http://support.microsoft.com/default...=sz;en-us;top.
If this is not an urgent issue and your would like us to create an incident
for you and have Microsoft Customer Service Representative contact you
directly, please send email to (remove "online." from this no Spam email
address): mailto:dscommhf@.online.microsoft.com with the following
information,
*Include "Followup: <Tomcat IssueID>" in the email Subject.
*Location of the post
*Subject Line
*First Name, Last Name
*MSDN Subscriber ID
*Company name (if any)
*Phone number
*e-mail address
Thanks for using MSDN Newsgroups.
Vikrant Dalwale
Microsoft SQL Server Support Professional
This posting is provided "AS IS" with no warranties, and confers no rights.
Get secure !! For info, please visit http://www.microsoft.com/security.
Please reply to Newsgroups only.
| Thread-Topic: Cannot connect via Linked Server
| thread-index: AcQh0Df+wj3plzMnQ3+eAqcmfTrgkg==
| X-WN-Post: microsoft.public.sqlserver.connect
| From: "=?Utf-8?B?RnJhbmsgSm9uZXM=?=" <frank@.bogusfiosincfake.com>
| References: <99E987D2-0636-4917-8627-8E1A87789198@.microsoft.com>
<4B4AE818-15A4-4C50-97DC-7370D8DC8D49@.microsoft.com>
<3tFzedKHEHA.612@.cpmsftngxa06.phx.gbl>
| Subject: RE: Cannot connect via Linked Server
| Date: Tue, 13 Apr 2004 20:26:04 -0700
| Lines: 4
| Message-ID: <50E78236-79B1-4D3F-9BFE-CB02692DB966@.microsoft.com>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.sqlserver.connect
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.sqlserver.connect:40978
| NNTP-Posting-Host: tk2msftcmty1.phx.gbl 10.40.1.180
| X-Tomcat-NG: microsoft.public.sqlserver.connect
|
| Yuan, we have tried connecting to the linked server using the sa password
and it still results in the original failure: Error 17, SQL Server does not
exist or access denied. It seems like it is the named pipes connectivity
shutting the door down rather than SQL Server, although I cannot verify
this as neither SQL Server nor the operating system are logging this
(despite having all failure logging turned on both the OS local security
policy and in SQL Server). Any other ideas?
Thanks,
Frank
|

Cannot connect via Linked Server

We have two servers, each with named instances of SQL Server 2000 SP3a insta
lled. Server1\Instance1 has a linked server to Server2\Instance2. The link
ed server is using the SQLOLEODB provider. This linked server is setup with
remote login and a correct
password. We get an error #17: SQL Server does not exist or access denied.
We also get the same behaviour while trying an OPENROWSET query from the Se
rver1\Instance1 Query Analyzer. All other SQL Server instances we have inst
alled (on other machines)
can connect to Server2\Instance2 with a SQLOLEDB linked server, no problems.
As far as I can tell, this error is only happening when using the SQL Server
. I can connect to the remote (Server2\Instance2) server using osql from Se
rver1, and I can even connect to Server2\Instance2 by using a SQLOLEDB conne
ction from a desktop app (f
or example, I can test the connection successfully in a UDL using SQLOLEDB t
o the remote server from Server1).
We are only using named pipes. I have verified that all client and all serv
er network utilities are set exclusively to named pipes. This is true. I h
ave also performed a network trace on the Server1 server. It does not even
attempt to contact the Serv
er2 machine. I have also network traced a different SQL Server instance on
another machine that can connect to Server2\Instance2 and it's network trace
shows a very clear, immediate connection to the Server2.
What other steps can I take to troubleshoot this problem? I think that I ha
ve hit all the common trouble points in setting up a linked server.
Thanks,
FrankUpdate: We noticed that there was an additional NIC card on the Server1 serv
er that had an APIPA IP address. We have disabled this NIC and now the netw
ork trace is showing some communication between Server1 and Server2.
Basically, the trace shows Server1 attempts to connect using SMB to set the
session up on Server2. Server2 responds with an NT error 22, STATUS_MORE_PR
OCESSING_REQUIRED, then a few frames later, it tries to open the IPC$ pipe o
n Server2. Server2 respond
s with an NT error 34, STATUS_ACCESS_DENIED. So why is SMB not allowing con
nections to the IPC$ pipe? I can log in to the Server1 machine under the sa
me account as SQL Server is running as and issue a successful "net use \\Ser
ver2\IPC$" without a proble
m. The network trace requests from Server1 for the net use look similar to
those generated by SQL Server linked server. Why does one get an access den
ied and the other does not?
Thanks,
Frank|||Hi Frank,
I learned you are failed to create linked Server between Server1\Instance1
and Server2\Instance2. The error "SQL Server does not exist or access
denied." occurred.
1. Please check the Server Network Utility for named pipes and make sure it
is the default value.
\\.\pipe\MSSQL$ Instance2\sql\query
2. Please check to see if UDP port 1434 is enabled.
3. Please try to add the linked Server using sp_addlinkedserver in QA
(Query Analyzer). What's the result? If there is any error occurring,
please provide the detailed error message.
For more information regarding sp_addlinkedserver, please refer to the
article on SQL Server Books Online.
Topic: "sp_addlinkedserver"
4. Please check the application/system log on both Servers and see if there
is any error information when the "linked Server" error occurred.
5. Please try to create an alias for Server2\Instance2 and then create the
linked Server. Does the same problem still persist?
Also, such issues tend to be complex and take up extensive research time.
I'd like to set your expectations that it may take a while for us to help
you narrow down the problem and we may eventually redirect you to PSS to
continue working with a dedicated Support Professional. If this is
critical, I'd recommend contacting PSS and opening a Support incident
troubleshoot this further. If you need any help in this regard, please let
me know.
Regards,
Michael Shao
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.|||Hi Yuan, I have completed the following steps for troubleshooting from your
post. My comments are indented below each of your suggestions:
1. Please check the Server Network Utility for named pipes and make sure it
is the default value.
\\.\pipe\MSSQL$ Instance2\sql\query
I have checked the Server & Client network utilities: named pipes is default
and the only protocol. That was stated in my original post.
2. Please check to see if UDP port 1434 is enabled.
Yes, port 1434 UDP is listening on the Server2 machine.
3. Please try to add the linked Server using sp_addlinkedserver in QA
(Query Analyzer). What's the result? If there is any error occurring,
please provide the detailed error message.
For more information regarding sp_addlinkedserver, please refer to the
article on SQL Server Books Online.
Topic: "sp_addlinkedserver"
Adding the linked server is not the problem. I can do it either through Ent
erprise Manager or the stored procedure. It is when I try to connect to the
linked server (for example, when EM queries for table names from the linked
server) that I get
Error #17 SQL Server does not exist or access denied, as stated in my origin
al post.
4. Please check the application/system log on both Servers and see if there
is any error information when the "linked Server" error occurred.
I have been monitoring the event log (all application, security and system)
for any errors on either system and there is nothing.
5. Please try to create an alias for Server2\Instance2 and then create the
linked Server. Does the same problem still persist?
I have tried to create an alias with the same results. No connectivity; acc
ess denied.
I have hit most of these normal troubleshooting steps. I don't usually jump
to a network trace before trying things like this. The SMB network trace f
or opening the named pipe shows an access denied error from the Server2. Wh
at other issues might cause
this?
Thanks,
Frank|||Hi Frank,
This issue is very strange. Please try the following steps to see if they
are helpful.
1. Try to create a new linked server using SQL Server directly but not OLE
DB provider for SQL Server. In the meantime, please specify a SQL account
in the general tab to connect to Server2\instance2 server. After creating
this linked server, please try to perform the following sql statements. It
is best to grant the admin permission of server2\instance2 to this test SQL
account.
Select * from OPENQUERY(<Linked Server Name>, 'SQL statements')
Select * from <Linked server Name>_<Table Name>
Does the same error message "SQL Server does not exist or access denied"
still persist? Is there any other error message occurring? It is
appreciated you can provide the completely error message.
2. Please use MDAC checker on your Server1 and provide the result.
HOW TO: Check for MDAC Version
http://support.microsoft.com/defaul...kb;EN-US;301202
I am looking forward to hearing from you soon.
Regards,
Michael Shao
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.|||Yuan, we have tried creating a SQL Server without using the OLEDB provider a
nd this failed in the same manner as the prior failures. Both the openquery
and the four part fully qualified name queries failed with Error #17, SQL S
erver does not exist or acc
ess denied.
The MDAC is 2.7SP1 on Server1, 2.8 on Server2...
Any help at this point would be greatly appreciated...
Thanks,
Frank
-- "Yuan Shao" wrote: --
Hi Frank,
This issue is very strange. Please try the following steps to see if they
are helpful.
1. Try to create a new linked server using SQL Server directly but not OLE
DB provider for SQL Server. In the meantime, please specify a SQL account
in the general tab to connect to Server2\instance2 server. After creating
this linked server, please try to perform the following sql statements. It
is best to grant the admin permission of server2\instance2 to this test SQL
account.
Select * from OPENQUERY(<Linked Server Name>, 'SQL statements')
Select * from <Linked server Name>?_<Table Name>
Does the same error message "SQL Server does not exist or access denied"
still persist? Is there any other error message occurring? It is
appreciated you can provide the completely error message.
2. Please use MDAC checker on your Server1 and provide the result.
HOW TO: Check for MDAC Version
http://support.microsoft.com/defaul...kb;EN-US;301202
I am looking forward to hearing from you soon.
Regards,
Michael Shao
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.|||Hi Frank,
Thanks for your feedback. After reviewing our discussion in detail, I
noticed you test the connection successfully in a UDL using SQLOLEDB to the
remote server (server2/instance2) from Server1. However, you still got the
error "SQL Server does not exist or access denied." using linked server
I would like you to check if this is a permission problem. Please try to
create a linked server with sa login and check to see if the same error
persists. I have attached a linkedserver.zip file with my notification to
help describe the configuration of linked server using sa login.
I am looking forward to hearing from you soon.
Regards,
Michael Shao
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.|||Yuan, we have tried connecting to the linked server using the sa password an
d it still results in the original failure: Error 17, SQL Server does not ex
ist or access denied. It seems like it is the named pipes connectivity shut
ting the door down rather t
han SQL Server, although I cannot verify this as neither SQL Server nor the
operating system are logging this (despite having all failure logging turned
on both the OS local security policy and in SQL Server). Any other ideas?
Thanks,
Frank|||Have you tried a connection method other than named pipes. Try making TcpIP
and secondary connection method and setting up an alias using IP.
Are both servers on the same segment?
Sometimes netbios names are not passed across segments.
Have you tried rebooting the server1 since disabling the NIC. Sometimes it
needs to rebroadcast its existance on the NIC.
Thanks
Jeff|||Hello Frank,
Looking at the nature of this issue, it would require intensive
troubleshooting which would be done quickly and effectively with direct
assistance from a Microsoft Support Professional through Microsoft Product
Support Services. You can contact Microsoft Product Support directly to
discuss additional support options you may have available, by contacting us
at 1-(800)936-5800 or by choosing one of the options listed at
http://support.microsoft.com/defaul...d=sz;en-us;top.
If this is not an urgent issue and your would like us to create an incident
for you and have Microsoft Customer Service Representative contact you
directly, please send email to (remove "online." from this no Spam email
address): mailto:dscommhf@.online.microsoft.com with the following
information,
*Include "Followup: <Tomcat IssueID>" in the email Subject.
*Location of the post
*Subject Line
*First Name, Last Name
*MSDN Subscriber ID
*Company name (if any)
*Phone number
*e-mail address
Thanks for using MSDN Newsgroups.
Vikrant Dalwale
Microsoft SQL Server Support Professional
This posting is provided "AS IS" with no warranties, and confers no rights.
Get secure !! For info, please visit http://www.microsoft.com/security.
Please reply to Newsgroups only.
| Thread-Topic: Cannot connect via Linked Server
| thread-index: AcQh0Df+wj3plzMnQ3+eAqcmfTrgkg==
| X-WN-Post: microsoft.public.sqlserver.connect
| From: "examnotes" <frank@.bogusfiosincfake.com>
| References: <99E987D2-0636-4917-8627-8E1A87789198@.microsoft.com>
<4B4AE818-15A4-4C50-97DC-7370D8DC8D49@.microsoft.com>
<3tFzedKHEHA.612@.cpmsftngxa06.phx.gbl>
| Subject: RE: Cannot connect via Linked Server
| Date: Tue, 13 Apr 2004 20:26:04 -0700
| Lines: 4
| Message-ID: <50E78236-79B1-4D3F-9BFE-CB02692DB966@.microsoft.com>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.sqlserver.connect
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.sqlserver.connect:40978
| NNTP-Posting-Host: tk2msftcmty1.phx.gbl 10.40.1.180
| X-Tomcat-NG: microsoft.public.sqlserver.connect
|
| Yuan, we have tried connecting to the linked server using the sa password
and it still results in the original failure: Error 17, SQL Server does not
exist or access denied. It seems like it is the named pipes connectivity
shutting the door down rather than SQL Server, although I cannot verify
this as neither SQL Server nor the operating system are logging this
(despite having all failure logging turned on both the OS local security
policy and in SQL Server). Any other ideas?
Thanks,
Frank
|

Sunday, February 12, 2012

Cannot Connect to Instance

Ok, I can connect to the sql server instances using
tcp:ServerName,PortNumber. However; I still cannot connect using
ServerName\InstanceName. This would not be a big deal, if I could get
Enterprise Manager on a remote machine to register the instance using the
tcp:ServerName,PortNumber format. I would still like to be able to register
the server in Enterprise Manager on a remote computer.sounds like a DNS issue...can you register using IPaddress\instance name?
Kevin Hill
President
3NF Consulting
www.3nf-inc.com/NewsGroups.htm
www.DallasDBAs.com/forum - new DB forum for Dallas/Ft. Worth area DBAs.
"Travis Lingenfelder" <TravisLingenfelder@.discussions.microsoft.com> wrote
in message news:DE60DF84-A796-4219-A2CE-86B7F99D4B0A@.microsoft.com...
> Ok, I can connect to the sql server instances using
> tcp:ServerName,PortNumber. However; I still cannot connect using
> ServerName\InstanceName. This would not be a big deal, if I could get
> Enterprise Manager on a remote machine to register the instance using the
> tcp:ServerName,PortNumber format. I would still like to be able to
> register
> the server in Enterprise Manager on a remote computer.
>|||Or...could be trying to use named pipes (or some other protocol) when you
are not specifying tcp...what protocols is theSQL server listening on?
Kevin Hill
President
3NF Consulting
www.3nf-inc.com/NewsGroups.htm
www.DallasDBAs.com/forum - new DB forum for Dallas/Ft. Worth area DBAs.
"Travis Lingenfelder" <TravisLingenfelder@.discussions.microsoft.com> wrote
in message news:DE60DF84-A796-4219-A2CE-86B7F99D4B0A@.microsoft.com...
> Ok, I can connect to the sql server instances using
> tcp:ServerName,PortNumber. However; I still cannot connect using
> ServerName\InstanceName. This would not be a big deal, if I could get
> Enterprise Manager on a remote machine to register the instance using the
> tcp:ServerName,PortNumber format. I would still like to be able to
> register
> the server in Enterprise Manager on a remote computer.
>|||I'm having the exact same problem. I can connect using this in my connectio
n
string:
Source=tcp:ServerName,1130
I know to use port 1130 because that's what the ERRORLOG file for that named
instance says it's currently listening on, but I don't think it's a good ide
a
to specify the port when it can change the next time the server is rebooted.
I know it's not a DNS issue, I can ping myDBserver.acme.com, or even just
myDBserver and get replies. Not only that, the the above source parameter
obviously resolves properly to the right IP address.
The server is listening on TCP/IP and Named Pipe.
Trying to connect using the following do not work:
Source=ServerName\InstanceName,1130
Source=ServerName\InstanceName
Source=192.168.10.4\InstanceName
Source=192.168.10.4\InstanceName,1130
I'm trying to connect to SQL Server 2000 SP4 from a web server (classic ASP
on IIS 5.0). The strange thing is that I can run Query Analyzer from the we
b
server and connect using ServerName\InstanceName. The web site can't.
According to MDAC component checker, the web server is running MDAC 2.7 SP1.
I'll run the SQL Server SP4 on the web server to update the SQL Tools.
Unless I'm mistaken, that should also update MDAC to 2.8. We'll see if that
fixes it.
Anyone can add to this? Any ideas as to what else I can do to troubleshoot
this?
Thanks,
Francois
"Kevin3NF" wrote:

> Or...could be trying to use named pipes (or some other protocol) when you
> are not specifying tcp...what protocols is theSQL server listening on?
> --
> Kevin Hill
> President
> 3NF Consulting
> www.3nf-inc.com/NewsGroups.htm
> www.DallasDBAs.com/forum - new DB forum for Dallas/Ft. Worth area DBAs.
> "Travis Lingenfelder" <TravisLingenfelder@.discussions.microsoft.com> wrote
> in message news:DE60DF84-A796-4219-A2CE-86B7F99D4B0A@.microsoft.com...
>
>|||Well, updating MDAC to the latest, by applying SQL Server SP4, didn't change
anything.
What else can I do to troubleshoot this?
Any help would be greatly appreciated...
Francois
"Francois" wrote:
[vbcol=seagreen]
> I'm having the exact same problem. I can connect using this in my connect
ion
> string:
> Source=tcp:ServerName,1130
> I know to use port 1130 because that's what the ERRORLOG file for that nam
ed
> instance says it's currently listening on, but I don't think it's a good i
dea
> to specify the port when it can change the next time the server is reboote
d.
> I know it's not a DNS issue, I can ping myDBserver.acme.com, or even just
> myDBserver and get replies. Not only that, the the above source parameter
> obviously resolves properly to the right IP address.
> The server is listening on TCP/IP and Named Pipe.
> Trying to connect using the following do not work:
> Source=ServerName\InstanceName,1130
> Source=ServerName\InstanceName
> Source=192.168.10.4\InstanceName
> Source=192.168.10.4\InstanceName,1130
> I'm trying to connect to SQL Server 2000 SP4 from a web server (classic AS
P
> on IIS 5.0). The strange thing is that I can run Query Analyzer from the
web
> server and connect using ServerName\InstanceName. The web site can't.
> According to MDAC component checker, the web server is running MDAC 2.7 SP
1.
> I'll run the SQL Server SP4 on the web server to update the SQL Tools.
> Unless I'm mistaken, that should also update MDAC to 2.8. We'll see if th
at
> fixes it.
> Anyone can add to this? Any ideas as to what else I can do to troubleshoo
t
> this?
> Thanks,
> Francois
>
> "Kevin3NF" wrote:
>

Cannot Connect to Instance

Ok, I can connect to the sql server instances using
tcp:ServerName,PortNumber. However; I still cannot connect using
ServerName\InstanceName. This would not be a big deal, if I could get
Enterprise Manager on a remote machine to register the instance using the
tcp:ServerName,PortNumber format. I would still like to be able to register
the server in Enterprise Manager on a remote computer.
sounds like a DNS issue...can you register using IPaddress\instance name?
Kevin Hill
President
3NF Consulting
www.3nf-inc.com/NewsGroups.htm
www.DallasDBAs.com/forum - new DB forum for Dallas/Ft. Worth area DBAs.
"Travis Lingenfelder" <TravisLingenfelder@.discussions.microsoft.com> wrote
in message news:DE60DF84-A796-4219-A2CE-86B7F99D4B0A@.microsoft.com...
> Ok, I can connect to the sql server instances using
> tcp:ServerName,PortNumber. However; I still cannot connect using
> ServerName\InstanceName. This would not be a big deal, if I could get
> Enterprise Manager on a remote machine to register the instance using the
> tcp:ServerName,PortNumber format. I would still like to be able to
> register
> the server in Enterprise Manager on a remote computer.
>
|||Or...could be trying to use named pipes (or some other protocol) when you
are not specifying tcp...what protocols is theSQL server listening on?
Kevin Hill
President
3NF Consulting
www.3nf-inc.com/NewsGroups.htm
www.DallasDBAs.com/forum - new DB forum for Dallas/Ft. Worth area DBAs.
"Travis Lingenfelder" <TravisLingenfelder@.discussions.microsoft.com> wrote
in message news:DE60DF84-A796-4219-A2CE-86B7F99D4B0A@.microsoft.com...
> Ok, I can connect to the sql server instances using
> tcp:ServerName,PortNumber. However; I still cannot connect using
> ServerName\InstanceName. This would not be a big deal, if I could get
> Enterprise Manager on a remote machine to register the instance using the
> tcp:ServerName,PortNumber format. I would still like to be able to
> register
> the server in Enterprise Manager on a remote computer.
>
|||I'm having the exact same problem. I can connect using this in my connection
string:
Source=tcp:ServerName,1130
I know to use port 1130 because that's what the ERRORLOG file for that named
instance says it's currently listening on, but I don't think it's a good idea
to specify the port when it can change the next time the server is rebooted.
I know it's not a DNS issue, I can ping myDBserver.acme.com, or even just
myDBserver and get replies. Not only that, the the above source parameter
obviously resolves properly to the right IP address.
The server is listening on TCP/IP and Named Pipe.
Trying to connect using the following do not work:
Source=ServerName\InstanceName,1130
Source=ServerName\InstanceName
Source=192.168.10.4\InstanceName
Source=192.168.10.4\InstanceName,1130
I'm trying to connect to SQL Server 2000 SP4 from a web server (classic ASP
on IIS 5.0). The strange thing is that I can run Query Analyzer from the web
server and connect using ServerName\InstanceName. The web site can't.
According to MDAC component checker, the web server is running MDAC 2.7 SP1.
I'll run the SQL Server SP4 on the web server to update the SQL Tools.
Unless I'm mistaken, that should also update MDAC to 2.8. We'll see if that
fixes it.
Anyone can add to this? Any ideas as to what else I can do to troubleshoot
this?
Thanks,
Francois
"Kevin3NF" wrote:

> Or...could be trying to use named pipes (or some other protocol) when you
> are not specifying tcp...what protocols is theSQL server listening on?
> --
> Kevin Hill
> President
> 3NF Consulting
> www.3nf-inc.com/NewsGroups.htm
> www.DallasDBAs.com/forum - new DB forum for Dallas/Ft. Worth area DBAs.
> "Travis Lingenfelder" <TravisLingenfelder@.discussions.microsoft.com> wrote
> in message news:DE60DF84-A796-4219-A2CE-86B7F99D4B0A@.microsoft.com...
>
>
|||Well, updating MDAC to the latest, by applying SQL Server SP4, didn't change
anything.
What else can I do to troubleshoot this?
Any help would be greatly appreciated...
Francois
"Francois" wrote:
[vbcol=seagreen]
> I'm having the exact same problem. I can connect using this in my connection
> string:
> Source=tcp:ServerName,1130
> I know to use port 1130 because that's what the ERRORLOG file for that named
> instance says it's currently listening on, but I don't think it's a good idea
> to specify the port when it can change the next time the server is rebooted.
> I know it's not a DNS issue, I can ping myDBserver.acme.com, or even just
> myDBserver and get replies. Not only that, the the above source parameter
> obviously resolves properly to the right IP address.
> The server is listening on TCP/IP and Named Pipe.
> Trying to connect using the following do not work:
> Source=ServerName\InstanceName,1130
> Source=ServerName\InstanceName
> Source=192.168.10.4\InstanceName
> Source=192.168.10.4\InstanceName,1130
> I'm trying to connect to SQL Server 2000 SP4 from a web server (classic ASP
> on IIS 5.0). The strange thing is that I can run Query Analyzer from the web
> server and connect using ServerName\InstanceName. The web site can't.
> According to MDAC component checker, the web server is running MDAC 2.7 SP1.
> I'll run the SQL Server SP4 on the web server to update the SQL Tools.
> Unless I'm mistaken, that should also update MDAC to 2.8. We'll see if that
> fixes it.
> Anyone can add to this? Any ideas as to what else I can do to troubleshoot
> this?
> Thanks,
> Francois
>
> "Kevin3NF" wrote: