Urgent Report on SqlConnectionof. Net2.0!

Source: Internet
Author: User
During this week, I was busy upgrading the code from. net1.1 to. net2.0, and encountered many problems. Now I want to report an urgent issue about SqlConnection. It took me a whole day to find out this problem. If the database server is local, SqlConnection can be connected successfully. If the database server (I tested Sq

This week, I was busy upgrading the code from. net 1.1 to. net2.0, and encountered many problems. Now I want to report an urgent issue about SqlConnection. It took me a whole day to find out this problem. If the database server is local, SqlConnection can be connected successfully. If the database server (I tested Sq

This week, I was busy upgrading the code from. net 1.1 to. net2.0, and encountered many problems. Now I want to report an urgent issue about SqlConnection. It took me a whole day to find out this problem.

If the database server is local, SqlConnection can be connected successfully.

If the database server (I tested Sql2000 Sp4) is not local, the connection may be successful or fail. The result depends on the operating system running on the database server.

Only when the operating system is Win2003, The SqlConnection connection is successful. For other operating systems, the SqlConnection connection fails.

This situation does not exist in. net 1.1, but I have not seen any instructions in. net 2.0 SDK. If you change SqlConnection to OleDbConnection, almost all database servers on the platform (in fact, only Win2003 is tested, and WinXp SP2) can be connected successfully.

I wonder if there is any solution!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.