Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

VB question

Posted on 2002-06-30
5
Medium Priority
?
129 Views
Last Modified: 2010-05-02
Can you pls let me know what all steps to be followed for linking the sql server with sybase server.I'm using SQL server 7.0 Enterprise Manager client for linking.
Can you pls mention the list of dlls/supporting files/drivers needed to link the servers.

Thank & Regds
Praveen




Hi,

I want to do a join operation in the vb code.

The problem however is that , one table is in Sybase database and the other one is in Sql server database.

Can I do a join operation like this or not ??


Thanks & Regds
Praveen
0
Comment
Question by:pkmukkala
5 Comments
 
LVL 75

Accepted Solution

by:
Anthony Perkins earned 200 total points
ID: 7119883
Try linking the Sybase database to the SQL Server database, then you can do a join with a SQL Server connection with the following syntax:

Select Table1.*, SybaseTable.*
From   Table1
       Inner Join Sybase..Table2 SybaseTable On Table1.Column1=SybaseTable.Column2

Anthony
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 7121722
If that doesn't work post a question with a link to this one on the Sybase and SQL forums.

mlmcc
0
 
LVL 3

Expert Comment

by:schworak
ID: 7124837
Try something more like this....


Select table1.*, SybaseTable1.*
From Table1, SybaseTable1
Where table1.key = SybaseTable1.key


What this will do is similar to the InnerJoin but in a way that will allow non-connected databases communicate. It isn't as effecient but is really your only option in this case.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7970907
Hi pkmukkala,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept acperkins@devx's comment(s) as an answer.

pkmukkala, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 

Expert Comment

by:SpideyMod
ID: 8018456
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question