Groups | Blog | Home
all groups > sql server dts > december 2003 >

sql server dts : Intersolv ODBC Driver


Ilya Margolin
12/4/2003 9:45:28 AM
Hi Daniele,

I was in a similar situation where I needed to pull some data out of
Informix 7.3 passing parameters to the queries. What I ended up doing was
writing Informix reports with input parameters (not that hard) letting them
save output as files, and then pulling files to the sql server side. Used
rsh service to execute reports and rcp to transfer the output. Worked like a
charm. This way I was not depending on ODBC/OLEDB driver idiosyncrasies.
Good luck.

Ilya

[quoted text, click to view]

Ilya Margolin
12/4/2003 11:44:26 AM
I was not either. I was in you shoes. Informix sql is very close to SQL-92
and UNIX ain't that bad.
[quoted text, click to view]

Ilya Margolin
12/4/2003 11:48:51 AM
What about using ActiveX task to compose a sql statement string including
actual parameter value into a package variable and then using dynamic
properties task replace the statement to what you've composed. This way you
do not have to pass parameters. This worked for me once.

Ilya

[quoted text, click to view]

Allan Mitchell
12/4/2003 2:51:58 PM
Very possible that the driver does not supoprt parameters like this.

Try rearranging to use this

Global Variables and SQL statements in DTS
(http://www.sqldts.com/Default.aspx?205)

--
--

Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org

[quoted text, click to view]

Nonno Oreste
12/4/2003 3:00:16 PM
Help me!

I try to import some data from an informix 5.0 table to Sql Server 2000 with
a DTS package.
I use Intersolv ODBC driver version 03.011.0021 to connect to the database.

It works well, but i can't define a parameter in the sql statement. For
example if a try to execute :

select *
from table
where field = ?

The dts environment give me an "unspecified syntax error....."

Where is the problem?
The driver don't support parameters or these must be defined with another
syntax?

Bye
Daniele

Nonno Oreste
12/4/2003 4:22:12 PM
[quoted text, click to view]
Thanks, this is the solution that i actually use.
It works well, but if it's possible to use parameters it's faster to
develope a package.

Hi
Daniele

Nonno Oreste
12/4/2003 4:25:56 PM
[quoted text, click to view]
Thanks a lot. The problem is that i'm not an informix (and unix)
programmer..... :-(
I develop on MS platform and so i can use only the MS technologies such as
ODBC..... :-(

AddThis Social Bookmark Button