If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Microsoft SQL Server > MSSql Server2005 linked server as400

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-05-08, 03:36
angelo68mn angelo68mn is offline
Registered User
 
Join Date: Nov 2008
Posts: 1
MSSql Server2005 linked server as400

Hi everyone,
i created a linked server to as400 with mssql2005 using odbc driver.

Quering the as400 using openquery function i have quick answer (1").

Making the same query using 4 part name costructor i have slow answer (1'30")

Moreover when i build a view in sql2005 vs as400 tables i have slow response, and is not possible to build an index on a view because of the table is on linked server.

There's somebody who has a suggestion or i have to use 4 part name costructor?
Do you think that a stored procedure is better?

thank's in advance for your answer
Angelo
Reply With Quote
  #2 (permalink)  
Old 11-05-08, 12:07
PMASchmed PMASchmed is offline
Registered User
 
Join Date: Jun 2004
Location: Long Island
Posts: 696
Why not use OpenQuery ?
Reply With Quote
  #3 (permalink)  
Old 01-06-09, 17:08
notamainframer notamainframer is offline
Registered User
 
Join Date: Jan 2009
Posts: 1
Unhappy my linked server does not work

hey I created a linked server to the as400 and i am getting an error.

AN EXCEPTION occurred while executing a transact-sql statement or batch.

cannot initialize the data source object of OLE DB provider "IBMDA400" for linked server.

would you have a thought as to why this is happening?

i am able to create the linked server using Microsoft OLE DB provider for indexing service, but i am not able access the tables.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On