Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL Server and AS400

Status
Not open for further replies.

shaminda

Programmer
Jun 9, 2000
170
US
I have a application in VB using AS400 and SQL Server. The queries I run on AS400 are very slow. Is it possible to run querries on SQL Server using stored procedures? If possible will it increase the performance?
 
You can create a linked server to the 400, and invoke AS/400 queries in a SQL Server stored proc. You will need to use SNA server or Host Integration Server to do this because linked servers require an OLEDB data source, and to use OLEDB to hit the 400, you need SNA server.

I don't believe that this will speed up your access to the AS/400, however. Execution plans for stored procedures are only stored in SQL Server. SQL Server does not know how to optimize for the 400...

Tom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top