Guideline for Connectivity Question Posting<p class=MsoNormal style="margin:0in 0in 0pt"><font face="Times New Roman">In order to better assist troubleshooting connectivity related issue, the more specific the problem you describe, the faster we can help you out. Please take a few minutes to answer the following questions and post the answers as much as possible along with your specific repro steps.  </font></p> <p class=MsoNormal style="margin:0in 0in 0pt"><font face="Times New Roman"> </font></p> <p class=MsoNormal style="margin:0in 0in 0pt"><a title="http://blogs.msdn.com/sql_protocols/" href="http://blogs.msdn.com/sql_protocols/"><u><font face="Times New Roman" color="#800080">http://blogs.msdn.com/sql_protocols/</font></u></a><font face="Times New Roman"> may already have your question answered. Check it out.</font></p> <p class=MsoNormal style="margin:0in 0in 0pt"><span><font face="Times New Roman"> </font></span></p> <p class=MsoNormal style="margin:0in 0in 0pt"><font face="Times New Roman">[1] Client side:</font></p> <ol style="margin-top:0in" type=1> <li class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman">What is the connection string in you app or DSN? (please specify)</font> <li class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman">If client fails to connect, what is the client error messages? (please specify)</font> <li class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman">Is the client remote or local to the SQL server machine? [Remote | Local]</font> <li class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman">Can you ping your server? [YES | NO ]</font></li></ol> <p class=MsoNormal style="margin:0in 0in 0pt 0.75in"><font face="Times New Roman">In cmd.exe console, type “ping -a &lt;server_name&gt;”.</font></p> <ol style="margin-top:0in" type=1 start=5> <li class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman">Can you telnet to your SQL Server? [YES | NO, please specify the error message ]</font></li></ol> <p class=MsoNormal style="margin:0in 0in 0pt 0.75in"><font face="Times New Roman">In cmd.exe console, type “telnet &lt;server name&gt; port, where port can be 135, 445 or sql_server_tcp_port. If your cmd.exe console turns into a complete black screen with a cursor flushing on top left corner, you are connected. Type ctrl+’[‘ to bring up telnet prompt and type “quit” &lt;enter&gt;.</font></p> <ol style="margin-top:0in" type=1 start=6> <li class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman">What is your client database provider? [SNAC | MDAC | ADO.NET1.0 | ADO.NET2.0| other (please specify] Or/And, what is your client application? [SQL Management Studio | SQL Profiler | Visual Studio | Other (please specify).</font> <li class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman">Is your client computer in the same domain as the Server computer? (Same domain | Different domains | WorkGroup)</font> <li class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman">What protocol the client enabled? [Shared Memory | TCPIP | Named Pipes].</font> <li class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman">Do you have aliases configured that match the server name portion of your connection string? If so, please check if it is correct. You can use cliconfg.exe (SS 2000) or SQL Server Configuration Manager (SS 2005) to configure the alias.</font> <li class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman">Do you select force encryption on server and/or client?</font></li></ol> <p class=MsoNormal style="margin:0in 0in 0pt"><font face="Times New Roman"> </font></p> <p class=MsoNormal style="margin:0in 0in 0pt"><font face="Times New Roman">[2] Server side:</font></p> <p class=MsoNormal style="margin:0in 0in 0pt"><font face="Times New Roman"> </font></p> <ol style="margin-top:0in" type=1> <li class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman">What is the MS SQL version? [ SQL Server 2005 | SQL Sever 2005 ]</font> <li class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman">What is the SKU of MS SQL? [Enterprise | Standard | Workgroup | Express (or MSDE) | other (please specify)].</font> <li class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman">What is the SQL Server Protocol enabled? [Shared Memory | TCPIP | Named Pipes ]. Use SQL Server Configuration Manager to configure it and check ERRORLOG or event log to confirm.</font> <li class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman">Does the server start successfully? [YES | NO] If not what is the error messages in the SQL server ERRORLOG?</font> <li class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman">If SQL Server is a named instance, is the SQL browser enabled? [YES | NO]</font> <li class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman">What is the account that the SQL Server is running under?[Local System | Network Service | Domain Account]</font> <li class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman">Do you make firewall exception for your SQL server TCP port if you want connect remotely through TCP provider? [YES | NO | not applicable]</font> <li class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman">Do you make firewall exception for SQL Browser UDP port 1434? In SQL2000, you still need to make firewall exception for UDP port 1434 in order to support named instance.[YES | NO | not applicable ]</font></li></ol> <p class=MsoNormal dir=ltr style="margin:0in 0in 0pt"><font face="Times New Roman, Times, Serif">[2a]  Tool Used to Connect</font></p> <blockquote dir=ltr style="margin-right:0px"> <p class=MsoNormal style="margin:0in 0in 0pt"><font face="Times New Roman, Times, Serif">What tool or Application are you using to connect to SQL Server (eg: Visual Studio, SQL Server Management  Studio, SQLCmd.exe, OSQL, etc) and especially the version of SQL Server (Express, Workgroup, Standard, Enterprise, Developer)</font></p></blockquote> <p class=MsoNormal style="margin:0in 0in 0pt"> </p> <p class=MsoNormal style="margin:0in 0in 0pt"><font face="Times New Roman">[3] Platform:</font></p> <ol style="margin-top:0in" type=1> <li class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman">What is the OS version? [Windows XPSP2 | Windows 2003 | Windows 2000 | Windows 98 | others (please specify ) ].</font> <li class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman">Do you have third party antivirus, anti-spareware software installed? [Symantec | Norton | other (please specify)].</font></li></ol> <p class=MsoNormal style="margin:0in 0in 0pt"><font face="Times New Roman"> </font></p> <p class=MsoNormal style="margin:0in 0in 0pt"><font face="Times New Roman">[4] Misc:</font></p> <ol style="margin-top:0in" type=1> <li class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman">If you have certificate configuration issue: Please use “certutil.exe –v –store my” to dump certificate specific info and post it in your question.</font></li></ol> <p class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman, Times, Serif">Tips:</font></p> <p class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman, Times, Serif">1. Find SQL Server Errorlog: Default to C:\Program Files\Microsoft SQL Server\MSSQL.#\MSSQL\LOG </font></p> <p class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman, Times, Serif"> </font></p> <p class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman, Times, Serif">Last but not least:</font></p> <p class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman, Times, Serif">There is a wealth of information already available to help you answer your questions. </font></p> <p class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman, Times, Serif"> </font></p> <p class=MsoNormal style="margin:0in 0in 10pt"><font face="Times New Roman, Times, Serif">(1) SQL Server 2005 Books Online: </font><a title="http://msdn2.microsoft.com/" href="http://msdn2.microsoft.com/"><font face="Times New Roman, Times, Serif" color="#000000">http://msdn2.microsoft.com</font></a></p> <p class=MsoNormal style="margin:0in 0in 10pt"><font face="Times New Roman, Times, Serif">(2) Microsoft Support Knowledge Base:  </font><a title="http://support.microsoft.com/" href="http://support.microsoft.com/"><font face="Times New Roman, Times, Serif" color="#000000">http://support.microsoft.com</font></a></p> <p class=MsoNormal style="margin:0in 0in 10pt"><font face="Times New Roman, Times, Serif">(3) SQL Protocol Team Blog:<font color="#000000"> </font><u><a title="http://blogs.msdn.com/sql_protocols" href="http://blogs.msdn.com/sql_protocols"><font color="#000000">http://blogs.msdn.com/sql_protocols</font></a></u></font></p> <p class=MsoNormal style="margin:0in 0in 10pt"><font face="Times New Roman, Times, Serif" color="#000000">(4) MSN Search: </font><a title="http://search.msn.com/" href="http://search.msn.com/"><font face="Times New Roman, Times, Serif" color="#000000">http://search.msn.com/</font></a><font face="Times New Roman, Times, Serif"><font color="#000000"> </font>or use your favorite search engine.</font></p> <p class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman"></font> </p>© 2009 Microsoft Corporation. All rights reserved.Thu, 05 Feb 2009 07:04:21 Zdeee09a8-8115-48d4-a900-c963b681cc12http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/deee09a8-8115-48d4-a900-c963b681cc12#deee09a8-8115-48d4-a900-c963b681cc12http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/deee09a8-8115-48d4-a900-c963b681cc12#deee09a8-8115-48d4-a900-c963b681cc12Nan Tuhttp://social.msdn.microsoft.com/Profile/en-US/?user=Nan%20TuGuideline for Connectivity Question Posting<p class=MsoNormal style="margin:0in 0in 0pt"><font face="Times New Roman">In order to better assist troubleshooting connectivity related issue, the more specific the problem you describe, the faster we can help you out. Please take a few minutes to answer the following questions and post the answers as much as possible along with your specific repro steps.  </font></p> <p class=MsoNormal style="margin:0in 0in 0pt"><font face="Times New Roman"> </font></p> <p class=MsoNormal style="margin:0in 0in 0pt"><a title="http://blogs.msdn.com/sql_protocols/" href="http://blogs.msdn.com/sql_protocols/"><u><font face="Times New Roman" color="#800080">http://blogs.msdn.com/sql_protocols/</font></u></a><font face="Times New Roman"> may already have your question answered. Check it out.</font></p> <p class=MsoNormal style="margin:0in 0in 0pt"><span><font face="Times New Roman"> </font></span></p> <p class=MsoNormal style="margin:0in 0in 0pt"><font face="Times New Roman">[1] Client side:</font></p> <ol style="margin-top:0in" type=1> <li class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman">What is the connection string in you app or DSN? (please specify)</font> <li class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman">If client fails to connect, what is the client error messages? (please specify)</font> <li class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman">Is the client remote or local to the SQL server machine? [Remote | Local]</font> <li class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman">Can you ping your server? [YES | NO ]</font></li></ol> <p class=MsoNormal style="margin:0in 0in 0pt 0.75in"><font face="Times New Roman">In cmd.exe console, type “ping -a &lt;server_name&gt;”.</font></p> <ol style="margin-top:0in" type=1 start=5> <li class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman">Can you telnet to your SQL Server? [YES | NO, please specify the error message ]</font></li></ol> <p class=MsoNormal style="margin:0in 0in 0pt 0.75in"><font face="Times New Roman">In cmd.exe console, type “telnet &lt;server name&gt; port, where port can be 135, 445 or sql_server_tcp_port. If your cmd.exe console turns into a complete black screen with a cursor flushing on top left corner, you are connected. Type ctrl+’[‘ to bring up telnet prompt and type “quit” &lt;enter&gt;.</font></p> <ol style="margin-top:0in" type=1 start=6> <li class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman">What is your client database provider? [SNAC | MDAC | ADO.NET1.0 | ADO.NET2.0| other (please specify] Or/And, what is your client application? [SQL Management Studio | SQL Profiler | Visual Studio | Other (please specify).</font> <li class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman">Is your client computer in the same domain as the Server computer? (Same domain | Different domains | WorkGroup)</font> <li class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman">What protocol the client enabled? [Shared Memory | TCPIP | Named Pipes].</font> <li class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman">Do you have aliases configured that match the server name portion of your connection string? If so, please check if it is correct. You can use cliconfg.exe (SS 2000) or SQL Server Configuration Manager (SS 2005) to configure the alias.</font> <li class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman">Do you select force encryption on server and/or client?</font></li></ol> <p class=MsoNormal style="margin:0in 0in 0pt"><font face="Times New Roman"> </font></p> <p class=MsoNormal style="margin:0in 0in 0pt"><font face="Times New Roman">[2] Server side:</font></p> <p class=MsoNormal style="margin:0in 0in 0pt"><font face="Times New Roman"> </font></p> <ol style="margin-top:0in" type=1> <li class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman">What is the MS SQL version? [ SQL Server 2005 | SQL Sever 2005 ]</font> <li class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman">What is the SKU of MS SQL? [Enterprise | Standard | Workgroup | Express (or MSDE) | other (please specify)].</font> <li class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman">What is the SQL Server Protocol enabled? [Shared Memory | TCPIP | Named Pipes ]. Use SQL Server Configuration Manager to configure it and check ERRORLOG or event log to confirm.</font> <li class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman">Does the server start successfully? [YES | NO] If not what is the error messages in the SQL server ERRORLOG?</font> <li class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman">If SQL Server is a named instance, is the SQL browser enabled? [YES | NO]</font> <li class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman">What is the account that the SQL Server is running under?[Local System | Network Service | Domain Account]</font> <li class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman">Do you make firewall exception for your SQL server TCP port if you want connect remotely through TCP provider? [YES | NO | not applicable]</font> <li class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman">Do you make firewall exception for SQL Browser UDP port 1434? In SQL2000, you still need to make firewall exception for UDP port 1434 in order to support named instance.[YES | NO | not applicable ]</font></li></ol> <p class=MsoNormal dir=ltr style="margin:0in 0in 0pt"><font face="Times New Roman, Times, Serif">[2a]  Tool Used to Connect</font></p> <blockquote dir=ltr style="margin-right:0px"> <p class=MsoNormal style="margin:0in 0in 0pt"><font face="Times New Roman, Times, Serif">What tool or Application are you using to connect to SQL Server (eg: Visual Studio, SQL Server Management  Studio, SQLCmd.exe, OSQL, etc) and especially the version of SQL Server (Express, Workgroup, Standard, Enterprise, Developer)</font></p></blockquote> <p class=MsoNormal style="margin:0in 0in 0pt"> </p> <p class=MsoNormal style="margin:0in 0in 0pt"><font face="Times New Roman">[3] Platform:</font></p> <ol style="margin-top:0in" type=1> <li class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman">What is the OS version? [Windows XPSP2 | Windows 2003 | Windows 2000 | Windows 98 | others (please specify ) ].</font> <li class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman">Do you have third party antivirus, anti-spareware software installed? [Symantec | Norton | other (please specify)].</font></li></ol> <p class=MsoNormal style="margin:0in 0in 0pt"><font face="Times New Roman"> </font></p> <p class=MsoNormal style="margin:0in 0in 0pt"><font face="Times New Roman">[4] Misc:</font></p> <ol style="margin-top:0in" type=1> <li class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman">If you have certificate configuration issue: Please use “certutil.exe –v –store my” to dump certificate specific info and post it in your question.</font></li></ol> <p class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman, Times, Serif">Tips:</font></p> <p class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman, Times, Serif">1. Find SQL Server Errorlog: Default to C:\Program Files\Microsoft SQL Server\MSSQL.#\MSSQL\LOG </font></p> <p class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman, Times, Serif"> </font></p> <p class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman, Times, Serif">Last but not least:</font></p> <p class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman, Times, Serif">There is a wealth of information already available to help you answer your questions. </font></p> <p class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman, Times, Serif"> </font></p> <p class=MsoNormal style="margin:0in 0in 10pt"><font face="Times New Roman, Times, Serif">(1) SQL Server 2005 Books Online: </font><a title="http://msdn2.microsoft.com/" href="http://msdn2.microsoft.com/"><font face="Times New Roman, Times, Serif" color="#000000">http://msdn2.microsoft.com</font></a></p> <p class=MsoNormal style="margin:0in 0in 10pt"><font face="Times New Roman, Times, Serif">(2) Microsoft Support Knowledge Base:  </font><a title="http://support.microsoft.com/" href="http://support.microsoft.com/"><font face="Times New Roman, Times, Serif" color="#000000">http://support.microsoft.com</font></a></p> <p class=MsoNormal style="margin:0in 0in 10pt"><font face="Times New Roman, Times, Serif">(3) SQL Protocol Team Blog:<font color="#000000"> </font><u><a title="http://blogs.msdn.com/sql_protocols" href="http://blogs.msdn.com/sql_protocols"><font color="#000000">http://blogs.msdn.com/sql_protocols</font></a></u></font></p> <p class=MsoNormal style="margin:0in 0in 10pt"><font face="Times New Roman, Times, Serif" color="#000000">(4) MSN Search: </font><a title="http://search.msn.com/" href="http://search.msn.com/"><font face="Times New Roman, Times, Serif" color="#000000">http://search.msn.com/</font></a><font face="Times New Roman, Times, Serif"><font color="#000000"> </font>or use your favorite search engine.</font></p> <p class=MsoNormal style="margin:0in 0in 0pt;tab-stops:list .5in"><font face="Times New Roman"></font> </p>Fri, 21 Apr 2006 22:31:16 Z2006-12-06T05:57:08Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/deee09a8-8115-48d4-a900-c963b681cc12#dcf03575-628f-45de-a669-d82a45be89a8http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/deee09a8-8115-48d4-a900-c963b681cc12#dcf03575-628f-45de-a669-d82a45be89a8Anando_Paul_edc3eehttp://social.msdn.microsoft.com/Profile/en-US/?user=Anando_Paul_edc3eeGuideline for Connectivity Question Postingthank u very much, its really helpfulMon, 19 Mar 2007 03:04:30 Z2007-03-19T03:04:30Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/deee09a8-8115-48d4-a900-c963b681cc12#f7129282-ceb5-4693-b785-ddb48cadbeddhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/deee09a8-8115-48d4-a900-c963b681cc12#f7129282-ceb5-4693-b785-ddb48cadbeddOroguihttp://social.msdn.microsoft.com/Profile/en-US/?user=OroguiGuideline for Connectivity Question Posting<p>5.- Can I telnet to the sql server? NO, the error on telnet says:</p> <p align=left> </p> <p align=left>the connection to the host can't be opened on port 1433: Connection error</p> <p align=left> </p> <p align=left> </p> <p align=left>- Error on ODBC says:</p> <p align=left> </p> <p align=left> </p> <blockquote dir=ltr style="margin-right:0px"> <p align=left>Connection Failed:</p> <p align=left>SQLState: '08001'</p> <p align=left>SQLServer Error: 2</p> <p align=left>[Microsoft][SQL Server Native client 10.0]Named pipes provider: Could not open a connection to SQL Server [2]</p> <p align=left>Connection failed:</p> <p align=left>SQLState: 'HYT00'</p> <p align=left>SQLServer Error: 0</p> <p align=left>[Microsoft][SQL Server Native client 10.0]Login timeout expired</p> <p align=left>Connection failed:</p> <p align=left>SQLState: '08001'</p> <p align=left>SQLServer Error: 2</p> <p align=left>[Microsoft][SQL Server Native client 10.0]An error has ocurred while establishing a connection to the server. When connecting to SQL Server 2005 or above, this failure maybe caused by the fact that under the default settings SQL server does not allow remote connections</p></blockquote>Tue, 21 Aug 2007 00:55:16 Z2007-08-21T00:55:16Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/deee09a8-8115-48d4-a900-c963b681cc12#d7f1f0a3-ac3e-49df-b759-2c3c945d6102http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/deee09a8-8115-48d4-a900-c963b681cc12#d7f1f0a3-ac3e-49df-b759-2c3c945d6102techvistashttp://social.msdn.microsoft.com/Profile/en-US/?user=techvistasGuideline for Connectivity Question PostingYou can fix this by unblocking your port 1433 in your local machine.<br><br>you can do this by entering CONTROL PANEL--------------&gt; FIREWALL <br>Mon, 03 Sep 2007 22:44:22 Z2007-09-03T22:44:22Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/deee09a8-8115-48d4-a900-c963b681cc12#e2114d1e-834f-4311-964f-030e7698307fhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/deee09a8-8115-48d4-a900-c963b681cc12#e2114d1e-834f-4311-964f-030e7698307fCozmodonhttp://social.msdn.microsoft.com/Profile/en-US/?user=CozmodonGuideline for Connectivity Question Posting<p align=left><font face=Arial size=2>I have searched all over and I hope you can help me.  First and most important I am new to this type of programming, I am an old VB6 guy that has been away for 4 years and needless to say it has all changed.  I am not a beginner to programming but new to .net and so on.  I work with SQL for about 10 years and it is different now in some ways.</font></p> <p align=left>A friend of mine told me about all the free stuff, VB Express 2008, SQL 2005 Express and so on and I got hooked on programming again.  Now am just doing shareware stuff and having fun.</p> <p align=left>Anyway, here is my problem.  I created an app using VB 2008.  I used a DB I had in sql 2005 express.  Attached the DB to my project (then copied it to the project so it would be include in the publish) and everything is fine. Published the app using the tool included in VB. Burned a CD using Nero and installed it on my Dev machine, which is XP-Pro(SP2) and has SQL Express 2005. Ran like a dream, no problems at all.  Then I took the CD and did the install on my Vista laptop. THat is where the problem occured.  Got the error 26 can not connect to the server/istance because it doesn't allow remote connections.  This problem has been memtioned many times but not in the context I am talking about. I set the surface Area Config for local and remote with TCPIP only in SQL 2005 on the Dev machine and set the UDF 1434 to open(execption) in the fire wall on the vista laptop(hope that is the right one, I can't find the blog I read it on but I had it open when I made the changes I followed it exactly).  Can you tell me what else I need to do?</p> <p align=left>BTW I have not tried this on any other machines execpt the two memtioned above, if I do will I have problems with others also if they do not have SQL on the machine?  I think that I read in one of the help topics that the build includes a compact SQL server in the install when I publish.  Hope you can help me here as I have posted on the VB express forum and all I got was some smart A$$ telling there are programs out there to help but didn't tell me where or anything else but to not waste nary a something or a byte.  Real wiseguy.  Any help would be greatly appricated.</p> <p align=left>TIA,</p> <p align=left>Coz</p>Fri, 05 Oct 2007 05:05:52 Z2007-10-05T05:05:52Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/deee09a8-8115-48d4-a900-c963b681cc12#e50c0185-f9d3-4956-a79f-5ad39debfef3http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/deee09a8-8115-48d4-a900-c963b681cc12#e50c0185-f9d3-4956-a79f-5ad39debfef3dereck57http://social.msdn.microsoft.com/Profile/en-US/?user=dereck57Guideline for Connectivity Question Posting<font size=-1>Explains that clients may not be able to communicate to SQL Server through <b>port</b> <b>1433</b> or the <b>port</b> on which SQL Server is listening.</font> .<a title="http://wokdok.com/docs" href="http://wokdok.com/docs">.</a>.Mon, 28 Jan 2008 14:30:09 Z2008-01-28T14:30:09Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/deee09a8-8115-48d4-a900-c963b681cc12#e001a467-9b4b-4d2e-b22d-913b0c8e4577http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/deee09a8-8115-48d4-a900-c963b681cc12#e001a467-9b4b-4d2e-b22d-913b0c8e4577prachi189http://social.msdn.microsoft.com/Profile/en-US/?user=prachi189Guideline for Connectivity Question Posting<p align=left><font face=Arial size=2>there is a social networkin website we're creating... the client is supposed to register to the website... the registration form contains aroud 20 fields n we 'the admin' are supposed to store this data in the database...</font></p> <p align=left>as the client fills the form n submit it...after a long time he gets an error as 'Request Time Out'...n even data doesnt get stored in d database....</p> <p align=left>if i use the same connection for a table containing less number of fields...its working fine.....</p> <p align=left>didnt get any help yet...</p> <p align=left>even tried to increase the response time...</p> <p align=left>hope u help me with this...</p> <p align=left><font face=Arial size=2></font> </p> <p align=left><font face=Arial size=2>connection string in my app : <font size=2></p> <p>connprof.ConnectionString = </font><font color="#800000" size=2>&quot;Data Source=P2-P4100;Initial Catalog=sns;Integrated Security=True&quot;</font><font size=2>;</p> <p> </p> <p align=left>database provider is ADO.NET 2.0</p> <p align=left> </p> <p align=left>SQL version : MS SQL 2005 (express edition)</p> <p align=left></font></font><font face="Times New Roman">Application used to connect to SQL Server : Visual Studio</font></p> <p align=left><font face="Times New Roman">OS version : Windows XP</font></p>Thu, 21 Feb 2008 08:41:46 Z2008-02-21T08:41:46Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/deee09a8-8115-48d4-a900-c963b681cc12#662a987b-50bf-4686-b225-9306f658213ahttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/deee09a8-8115-48d4-a900-c963b681cc12#662a987b-50bf-4686-b225-9306f658213adeveloper06_live.comhttp://social.msdn.microsoft.com/Profile/en-US/?user=developer06_live.comGuideline for Connectivity Question Posting<font face=Arial size=2> <p align=left>Nan tu,</p> <p align=left> </p> <p align=left>Can you please help me on this.</p> <p align=left> </p> <p align=left>I have a document with some information on the guidelines you 'asked' to check. i also have some print screens to be sure....but that i cannot post. </p> <p align=left>can i email you with my issues?</p> <p align=left> </p> <p align=left>my name is soenita. i'm a student and i've been trying to create a datasource to my sql server but i'm having allot of problems. </p> <p align=left> </p> <p align=left>PLEASE HELP ME WITH THIS.</p> <p align=left>I'm a beginner and do not know much about this. Please let me know if I can email you, then I can sent you my document with all the details and screen shots.</p> <p align=left> </p> <p align=left>Thank you!!!</p> <p align=left> </p> <p align=left>Regards,</p> <p align=left>Soenita</p> <p align=left> </p> <p align=left>ps. my email is <a title="mailto:developer06@live.com" href="mailto:developer06@live.com"><font color="#013da4">developer06@live.com</font></a> </p></font>Sat, 24 May 2008 12:16:20 Z2008-05-24T12:16:20Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/deee09a8-8115-48d4-a900-c963b681cc12#e4033506-93a7-43fb-a995-d07d75a725f8http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/deee09a8-8115-48d4-a900-c963b681cc12#e4033506-93a7-43fb-a995-d07d75a725f8Hantanihttp://social.msdn.microsoft.com/Profile/en-US/?user=HantaniGuideline for Connectivity Question Posting<p>Hi Nan Tu</p> <p align=left> </p> <p align=left>I hope you can help me with my problem, because it's driving me crazy</p> <p align=left> </p> <p align=left>I have upgraded my sql server 2000 Enterprise Edition to the 2005 Enterprise Edition.</p> <p align=left>In 2000 I had my cubes in analisis services but when I upgraded, I cannot access any more my cubes.</p> <p align=left> </p> <p align=left>If I use the Microsoft Visual Studio, I can process and deploy my cube. But when I use Excell 2007 and try to access the analysis services, he says he has no access (all locally done from the server who is running Windows server 2003)</p> <p align=left> </p> <p align=left>So, from the browser in Microsoft Visual Studio, I can see the data</p> <p align=left>But when I try to deploy the cube throw the menu Microsoft SQL server --- Analysis Services --- Deployment Wizard, I have the following error with exactly the same cube:</p> <p align=left>Error de OLE DB: Error de OLE DB u ODBC: Invalid authorization specification; 28000. Errores del motor relacional de alto nivel. No se pudo establecer una conexión al origen de datos con DataSourceID 'BD SBOBI', Nombre 'BD SBOBI'. Errores del motor...</p> <p align=left> </p> <p align=left>I've been checking everywhere and I cannot understand why he has no access to that database while I can access it from Sql Server Intelligent Business Studio and Sql Server Management Studio</p> <p align=left> </p> <p align=left>Thanks for any help you can give me</p> <p align=left><font face=Arial size=2></font> </p>Fri, 30 May 2008 06:06:15 Z2008-05-30T06:06:15Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/deee09a8-8115-48d4-a900-c963b681cc12#fbad5fcc-8118-4b9c-b2aa-6439da19a5fahttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/deee09a8-8115-48d4-a900-c963b681cc12#fbad5fcc-8118-4b9c-b2aa-6439da19a5faAni Michalhttp://social.msdn.microsoft.com/Profile/en-US/?user=Ani%20MichalGuideline for Connectivity Question Posting I have sql connection related problem in dotnet application. <br>Some time this give following error message:<br><br><font face=Verdana size=2>“A connection was successfully established with the server, but then an error occurred during the pre-login handshake. 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: 0 - No process is on the other end of the pipe.)”<br><br>This is happened some time only. My application scenario is as follow:<br>I have window forms based application. I am using a two connections (in shared scope) and Two threads. First thread is the main application thread and other thread  which is started after application start. Second thread is also running continuously. To avoid the one connection sharing, i have created another shared connection (i.e. second connection with same connection string). <br>Our connection class structure looks like this.<br><br><font color="#0000ff"> <p>Public</font> <font color="#0000ff">Class</font> MyConnection<br></p> <p><font color="#0000ff">    Private</font> <font color="#0000ff">Shared</font> ObjMyConnection <font color="#0000ff">As</font> SqlConnection</p> <p><font color="#0000ff">    Private</font> <font color="#0000ff">Shared</font> ObjConn <font color="#0000ff">As</font> MyConnection</p> <p><font color="#0000ff">    Private</font> <font color="#0000ff">Shared</font> ObjCommand <font color="#0000ff">As</font> SqlCommand<br><br><font color="#0000ff"></p> <p><font color="#0000ff">    Public</font> <font color="#0000ff">Shared</font> <font color="#0000ff">Function</font> GetInstance() <font color="#0000ff">As</font> MyConnection<br>    <font color="#0000ff">If</font> ObjMyConnection <font color="#0000ff">Is</font> <font color="#0000ff">Nothing</font> <font color="#0000ff">Then<br></font>        ObjMyConnection = <font color="#0000ff">New</font> MyConnection<br><font color="#008000">    </font><font color="#0000ff">End</font> <font color="#0000ff">If<br></font><font color="#0000ff">        Return</font> ObjConn<br><font color="#0000ff">    End</font> <font color="#0000ff">Function<br><br></font>End</font> <font color="#0000ff">Class<br><br>Get instance function is called if i want to perform any db operations.<br>both thread uses different class (but have the same type and scoped member)<br><br>I hope this is helpful to find the problem root.<br></p></font></font>Thu, 05 Feb 2009 07:02:42 Z2009-02-05T07:04:18Z