N problems encountered when porting MySQL database to SQL server

Source: Internet
Author: User

The following articles mainly describe some problems encountered during the migration of MySQL databases to SQL server. The reason why MySQL databases to SQL server can be widely used in a short period of time is as follows, this is also because of its unique features. The following article describes the specific content.

TABLENAME:

LOG: System. IndexOutOfRangeException: Column1

In System. Data. ProviderBase. FieldNameLookup. GetOrdinal (String fieldName)

In System. Data. SqlClient. SqlDataReader. GetOrdinal (String name)

In System. Data. SqlClient. SqlDataReader. get_Item (String name)

In Pixysoft. Framework. Noebe. NoebeCommand. ExecuteReader ()

Note: An unhandled exception occurs during the execution of the current Web request. Check the stack trace information for details about the error and the source of the error in the code.

Exception details: System. Exception: TABLENAME:

LOG: System. IndexOutOfRangeException: Column1

In System. Data. ProviderBase. FieldNameLookup. GetOrdinal (String fieldName)

In System. Data. SqlClient. SqlDataReader. GetOrdinal (String name)

In System. Data. SqlClient. SqlDataReader. get_Item (String name)

In Pixysoft. Framework. Noebe. NoebeCommand. ExecuteReader ()

This is mainly because my SQL is SELECT COUNT (*) FROM TABLENAME.

No column is specified, so DbDataReader reader = command. ExecuteReader (); no column name = "" is returned in the returned data.

My code is through the reader component table, so that datacolumn is faulty. When this occurs, it is out of the border. The above content is an introduction to the problems encountered when the MySQL database is migrated to the SQL server.

The above content is an introduction to the problems encountered when the MySQL database is migrated to the SQL server.

Related Article

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.