Database Journal
MS SQL Oracle DB2 Access MySQL PostgreSQL Sybase PHP SQL Etc SQL Scripts & Samples Links Database Forum

» Database Journal Home
» Database Articles
» Database Tutorials
MS SQL
Oracle
DB2
MS Access
MySQL
» RESOURCES
Database Tools
SQL Scripts & Samples
Links
» Database Forum
» Sitemap
Free Newsletters:
DatabaseDaily  
News Via RSS Feed


follow us on Twitter
Database Journal |DBA Support |SQLCourse |SQLCourse2
 

Featured Database Articles

MS SQL

Posted Feb 28, 2003

Linking SQL Server to Heterogeneous Systems - Page 2

By DatabaseJournal.com Staff

MAK (Muthusamy Anantha Kumar)

Linked server to Sybase 12 ASE database :

Install and Configure Sybase Client

The first step in this process is to install Sybase 12 ASE drivers on the SQL Server box. Then create an ODBC system DSN to Sybase. Get the IP address, database name, userID, password and port number used in Sybase server, from the Sybase database admin. The Sybase client reads information about Sybase from a configuration file under \Sybase\ini\sql.ini file. (Example appears below). Change or create the following information in the sql.ini file.

If windows 2000 Professional:

[MySystem]
master=TCP,172.277.78.118,2055
query=TCP,172.277.78.118,2055

If windows 2000 server use this (remove comma between port and ip address):

[MySystem]
master=TCP,172.277.78.118 2055
query=TCP,172.277.78.118 2055

Create the ODBC system DSN for Sybase server on the SQL Server Box.

Create Linked Server for Sybase

Open the Enterprise manager, and right click on Linked server under the Security Folder. Create a new linked server. Select the OLE DB Provider for ODBC Drivers. Give the same system ODBC name that you created for Sybase in the textbox provided for Data Source. Provide a userid and password in the provider string and security tab.

Test the connection by running the following SQL command in query analyzer.

Select * from openquery(SybaseServer, "Select column1 from table1")


MS SQL Archives

Comment and Contribute

 


(Maximum characters: 1200). You have characters left.

 

 




Latest Forum Threads
MS SQL Forum
Topic By Replies Updated
SQL 2005: SSIS: Error using SQL Server credentials poverty 3 August 17th, 07:43 AM
Need help changing table contents nkawtg 1 August 17th, 03:02 AM
SQL Server Memory confifuration bhosalenarayan 2 August 14th, 05:33 AM
SQL Server Primary Key and a Unique Key katty.jonh 2 July 25th, 10:36 AM