| Home | Forums | Reviews | Articles | Register |
![]() |
| Thread Tools | Rate Thread |
|
|
|
| |
|
george wen
Guest
Posts: n/a
|
I would suggest you to setup TCP/IP and try to connect using tcp/ip instead.
it is also easier to troubleshoot, you should probably test the connectivity between these two machine first... "Joe" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)... > Hello, > > I'm having a strange problem here. I'm trying to connect to a remote SQL > Server database but I keep getting this error: > An error has occurred while establishing a connection to the server. When > connecting to SQL Server 2005, this failure may be caused by the fact that > under the default settings SQL Server does not allow remote connections. > (provider: Named Pipes Provider, error: 40 - Could not open a connection > to SQL Server) > > I can connect using other machine just not the one I want to. The machine > I'm trying to connect with is a Windows 2003 Server running SQL Server > 2005. > > I sort of think it may be getting confused and thinks I'm trying to > connect locally. > > I even tried to connect using the SQL Server Management Studio but I get > the same error. > > I set Named Pipes to enabled in the SQL Server Config. > > Any ideas? > > Thanks, > Joe > |
|
||
|
||||
|
Joe
Guest
Posts: n/a
|
TCP/IP is setup already. I can also ping the server I'm trying to connect
to. "george wen" <(E-Mail Removed)> wrote in message news:E532D581-A43D-4AA0-B26B-(E-Mail Removed)... >I would suggest you to setup TCP/IP and try to connect using tcp/ip >instead. > > it is also easier to troubleshoot, you should probably test the > connectivity between these two machine first... > > > "Joe" <(E-Mail Removed)> wrote in message > news:(E-Mail Removed)... >> Hello, >> >> I'm having a strange problem here. I'm trying to connect to a remote SQL >> Server database but I keep getting this error: >> An error has occurred while establishing a connection to the server. >> When connecting to SQL Server 2005, this failure may be caused by the >> fact that under the default settings SQL Server does not allow remote >> connections. >> (provider: Named Pipes Provider, error: 40 - Could not open a connection >> to SQL Server) >> >> I can connect using other machine just not the one I want to. The machine >> I'm trying to connect with is a Windows 2003 Server running SQL Server >> 2005. >> >> I sort of think it may be getting confused and thinks I'm trying to >> connect locally. >> >> I even tried to connect using the SQL Server Management Studio but I get >> the same error. >> >> I set Named Pipes to enabled in the SQL Server Config. >> >> Any ideas? >> >> Thanks, >> Joe >> > |
|
||
|
||||
|
Steven Cheng
Guest
Posts: n/a
|
Hi Joe,
From your description, you're encountering some connectivity issue when try connecting a SQL Server 2005 instance from a certain client box ,correct? Generally for SQL Server connecting issue, there are many possible causes such as the server's firewall, SQL Server's remote connection setting, protocols settings .. As you mentioned that some other boxs can connect the instance correctly, but this paricular client not work. I think it is likely that there might be something wrong with the client machine's SQL protocol configuration or the network connection of that box has some problem. here is a standard troubleshooting guide for SQL Server 2005 connectivity issue: #SQL Server 2005 Remote Connectivity Issue TroubleShoot http://blogs.msdn.com/sql_protocols/...ver-2005-Remot e-Connectivity-Issue-TroubleShooting.aspx I think you can quickly go throught the server-side checklist and focus on the client-side ones: Sincerely, Steven Cheng Microsoft MSDN Online Support Lead Delighting our customers is our #1 priority. We welcome your comments and suggestions about how we can improve the support we provide to you. Please feel free to let my manager know what you think of the level of service provided. You can send feedback directly to my manager at: (E-Mail Removed). ================================================== Get notification to my posts through email? Please refer to http://msdn.microsoft.com/en-us/subs...#notifications. Note: MSDN Managed Newsgroup support offering is for non-urgent issues where an initial response from the community or a Microsoft Support Engineer within 2 business day is acceptable. Please note that each follow up response may take approximately 2 business days as the support professional working with you may need further investigation to reach the most efficient resolution. The offering is not appropriate for situations that require urgent, real-time or phone-based interactions. Issues of this nature are best handled working with a dedicated Microsoft Support Engineer by contacting Microsoft Customer Support Services (CSS) at http://msdn.microsoft.com/en-us/subs.../aa948874.aspx ================================================== This posting is provided "AS IS" with no warranties, and confers no rights. -------------------- >From: "Joe" <(E-Mail Removed)> >Subject: Cannot connect a remote sql server >Date: Sat, 22 Nov 2008 20:18:12 -0500 > >Hello, > >I'm having a strange problem here. I'm trying to connect to a remote SQL >Server database but I keep getting this error: >An error has occurred while establishing a connection to the server. When >connecting to SQL Server 2005, this failure may be caused by the fact that >under the default settings SQL Server does not allow remote connections. >(provider: Named Pipes Provider, error: 40 - Could not open a connection to >SQL Server) > >I can connect using other machine just not the one I want to. The machine >I'm trying to connect with is a Windows 2003 Server running SQL Server 2005. > >I sort of think it may be getting confused and thinks I'm trying to connect >locally. > >I even tried to connect using the SQL Server Management Studio but I get the >same error. > >I set Named Pipes to enabled in the SQL Server Config. > >Any ideas? > >Thanks, >Joe > > > |
|
||
|
||||
|
Joe
Guest
Posts: n/a
|
I checked all the possible causes but still no luck.
""Steven Cheng"" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)... > Hi Joe, > > From your description, you're encountering some connectivity issue when > try > connecting a SQL Server 2005 instance from a certain client box ,correct? > > Generally for SQL Server connecting issue, there are many possible causes > such as the server's firewall, SQL Server's remote connection setting, > protocols settings .. As you mentioned that some other boxs can connect > the > instance correctly, but this paricular client not work. I think it is > likely that there might be something wrong with the client machine's SQL > protocol configuration or the network connection of that box has some > problem. > > here is a standard troubleshooting guide for SQL Server 2005 connectivity > issue: > > #SQL Server 2005 Remote Connectivity Issue TroubleShoot > http://blogs.msdn.com/sql_protocols/...ver-2005-Remot > e-Connectivity-Issue-TroubleShooting.aspx > > I think you can quickly go throught the server-side checklist and focus on > the client-side ones: > > Sincerely, > > Steven Cheng > > Microsoft MSDN Online Support Lead > > > Delighting our customers is our #1 priority. We welcome your comments and > suggestions about how we can improve the support we provide to you. Please > feel free to let my manager know what you think of the level of service > provided. You can send feedback directly to my manager at: > (E-Mail Removed). > > ================================================== > Get notification to my posts through email? Please refer to > http://msdn.microsoft.com/en-us/subs...#notifications. > > Note: MSDN Managed Newsgroup support offering is for non-urgent issues > where an initial response from the community or a Microsoft Support > Engineer within 2 business day is acceptable. Please note that each follow > up response may take approximately 2 business days as the support > professional working with you may need further investigation to reach the > most efficient resolution. The offering is not appropriate for situations > that require urgent, real-time or phone-based interactions. Issues of this > nature are best handled working with a dedicated Microsoft Support > Engineer > by contacting Microsoft Customer Support Services (CSS) at > http://msdn.microsoft.com/en-us/subs.../aa948874.aspx > ================================================== > This posting is provided "AS IS" with no warranties, and confers no > rights. > > -------------------- >>From: "Joe" <(E-Mail Removed)> >>Subject: Cannot connect a remote sql server >>Date: Sat, 22 Nov 2008 20:18:12 -0500 > >> >>Hello, >> >>I'm having a strange problem here. I'm trying to connect to a remote SQL >>Server database but I keep getting this error: >>An error has occurred while establishing a connection to the server. When >>connecting to SQL Server 2005, this failure may be caused by the fact that >>under the default settings SQL Server does not allow remote connections. >>(provider: Named Pipes Provider, error: 40 - Could not open a connection > to >>SQL Server) >> >>I can connect using other machine just not the one I want to. The machine >>I'm trying to connect with is a Windows 2003 Server running SQL Server > 2005. >> >>I sort of think it may be getting confused and thinks I'm trying to > connect >>locally. >> >>I even tried to connect using the SQL Server Management Studio but I get > the >>same error. >> >>I set Named Pipes to enabled in the SQL Server Config. >> >>Any ideas? >> >>Thanks, >>Joe >> >> >> > |
|
||
|
||||
|
George Wen
Guest
Posts: n/a
|
I would suggest:
1, check your tcp/ip port and listening IP then run 'netstat -an' on the server and write down the result, make sure they match. 2, on the working workstation, run 'telnet sqlserver port' and see if you can connect; 3, run the same command as step 2 on the computer that has the issue and check the result; 4, try 'ping sqlserver' on both computer see if you can resolve computer name, 5, if there is a problem with dns resolving, replace 'sqlserver' computername with IP address and try again. 6, if the above steps don't lead to a solution, try using SQL login from the problematic computer.... Joe wrote: > I checked all the possible causes but still no luck. > > ""Steven Cheng"" <(E-Mail Removed)> wrote in message > news:(E-Mail Removed)... >> Hi Joe, >> >> From your description, you're encountering some connectivity issue when >> try >> connecting a SQL Server 2005 instance from a certain client box ,correct? >> >> Generally for SQL Server connecting issue, there are many possible causes >> such as the server's firewall, SQL Server's remote connection setting, >> protocols settings .. As you mentioned that some other boxs can connect >> the >> instance correctly, but this paricular client not work. I think it is >> likely that there might be something wrong with the client machine's SQL >> protocol configuration or the network connection of that box has some >> problem. >> >> here is a standard troubleshooting guide for SQL Server 2005 connectivity >> issue: >> >> #SQL Server 2005 Remote Connectivity Issue TroubleShoot >> http://blogs.msdn.com/sql_protocols/...ver-2005-Remot >> e-Connectivity-Issue-TroubleShooting.aspx >> >> I think you can quickly go throught the server-side checklist and focus on >> the client-side ones: >> >> Sincerely, >> >> Steven Cheng >> >> Microsoft MSDN Online Support Lead >> >> >> Delighting our customers is our #1 priority. We welcome your comments and >> suggestions about how we can improve the support we provide to you. Please >> feel free to let my manager know what you think of the level of service >> provided. You can send feedback directly to my manager at: >> (E-Mail Removed). >> >> ================================================== >> Get notification to my posts through email? Please refer to >> http://msdn.microsoft.com/en-us/subs...#notifications. >> >> Note: MSDN Managed Newsgroup support offering is for non-urgent issues >> where an initial response from the community or a Microsoft Support >> Engineer within 2 business day is acceptable. Please note that each follow >> up response may take approximately 2 business days as the support >> professional working with you may need further investigation to reach the >> most efficient resolution. The offering is not appropriate for situations >> that require urgent, real-time or phone-based interactions. Issues of this >> nature are best handled working with a dedicated Microsoft Support >> Engineer >> by contacting Microsoft Customer Support Services (CSS) at >> http://msdn.microsoft.com/en-us/subs.../aa948874.aspx >> ================================================== >> This posting is provided "AS IS" with no warranties, and confers no >> rights. >> >> -------------------- >>> From: "Joe" <(E-Mail Removed)> >>> Subject: Cannot connect a remote sql server >>> Date: Sat, 22 Nov 2008 20:18:12 -0500 >>> Hello, >>> >>> I'm having a strange problem here. I'm trying to connect to a remote SQL >>> Server database but I keep getting this error: >>> An error has occurred while establishing a connection to the server. When >>> connecting to SQL Server 2005, this failure may be caused by the fact that >>> under the default settings SQL Server does not allow remote connections. >>> (provider: Named Pipes Provider, error: 40 - Could not open a connection >> to >>> SQL Server) >>> >>> I can connect using other machine just not the one I want to. The machine >>> I'm trying to connect with is a Windows 2003 Server running SQL Server >> 2005. >>> I sort of think it may be getting confused and thinks I'm trying to >> connect >>> locally. >>> >>> I even tried to connect using the SQL Server Management Studio but I get >> the >>> same error. >>> >>> I set Named Pipes to enabled in the SQL Server Config. >>> >>> Any ideas? >>> >>> Thanks, >>> Joe >>> >>> >>> > > |
|
||
|
||||
|
Joe
Guest
Posts: n/a
|
I can telnet to the server from the machines that do work but cannot from
the machine that will not connect. I can ping the server though using the name on all machines. I also tried telnet by IP but that doesn't work either. I don't know if this matter but the server I'm trying to connect to is SQL Server 2000. "George Wen" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)... >I would suggest: > > 1, check your tcp/ip port and listening IP then run 'netstat -an' on the > server and write down the result, make sure they match. > > 2, on the working workstation, run 'telnet sqlserver port' and see if you > can connect; > > 3, run the same command as step 2 on the computer that has the issue and > check the result; > > 4, try 'ping sqlserver' on both computer see if you can resolve computer > name, > > 5, if there is a problem with dns resolving, replace 'sqlserver' > computername with IP address and try again. > > 6, if the above steps don't lead to a solution, try using SQL login from > the problematic computer.... > > > > Joe wrote: >> I checked all the possible causes but still no luck. >> >> ""Steven Cheng"" <(E-Mail Removed)> wrote in message >> news:(E-Mail Removed)... >>> Hi Joe, >>> >>> From your description, you're encountering some connectivity issue when >>> try >>> connecting a SQL Server 2005 instance from a certain client box >>> ,correct? >>> >>> Generally for SQL Server connecting issue, there are many possible >>> causes >>> such as the server's firewall, SQL Server's remote connection setting, >>> protocols settings .. As you mentioned that some other boxs can connect >>> the >>> instance correctly, but this paricular client not work. I think it is >>> likely that there might be something wrong with the client machine's SQL >>> protocol configuration or the network connection of that box has some >>> problem. >>> >>> here is a standard troubleshooting guide for SQL Server 2005 >>> connectivity >>> issue: >>> >>> #SQL Server 2005 Remote Connectivity Issue TroubleShoot >>> http://blogs.msdn.com/sql_protocols/...ver-2005-Remot >>> e-Connectivity-Issue-TroubleShooting.aspx >>> >>> I think you can quickly go throught the server-side checklist and focus >>> on >>> the client-side ones: >>> >>> Sincerely, >>> >>> Steven Cheng >>> >>> Microsoft MSDN Online Support Lead >>> >>> >>> Delighting our customers is our #1 priority. We welcome your comments >>> and >>> suggestions about how we can improve the support we provide to you. >>> Please >>> feel free to let my manager know what you think of the level of service >>> provided. You can send feedback directly to my manager at: >>> (E-Mail Removed). >>> >>> ================================================== >>> Get notification to my posts through email? Please refer to >>> http://msdn.microsoft.com/en-us/subs...#notifications. >>> >>> Note: MSDN Managed Newsgroup support offering is for non-urgent issues >>> where an initial response from the community or a Microsoft Support >>> Engineer within 2 business day is acceptable. Please note that each >>> follow >>> up response may take approximately 2 business days as the support >>> professional working with you may need further investigation to reach >>> the >>> most efficient resolution. The offering is not appropriate for >>> situations >>> that require urgent, real-time or phone-based interactions. Issues of >>> this >>> nature are best handled working with a dedicated Microsoft Support >>> Engineer >>> by contacting Microsoft Customer Support Services (CSS) at >>> http://msdn.microsoft.com/en-us/subs.../aa948874.aspx >>> ================================================== >>> This posting is provided "AS IS" with no warranties, and confers no >>> rights. >>> >>> -------------------- >>>> From: "Joe" <(E-Mail Removed)> >>>> Subject: Cannot connect a remote sql server >>>> Date: Sat, 22 Nov 2008 20:18:12 -0500 >>>> Hello, >>>> >>>> I'm having a strange problem here. I'm trying to connect to a remote >>>> SQL >>>> Server database but I keep getting this error: >>>> An error has occurred while establishing a connection to the server. >>>> When >>>> connecting to SQL Server 2005, this failure may be caused by the fact >>>> that >>>> under the default settings SQL Server does not allow remote >>>> connections. >>>> (provider: Named Pipes Provider, error: 40 - Could not open a >>>> connection >>> to >>>> SQL Server) >>>> >>>> I can connect using other machine just not the one I want to. The >>>> machine >>>> I'm trying to connect with is a Windows 2003 Server running SQL Server >>> 2005. >>>> I sort of think it may be getting confused and thinks I'm trying to >>> connect >>>> locally. >>>> >>>> I even tried to connect using the SQL Server Management Studio but I >>>> get >>> the >>>> same error. >>>> >>>> I set Named Pipes to enabled in the SQL Server Config. >>>> >>>> Any ideas? >>>> >>>> Thanks, >>>> Joe >>>> >>>> >>>> >> |
|
||
|
||||
|
William \(Bill\) Vaughn
Guest
Posts: n/a
|
Okay, it sounds like a firewall issue. Try disabling the firewall on the
client. I would also make sure the SQL Browser service is running and that the login credentials you're using have rights to the default database. I too have written quite a bit about connecting. I suggest you start with the whitepaper on my blog. I've also written a long chapter on connecting that has helped a lot of people establish and maintain connections. In any case, let's see your ConnectString. That will help isolate the issues further. -- __________________________________________________________________________ William R. Vaughn President and Founder Beta V Corporation Author, Mentor, Dad, Grandpa Microsoft MVP (425) 556-9205 (Pacific time) Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition) http://betav.com/blog/billva ____________________________________________________________________________________________ "Joe" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)... > I can telnet to the server from the machines that do work but cannot from > the machine that will not connect. > > I can ping the server though using the name on all machines. > > I also tried telnet by IP but that doesn't work either. > > I don't know if this matter but the server I'm trying to connect to is SQL > Server 2000. > > > "George Wen" <(E-Mail Removed)> wrote in message > news:(E-Mail Removed)... >>I would suggest: >> >> 1, check your tcp/ip port and listening IP then run 'netstat -an' on the >> server and write down the result, make sure they match. >> >> 2, on the working workstation, run 'telnet sqlserver port' and see if you >> can connect; >> >> 3, run the same command as step 2 on the computer that has the issue and >> check the result; >> >> 4, try 'ping sqlserver' on both computer see if you can resolve computer >> name, >> >> 5, if there is a problem with dns resolving, replace 'sqlserver' >> computername with IP address and try again. >> >> 6, if the above steps don't lead to a solution, try using SQL login from >> the problematic computer.... >> >> >> >> Joe wrote: >>> I checked all the possible causes but still no luck. >>> >>> ""Steven Cheng"" <(E-Mail Removed)> wrote in message >>> news:(E-Mail Removed)... >>>> Hi Joe, >>>> >>>> From your description, you're encountering some connectivity issue when >>>> try >>>> connecting a SQL Server 2005 instance from a certain client box >>>> ,correct? >>>> >>>> Generally for SQL Server connecting issue, there are many possible >>>> causes >>>> such as the server's firewall, SQL Server's remote connection setting, >>>> protocols settings .. As you mentioned that some other boxs can connect >>>> the >>>> instance correctly, but this paricular client not work. I think it is >>>> likely that there might be something wrong with the client machine's >>>> SQL >>>> protocol configuration or the network connection of that box has some >>>> problem. >>>> >>>> here is a standard troubleshooting guide for SQL Server 2005 >>>> connectivity >>>> issue: >>>> >>>> #SQL Server 2005 Remote Connectivity Issue TroubleShoot >>>> http://blogs.msdn.com/sql_protocols/...ver-2005-Remot >>>> e-Connectivity-Issue-TroubleShooting.aspx >>>> >>>> I think you can quickly go throught the server-side checklist and focus >>>> on >>>> the client-side ones: >>>> >>>> Sincerely, >>>> >>>> Steven Cheng >>>> >>>> Microsoft MSDN Online Support Lead >>>> >>>> >>>> Delighting our customers is our #1 priority. We welcome your comments >>>> and >>>> suggestions about how we can improve the support we provide to you. >>>> Please >>>> feel free to let my manager know what you think of the level of service >>>> provided. You can send feedback directly to my manager at: >>>> (E-Mail Removed). >>>> >>>> ================================================== >>>> Get notification to my posts through email? Please refer to >>>> http://msdn.microsoft.com/en-us/subs...#notifications. >>>> >>>> Note: MSDN Managed Newsgroup support offering is for non-urgent issues >>>> where an initial response from the community or a Microsoft Support >>>> Engineer within 2 business day is acceptable. Please note that each >>>> follow >>>> up response may take approximately 2 business days as the support >>>> professional working with you may need further investigation to reach >>>> the >>>> most efficient resolution. The offering is not appropriate for >>>> situations >>>> that require urgent, real-time or phone-based interactions. Issues of >>>> this >>>> nature are best handled working with a dedicated Microsoft Support >>>> Engineer >>>> by contacting Microsoft Customer Support Services (CSS) at >>>> http://msdn.microsoft.com/en-us/subs.../aa948874.aspx >>>> ================================================== >>>> This posting is provided "AS IS" with no warranties, and confers no >>>> rights. >>>> >>>> -------------------- >>>>> From: "Joe" <(E-Mail Removed)> >>>>> Subject: Cannot connect a remote sql server >>>>> Date: Sat, 22 Nov 2008 20:18:12 -0500 >>>>> Hello, >>>>> >>>>> I'm having a strange problem here. I'm trying to connect to a remote >>>>> SQL >>>>> Server database but I keep getting this error: >>>>> An error has occurred while establishing a connection to the server. >>>>> When >>>>> connecting to SQL Server 2005, this failure may be caused by the fact >>>>> that >>>>> under the default settings SQL Server does not allow remote >>>>> connections. >>>>> (provider: Named Pipes Provider, error: 40 - Could not open a >>>>> connection >>>> to >>>>> SQL Server) >>>>> >>>>> I can connect using other machine just not the one I want to. The >>>>> machine >>>>> I'm trying to connect with is a Windows 2003 Server running SQL Server >>>> 2005. >>>>> I sort of think it may be getting confused and thinks I'm trying to >>>> connect >>>>> locally. >>>>> >>>>> I even tried to connect using the SQL Server Management Studio but I >>>>> get >>>> the >>>>> same error. >>>>> >>>>> I set Named Pipes to enabled in the SQL Server Config. >>>>> >>>>> Any ideas? >>>>> >>>>> Thanks, >>>>> Joe >>>>> >>>>> >>>>> >>> > |
|
||
|
||||
|
Joe
Guest
Posts: n/a
|
It turned out it was a firewall issue on the router. Instead of the port
being opened it was blocked. Thanks for your help and sorry about wasting your time. -Joe "William (Bill) Vaughn" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)... > Okay, it sounds like a firewall issue. Try disabling the firewall on the > client. I would also make sure the SQL Browser service is running and that > the login credentials you're using have rights to the default database. > > I too have written quite a bit about connecting. I suggest you start with > the whitepaper on my blog. I've also written a long chapter on connecting > that has helped a lot of people establish and maintain connections. In any > case, let's see your ConnectString. That will help isolate the issues > further. > > -- > __________________________________________________________________________ > William R. Vaughn > President and Founder Beta V Corporation > Author, Mentor, Dad, Grandpa > Microsoft MVP > (425) 556-9205 (Pacific time) > Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition) > http://betav.com/blog/billva > ____________________________________________________________________________________________ > > > > "Joe" <(E-Mail Removed)> wrote in message > news:(E-Mail Removed)... >> I can telnet to the server from the machines that do work but cannot from >> the machine that will not connect. >> >> I can ping the server though using the name on all machines. >> >> I also tried telnet by IP but that doesn't work either. >> >> I don't know if this matter but the server I'm trying to connect to is >> SQL Server 2000. >> >> >> "George Wen" <(E-Mail Removed)> wrote in message >> news:(E-Mail Removed)... >>>I would suggest: >>> >>> 1, check your tcp/ip port and listening IP then run 'netstat -an' on the >>> server and write down the result, make sure they match. >>> >>> 2, on the working workstation, run 'telnet sqlserver port' and see if >>> you can connect; >>> >>> 3, run the same command as step 2 on the computer that has the issue and >>> check the result; >>> >>> 4, try 'ping sqlserver' on both computer see if you can resolve computer >>> name, >>> >>> 5, if there is a problem with dns resolving, replace 'sqlserver' >>> computername with IP address and try again. >>> >>> 6, if the above steps don't lead to a solution, try using SQL login from >>> the problematic computer.... >>> >>> >>> >>> Joe wrote: >>>> I checked all the possible causes but still no luck. >>>> >>>> ""Steven Cheng"" <(E-Mail Removed)> wrote in message >>>> news:(E-Mail Removed)... >>>>> Hi Joe, >>>>> >>>>> From your description, you're encountering some connectivity issue >>>>> when try >>>>> connecting a SQL Server 2005 instance from a certain client box >>>>> ,correct? >>>>> >>>>> Generally for SQL Server connecting issue, there are many possible >>>>> causes >>>>> such as the server's firewall, SQL Server's remote connection setting, >>>>> protocols settings .. As you mentioned that some other boxs can >>>>> connect the >>>>> instance correctly, but this paricular client not work. I think it is >>>>> likely that there might be something wrong with the client machine's >>>>> SQL >>>>> protocol configuration or the network connection of that box has some >>>>> problem. >>>>> >>>>> here is a standard troubleshooting guide for SQL Server 2005 >>>>> connectivity >>>>> issue: >>>>> >>>>> #SQL Server 2005 Remote Connectivity Issue TroubleShoot >>>>> http://blogs.msdn.com/sql_protocols/...ver-2005-Remot >>>>> e-Connectivity-Issue-TroubleShooting.aspx >>>>> >>>>> I think you can quickly go throught the server-side checklist and >>>>> focus on >>>>> the client-side ones: >>>>> >>>>> Sincerely, >>>>> >>>>> Steven Cheng >>>>> >>>>> Microsoft MSDN Online Support Lead >>>>> >>>>> >>>>> Delighting our customers is our #1 priority. We welcome your comments >>>>> and >>>>> suggestions about how we can improve the support we provide to you. >>>>> Please >>>>> feel free to let my manager know what you think of the level of >>>>> service >>>>> provided. You can send feedback directly to my manager at: >>>>> (E-Mail Removed). >>>>> >>>>> ================================================== >>>>> Get notification to my posts through email? Please refer to >>>>> http://msdn.microsoft.com/en-us/subs...#notifications. >>>>> >>>>> Note: MSDN Managed Newsgroup support offering is for non-urgent issues >>>>> where an initial response from the community or a Microsoft Support >>>>> Engineer within 2 business day is acceptable. Please note that each >>>>> follow >>>>> up response may take approximately 2 business days as the support >>>>> professional working with you may need further investigation to reach >>>>> the >>>>> most efficient resolution. The offering is not appropriate for >>>>> situations >>>>> that require urgent, real-time or phone-based interactions. Issues of >>>>> this >>>>> nature are best handled working with a dedicated Microsoft Support >>>>> Engineer >>>>> by contacting Microsoft Customer Support Services (CSS) at >>>>> http://msdn.microsoft.com/en-us/subs.../aa948874.aspx >>>>> ================================================== >>>>> This posting is provided "AS IS" with no warranties, and confers no >>>>> rights. >>>>> >>>>> -------------------- >>>>>> From: "Joe" <(E-Mail Removed)> >>>>>> Subject: Cannot connect a remote sql server >>>>>> Date: Sat, 22 Nov 2008 20:18:12 -0500 >>>>>> Hello, >>>>>> >>>>>> I'm having a strange problem here. I'm trying to connect to a remote >>>>>> SQL >>>>>> Server database but I keep getting this error: >>>>>> An error has occurred while establishing a connection to the server. >>>>>> When >>>>>> connecting to SQL Server 2005, this failure may be caused by the fact >>>>>> that >>>>>> under the default settings SQL Server does not allow remote >>>>>> connections. >>>>>> (provider: Named Pipes Provider, error: 40 - Could not open a >>>>>> connection >>>>> to >>>>>> SQL Server) >>>>>> >>>>>> I can connect using other machine just not the one I want to. The >>>>>> machine >>>>>> I'm trying to connect with is a Windows 2003 Server running SQL >>>>>> Server >>>>> 2005. >>>>>> I sort of think it may be getting confused and thinks I'm trying to >>>>> connect >>>>>> locally. >>>>>> >>>>>> I even tried to connect using the SQL Server Management Studio but I >>>>>> get >>>>> the >>>>>> same error. >>>>>> >>>>>> I set Named Pipes to enabled in the SQL Server Config. >>>>>> >>>>>> Any ideas? >>>>>> >>>>>> Thanks, >>>>>> Joe >>>>>> >>>>>> >>>>>> >>>> >> |
|
||
|
||||
|
Steven Cheng
Guest
Posts: n/a
|
Thanks for your followup Joe,
I'm glad that you've figured it out. Firewall on router does well explain this behavior. Have a good day! Sincerely, Steven Cheng Microsoft MSDN Online Support Lead Delighting our customers is our #1 priority. We welcome your comments and suggestions about how we can improve the support we provide to you. Please feel free to let my manager know what you think of the level of service provided. You can send feedback directly to my manager at: (E-Mail Removed). >Subject: Re: Cannot connect a remote sql server >Date: Mon, 24 Nov 2008 14:40:05 -0500 > >It turned out it was a firewall issue on the router. Instead of the port >being opened it was blocked. > >Thanks for your help and sorry about wasting your time. >-Joe > >"William (Bill) Vaughn" <(E-Mail Removed)> wrote in message >news:(E-Mail Removed)... >> Okay, it sounds like a firewall issue. Try disabling the firewall on the >> client. I would also make sure the SQL Browser service is running and that >> the login credentials you're using have rights to the default database. >> >> I too have written quite a bit about connecting. I suggest you start with >> the whitepaper on my blog. I've also written a long chapter on connecting >> that has helped a lot of people establish and maintain connections. In any >> case, let's see your ConnectString. That will help isolate the issues >> further. >> >> -- >> __________________________________________________________________________ >> William R. Vaughn >> President and Founder Beta V Corporation >> Author, Mentor, Dad, Grandpa >> Microsoft MVP >> (425) 556-9205 (Pacific time) >> Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition) >> http://betav.com/blog/billva >> ____________________________________________________________________________ ________________ >> >> |
|
||
|
||||
|
|
|
| |
![]() |
| Thread Tools | |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| connect vb6 to remote sql server | Ali Tareq | Microsoft VB .NET | 1 | 4th Dec 2008 12:15 PM |
| Re: Connect To Local SQL Server DB From Remote Server | Jeff Dillon | Microsoft ASP .NET | 0 | 21st Aug 2008 11:12 PM |
| How to connect into remote server | MSK | Microsoft ASP .NET | 3 | 23rd Apr 2007 01:52 PM |
| How to connect remote server | MSK | Microsoft Dot NET | 1 | 18th Apr 2007 03:42 PM |
| Connect to remote SQL Server from behind ISA | HardBap | Microsoft Dot NET | 0 | 11th Mar 2005 04:30 PM |
Powered by vBulletin®. Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2010, Crawlability, Inc. |




