Free Newsletters:
DatabaseDaily  
Database Journal
Search 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
» DBA Jobs
» Sitemap

News Via RSS Feed


follow us on Twitter





Brocade Doubles Down on 16 Gbps Fibre Channel

Microsoft Wants iOS Apps to Run on WP7

Avaya Debuts New Virtual Services Switch
Database Journal |DBA Support |SQLCourse |SQLCourse2







Technical Specialist – Pre-sales (MA)
Next Step Systems
US-MA-Littleton

Justtechjobs.com Post A Job | Post A Resume

Featured Database Articles

MS SQL

February 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")

Tools:
Add databasejournal.com to your favorites
Add databasejournal.com to your browser search box
IE 7 | Firefox 2.0 | Firefox 1.5.x
Receive news via our XML/RSS feed

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: Script Component: Working with BLOB 0010 4 January 27th, 03:03 PM
Will an MS SQL db table trigger affect the value returned by scope_identity? wreade 2 December 19th, 04:48 PM
BULK UPDATE error benedec 1 December 14th, 08:39 AM
Toggling problem in Matrix report ssrs 2008 dev_ritesh 0 December 2nd, 02:17 PM