Marty Zigman

Conversations with Marty Zigman

Certified Administrator • ERP • SuiteCloud

Warning: SQL Server Linked Server to NetSuite Issues

NetSuite Technical

Tags: , , , , ,

Disappointment has set in.  After working on a project to move financial data from NetSuite to a local data warehouse, we discovered that there is a bug using SQL Server’s Linked Server technology through the NetSuite ODBC  driver.

What’s important to note is that it may not be obvious there’s a bug.  For the most part, everything appears to work.  You can connect and perform queries without complaint.  However, we discovered something that looked like a data integrity problem.  It appeared that we had accounts within the posting_account_activity table that were not in the accounts table.  Yet, if we performed a native ODBC query, we would get the expected result: all transactions accounts were referenced in the accounts table.

Upon a fair amount of head scratching, we discovered that there is a bug in the ODBC driver to Oracle.  See this article:  https://itknowledgeexchange.techtarget.com/itanswers/linked-server-query-returns-incomplete-results/

Turns out that Microsoft suggests that the SQL Server community connect to Oracle with Oracle drivers, not the ODBC drivers.  That doesn’t help us because the drivers to connect with NetSuite are using DataDirect’s Open Access drivers.

At this point, we are devising a new solution to the way we retrieve NetSuite data which will likely require a custom SQL Server Integration Services package to pull down down using the ODBC driver direct.

Marty Zigman LinkedIn

Marty Zigman

Holding three official certifications, Marty is widely recognized as a top NetSuite expert and leads a team of senior professionals at Prolecto Resources, Inc. A former Deloitte & Touche CPA and technology executive with CTO roles, he brings over 35 years of leadership in ERP, CRM, and eCommerce business systems. Contact Marty to engage directly.

BiographyYouTubeLinkedInX (Twitter)

20 thoughts on “Warning: SQL Server Linked Server to NetSuite Issues

  1. Our overall goal is to be able to build better reporting with the data.

    Right now we are going down the road of pulling the data using the API instead of a DB connection. The toughest part about that right now is that the data is so highly normalized, and it doesn’t come down with explicit relationships.

    I’ve considered just getting the NetSuite ODBC driver and using it just to quickly explore all the data and relationships, purely as a resource in our efforts to get the data through the API.

    Reply
  2. Hey guys,

    I have downloaded and setup the NetSuite ODBC driver. currently working out some firewall issues to be able to communicated with the netsuite server on port 1708. But my question is, after I have this all setup how do extract the data from NetSuite into my oracle database? Is there some kind of tool that I need to install to be able to write SQL queries?

    Thanks for your help

    Best Regards,

    Reply
  3. Marty,

    Thanks for the very helpful feedback. I finally have this setup but when I connect I get the message “This data source contains no visible tables”. Is there a switch or a configuration that needs to be done on NetSuite to expose the objects/tables?

    Best Regards,

    Reply
  4. Is this still an issue? We’ve just started to move to NetSuite. We have a small Netsuite implementation with which we are using the api to pull data for our Datawarehouse and other intergration points. We are now moving to a full blown implementation and the odbc driver looked interesting until I found this post.

    Reply
  5. Hiya, I’ve got a very odd issues that you may have come across and know a work around.
    I use SSIS and the NetSuite ODBC driver to copy tables to a local SQL server.

    No real problems, Transaction Lines is 1.5m records and takes 10 minutes. That’s 3 years of business.

    My main problem is that I can’t see any of the data in the ACCOUNTS tables, and can’t see any Supplier Invoice transactions. My admin says I’m set up for everything, but it’s either bad permissionning or a bug.

    Anyone seen that?

    Thanks for your selfless help.

    Reply
  6. Hiya, it was indeed permissions issues. I needed to be set up with access to all the ledgers in order to be able to see Supplier Invoices in Transactions / Transaction Lines via ODBC access. Now done, it’s very powerful to set up proper reporting outside the walled garden of the UI.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *