Solved

pull from DB2 using ODBC

Posted on 2007-03-26
1
217 Views
Last Modified: 2010-03-19
I have a ODBC source for DB2 setup and working.

What I am not sure of is how to make a connection to DB2 thru SQLServer 2005 with a query.

Lets say my query is:

SELECT *
FROM somedb.sometable
WHERE somecolumn = 'a'

How would I get this to run using the ODBC connect?
0
Comment
Question by:whargra
1 Comment
 
LVL 21

Accepted Solution

by:
Kevin3NF earned 500 total points
ID: 18795817
You need to use OPENQUERY or set the DB2 database up as a linked server befoer you can query it
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

This article will describe one method to parse a delimited string into a table of data.   Why would I do that you ask?  Let's say that you need to pass multiple parameters into a stored procedure to search for.  For our sake, we'll say that we wa…
So every once in a while at work I am asked to export data from one table and insert it into another on a different server.  I hate doing this.  There's so many different tables and data types.  Some column data needs quoted and some doesn't.  What …
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

746 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

8 Experts available now in Live!

Get 1:1 Help Now