Groups | Blog | Home
all groups > sql server dts > june 2007 >

sql server dts : ODBC variable


GaryC
6/11/2007 1:23:01 PM
I'm using an ODBC data connection to an informix database. The ODBC is my
source and SQL is my destination. In the data pump, I can query the data
using literals in the where clause for a date range, but when I try to use a
variable, I receive a ODBC/Informix syntax error. I need to extract data
from this source every monday for the previous weeks data. I also tried
writing a Dynamic SQL statement, the statement is good, but when I execute it
on the ODBC connection, I receive the same syntax error.

Anyone have any Idea how I can do this.

Thanks.


Allan Mitchell
6/11/2007 8:48:06 PM
Hello GaryC,

I am not sure what the statement is that you execute but not all drivers
support parameterisation so what I do in thiscase is this

http://www.sqldts.com/205.aspx


Should work against any provider as all the provider sees is a statement.

--

Allan Mitchell
http://wiki.sqlis.com | http://www.sqlis.com | http://www.sqldts.com |
http://www.konesans.com

[quoted text, click to view]

AddThis Social Bookmark Button