Solved

VB question

Posted on 2002-06-30
5
121 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 50 total points
Comment Utility
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 100

Expert Comment

by:mlmcc
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

762 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now