Trying to setup a SQL Server 2005 linked server to the NetCRM database using the ODBC driver.
I installed the SSL and ODBC components according to the NS instructions, I then created a linked server in a SQL Server 2005 database using the following syntax:
EXEC sp_addlinkedserver
@server='NETCRM',
@srvproduct='NetSuite.com',
@provider='MSDASQL',
@datasrc='NetSuite.com',
@provstr='Database=NetSuite.com;Uid=xxxxxx@xxx.com;Pwd=xxxxxx'
When I attempt to query small views its slow but works fine (example administrator.browser ~ 20 rows, takes 11 seconds to return a select *). However, whenever I attempt to query the transactions views the query runs for about 20 - 30 minutes then returns the following error:
OLE DB provider "MSDASQL" for linked server "netcrm" returned message "[Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed".
OLE DB provider "MSDASQL" for linked server "netcrm" returned message "[OpenAccess][OpenRDA ODBC]Connection exception - Server lookup Failed - Database:NetSuite.com".
Msg 7303, Level 16, State 1, Line 1
Cannot initialize the data source object of OLE DB provider "MSDASQL" for linked server "netcrm".
After getting this error I cannot query any of the views, they all will return the same error message. To clear up the error I have to restart the SQL Server database engine, then I can query the small views again but still get the same message when trying to query the transactions views. I found that even if I do a "select top 1" query I still run into the same error. Here are two examples that timed out after 20+ minutes:
select top 1 * from netcrm.dbo.Administrator.TRANSACTIONS
select top 1 * from netcrm.dbo.Administrator.TRANSACTION_LINES
Has anyone else run into a similar issue? From what I've read in the usergroup other users have had performance issues with a SQL Server linked server. Unfortunately we are trying to automate some data comparisons between NetSuite data and some SQL Server data sources so Access/Excel aren't really an option to view the NS data.