![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
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. |
#2
| |||
| |||
|
|
-----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. . |
#3
| |||
| |||
|
|
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. . |
#4
| |||
| |||
|
|
-----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. . . |
#5
| |||
| |||
|
|
Re: Transform Data/Parameter (?) syntax error |
![]() |
| Thread Tools | |
| Display Modes | |
| |