web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Moved database and VB6 can't connect anymore

(0) ShareShare
ReportReport
Posted on by 1,275

I moved our Dynamics 9 system from one server to another (Both running SQL Server 2000). For the most part, all is working in Dynamics. However, when our payroll person tries to print the check register, she gets an error message:

A get/change operation on table 'UPR_WORK_HDR' failed accessing SQL data.

In addition, I have some reports in a VB6 system that need to access the Dynamics SQL database. It worked before the move. Yes, I have modified the OLEDB configuration. Dynamics would not run until I did. If I run the report from within Crystal Reports 9 and put in the log on (sa & password), the report runs fine. I just can't seem to invoke it from within the VB6 app. Now, following the report is some code that updates an Excel spreadsheet. It also needs to connect to the database. The open database code runs before the report prints. Since the database won't open for the report there is no reason to believe it will open for the Excel update. This is the database open code. It is exactly the same (with different db names) as the other database open bits. They work.

Set CnxnDynamics = New ADODB.Connection
CnxnDynamics.Provider = "SQLOLEDB"
CnxnDynamics.Properties("Data Source").Value = "Dynamics"
CnxnDynamics.Properties("Initial Catalog").Value = "TG1"
CnxnDynamics.Properties("Integrated Security").Value = "SSPI"
CnxnDynamics.Open

The error I get is: An Error occurred: [-2147467259] [DBNETLIB][ConnectionOpen(Connect()).] SQL Server does not exist or access denied.

 

Any ideas?

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    have you granted access to all users again by running the Grant SQL script?

    if not please run it, retry your report after you can get it on the KB 878449

  • pasvorto Profile Picture
    1,275 on at

    I just reran it against the company database as well as DYNAMICS. No change.

    note: Talked to PR gal. After the check register fails, she does a reprint and it works fine.

  • Community Member Profile Picture
    on at

    Then go to sysinternals website and download process monitor and review if you are missing something external to your application

  • pasvorto Profile Picture
    1,275 on at

    Should I be running it from the client or the server?

  • Community Member Profile Picture
    on at

    run it from your client computer and try to find "ACCESS DENIED" on the results columns on your client, if you dont find anything then try on your server and watch for the calls!!

  • Richard Wheeler Profile Picture
    75,848 Moderator on at

    As far as the user goes, you could try deleting the user and recreating and granting access to companies. You can also run SQL profiler on the server at the point of error. Finally, you may want to export all you reports out to a package file, rename your reports.dic and then import the package back in.

  • pasvorto Profile Picture
    1,275 on at

    No mention of 'access denied' anywhere. A number of buffer overflows, but none dealing with Dynamics.

    Can I delete 'sa' without causing issues?

  • pasvorto Profile Picture
    1,275 on at

    Now this is interesting... I started SQL Profiler and new trace. I tried to enter sa & the password and, after a couple minutes of trying to connect, I get "SQL Server does not exist or access denied."

  • Community Member Profile Picture
    on at

    can you verify now if your sql server service is started ?, have you tried as well restart the computer in question?

     

    please verify which protocols are enabled for your SQL server

  • Richard Wheeler Profile Picture
    75,848 Moderator on at

    DO NOT delete 'sa'. I do not believe you are even able to delete the 'sa' user. W/O 'sa' you will no longer be able to maintain SQL. Can you go into Enterprise Manager as 'sa' using SQL Authentication? What collation sequence are you using? Is it case sensitive? I would start by going into Enterprise Manager and change the 'sa' password to something you know and make note of the case of the letters. Then try SQL Profiler using those credentials.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Community Member Profile Picture

Community Member 2

#2
mtabor Profile Picture

mtabor 1

#2
Victoria Yudin Profile Picture

Victoria Yudin 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans