dbTalk Databases Forums  

Re: Transform Data/Parameter (?) syntax error

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Re: Transform Data/Parameter (?) syntax error in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Transform Data/Parameter (?) syntax error - 08-05-2003 , 01:41 AM






I do not have Win2003 here but what is the statement you are trying in the
Source ?

--

----------------------------
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



"Nate Russell" <nathan_russell (AT) REMOVETHISdatacard (DOT) com> wrote

Quote:
When I hit the Parameters button in Source page of
Transform Data Task, I get a "Syntax error or access
violation" from "Microsoft OLE DB Provider for SQL
Server". I have set an output parameter I wish to use in
a previous Execute SQL Task (which must complete first),
and am using the ? as a placeholder in my where clause on
my Source page (of Transform Data).

The Transform Data Task is between two Microsoft SQL
Server 2000 SP3 databases. They are running Windows
Server 2003, thus the MDAC is version 2.8 that is
integrated into Windows Server 2003.



Reply With Quote
  #2  
Old   
Nate Russell
 
Posts: n/a

Default Re: Transform Data/Parameter (?) syntax error - 08-05-2003 , 09:24 AM






It is just a select statement. There is nothing wrong
with its syntax. The where clause looks like

"where sourcetimestamp between ? and current_timestamp"

It is the ? parameter placeholder that is causing the
syntax error. For instance, if I use "where
sourcetimestamp between currenttimestamp-30 and
current_timestamp", then I get no syntax error.

The impression I've gotten is that parameter support was
added into OLEDB around the time SQL Server 2000 came
out. I think the problem may be that the MDAC 2.8
version of OLEDB that comes with Windows Server 2003 is
having problems supporting parameters. Even if I upgrade
to SQL Server 2000 SP3, because the MDAC components in
that service pack are based around MDAC 2.7, I think the
MDAC 2.8 files are not getting updated. On last check,
you still cannot download MDAC 2.8 (it's only included in
Windows Server 2003), so I don't know if there is any fix.

I am hoping some expert is out there with a fix as
opposed to a workaround, such as dynamically changing the
select with ActiveX. Any suggestions?

Quote:
-----Original Message-----
I do not have Win2003 here but what is the statement you
are trying in the
Source ?

--

----------------------------
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



"Nate Russell" <nathan_russell (AT) REMOVETHISdatacard (DOT) com
wrote in message
news:097901c35aa9$f926d370$a601280a (AT) phx (DOT) gbl...
When I hit the Parameters button in Source page of
Transform Data Task, I get a "Syntax error or access
violation" from "Microsoft OLE DB Provider for SQL
Server". I have set an output parameter I wish to use
in
a previous Execute SQL Task (which must complete
first),
and am using the ? as a placeholder in my where clause
on
my Source page (of Transform Data).

The Transform Data Task is between two Microsoft SQL
Server 2000 SP3 databases. They are running Windows
Server 2003, thus the MDAC is version 2.8 that is
integrated into Windows Server 2003.


.


Reply With Quote
  #3  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Transform Data/Parameter (?) syntax error - 08-05-2003 , 09:33 AM



Can you test the package on a < 2.8 version of MDAC server ?
That would rule out the MDAC issue.

--

----------------------------
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



"Nate Russell" <Nathan_Russell (AT) REMOVETHISdatacard (DOT) com> wrote

Quote:
It is just a select statement. There is nothing wrong
with its syntax. The where clause looks like

"where sourcetimestamp between ? and current_timestamp"

It is the ? parameter placeholder that is causing the
syntax error. For instance, if I use "where
sourcetimestamp between currenttimestamp-30 and
current_timestamp", then I get no syntax error.

The impression I've gotten is that parameter support was
added into OLEDB around the time SQL Server 2000 came
out. I think the problem may be that the MDAC 2.8
version of OLEDB that comes with Windows Server 2003 is
having problems supporting parameters. Even if I upgrade
to SQL Server 2000 SP3, because the MDAC components in
that service pack are based around MDAC 2.7, I think the
MDAC 2.8 files are not getting updated. On last check,
you still cannot download MDAC 2.8 (it's only included in
Windows Server 2003), so I don't know if there is any fix.

I am hoping some expert is out there with a fix as
opposed to a workaround, such as dynamically changing the
select with ActiveX. Any suggestions?

-----Original Message-----
I do not have Win2003 here but what is the statement you
are trying in the
Source ?

--

----------------------------
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



"Nate Russell" <nathan_russell (AT) REMOVETHISdatacard (DOT) com
wrote in message
news:097901c35aa9$f926d370$a601280a (AT) phx (DOT) gbl...
When I hit the Parameters button in Source page of
Transform Data Task, I get a "Syntax error or access
violation" from "Microsoft OLE DB Provider for SQL
Server". I have set an output parameter I wish to use
in
a previous Execute SQL Task (which must complete
first),
and am using the ? as a placeholder in my where clause
on
my Source page (of Transform Data).

The Transform Data Task is between two Microsoft SQL
Server 2000 SP3 databases. They are running Windows
Server 2003, thus the MDAC is version 2.8 that is
integrated into Windows Server 2003.


.




Reply With Quote
  #4  
Old   
Nate Russell
 
Posts: n/a

Default Re: Transform Data/Parameter (?) syntax error - 08-05-2003 , 02:24 PM



I tested it. Works fine on non MDAC 2.8/Windows Server
2003 Source. I'm not sure how to file a bug with
Microsoft on this one, but it would be good since it's
hard to convince a customer to use this solution when
they know it might break if they ever upgrade to MDAC 2.8
(provided it is available eventually for download).

Quote:
-----Original Message-----
Can you test the package on a < 2.8 version of MDAC
server ?
That would rule out the MDAC issue.

--

----------------------------
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



"Nate Russell" <Nathan_Russell (AT) REMOVETHISdatacard (DOT) com
wrote in message
news:0cdd01c35b5d$47efcd50$a401280a (AT) phx (DOT) gbl...
It is just a select statement. There is nothing wrong
with its syntax. The where clause looks like

"where sourcetimestamp between ? and current_timestamp"

It is the ? parameter placeholder that is causing the
syntax error. For instance, if I use "where
sourcetimestamp between currenttimestamp-30 and
current_timestamp", then I get no syntax error.

The impression I've gotten is that parameter support
was
added into OLEDB around the time SQL Server 2000 came
out. I think the problem may be that the MDAC 2.8
version of OLEDB that comes with Windows Server 2003 is
having problems supporting parameters. Even if I
upgrade
to SQL Server 2000 SP3, because the MDAC components in
that service pack are based around MDAC 2.7, I think
the
MDAC 2.8 files are not getting updated. On last check,
you still cannot download MDAC 2.8 (it's only included
in
Windows Server 2003), so I don't know if there is any
fix.

I am hoping some expert is out there with a fix as
opposed to a workaround, such as dynamically changing
the
select with ActiveX. Any suggestions?

-----Original Message-----
I do not have Win2003 here but what is the statement
you
are trying in the
Source ?

--

----------------------------
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



"Nate Russell" <nathan_russell (AT) REMOVETHISdatacard (DOT) com
wrote in message
news:097901c35aa9$f926d370$a601280a (AT) phx (DOT) gbl...
When I hit the Parameters button in Source page of
Transform Data Task, I get a "Syntax error or
access
violation" from "Microsoft OLE DB Provider for SQL
Server". I have set an output parameter I wish to
use
in
a previous Execute SQL Task (which must complete
first),
and am using the ? as a placeholder in my where
clause
on
my Source page (of Transform Data).

The Transform Data Task is between two Microsoft SQL
Server 2000 SP3 databases. They are running Windows
Server 2003, thus the MDAC is version 2.8 that is
integrated into Windows Server 2003.


.



.


Reply With Quote
  #5  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Transform Data/Parameter (?) syntax error - 08-05-2003 , 03:21 PM




On 5-Aug-2003, "Nate Russell" <nathan_russell (AT) REMOVETHISdatacard (DOT) com> wrote:

Quote:
Re: Transform Data/Parameter (?) syntax error
Posted privately in response to private mail.


--

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


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.