SQLcode error code summary and sqlstate = 37000 Solutions

Source: Internet
Author: User
Tags sql server driver odbc connection odbc sql server driver

SQLcode error code summary and sqlstate = 37000 Solutions

Today, when I used Power Designer to reverse the database for the second time, I encountered a problem:

Unable to list the users.

[Microsoft] [odbc SQL Server Driver] [SQL Server] cannot predefine statements

SQLSTATE = 37000

After searching for half a day, we can solve the problem as follows. In the final analysis, an error occurs in the second step.

Solution:

Step 1: Find the DBMS of the PD, modify its DBMS configuration, select Database-> Change Current DBMS in the menu bar, and select SQL Server2005 for the DBMS.

Step 2: Modify the ODBC connection mode. Remember not to select the default database when using the Wizard to generate the System DSN.

Reconfigure ODBC connection, Administrative Tools-> data source ODBC-> Add in user DSN Tab option-> the selection box that appears to create a new data source, drag the scroll bar to the bottom, select SQL Srever. The new data source naming window is displayed. The name is BinODBC. In the server drop-down box, select a local database instance. Click Next> select SQL server verification with user ID and password> enter SQL user name and password> do not select the "change default database to" check box. Go to the next step and click Finish.

Step 3: Select File> Reverse Engineer> Database from PD

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.