![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello Everybody, I'm trying to use the DTS package to run an UPDATE query but it looks like the DTS query designer isn't accepting a properly formatted query. I'm looking at an example given on the Microsoft website that says I should use a query like this: * UPDATE Account SET CompanyName = ? WHERE CustomerID = ? * whereas I'm trying to run a query of the form: * UPDATE Patient SET AddressID = ? WHERE IDENTITY = ? * and I'm getting the lovely error titled "Package Error" that reads "Error Source : Microsoft OLE DB Provide for SQL Server\n\nError Description : Incorrect syntax near the keyword 'from'." which really must be designed to infuriate me considering there is no 'from' keyword in my query. If I'm doing something blatantly wrong, please, don't hesitate to point that out. If you need more information, I can give it to you. I'm desperate for this to work properly, as it's a necessary step in my dts package. Any help would really be appreciated. Thanks In Advance! .Win |
#3
| |||
| |||
|
|
Looks weird does it not. So the query parses OK? What does it say if you look in Disconnected Edit? "Winoo" <Winoo (AT) discussions (DOT) microsoft.com> wrote in message news:Winoo (AT) discussions (DOT) microsoft.com: Hello Everybody, I'm trying to use the DTS package to run an UPDATE query but it looks like the DTS query designer isn't accepting a properly formatted query. I'm looking at an example given on the Microsoft website that says I should use a query like this: * UPDATE Account SET CompanyName = ? WHERE CustomerID = ? * whereas I'm trying to run a query of the form: * UPDATE Patient SET AddressID = ? WHERE IDENTITY = ? * and I'm getting the lovely error titled "Package Error" that reads "Error Source : Microsoft OLE DB Provide for SQL Server\n\nError Description : Incorrect syntax near the keyword 'from'." which really must be designed to infuriate me considering there is no 'from' keyword in my query. If I'm doing something blatantly wrong, please, don't hesitate to point that out. If you need more information, I can give it to you. I'm desperate for this to work properly, as it's a necessary step in my dts package. Any help would really be appreciated. Thanks In Advance! .Win |
#4
| |||
| |||
|
|
No, the query does not parse OK. The error that I mentioned is the error I get when I try to parse the query. I'm afraid I don't know what you mean by saying "Disconnected Edit". "Allan Mitchell" wrote: Looks weird does it not. So the query parses OK? What does it say if you look in Disconnected Edit? "Winoo" <Winoo (AT) discussions (DOT) microsoft.com> wrote in message news:Winoo (AT) discussions (DOT) microsoft.com: Hello Everybody, I'm trying to use the DTS package to run an UPDATE query but it looks like the DTS query designer isn't accepting a properly formatted query. I'm looking at an example given on the Microsoft website that says I should use a query like this: * UPDATE Account SET CompanyName = ? WHERE CustomerID = ? * whereas I'm trying to run a query of the form: * UPDATE Patient SET AddressID = ? WHERE IDENTITY = ? * and I'm getting the lovely error titled "Package Error" that reads "Error Source : Microsoft OLE DB Provide for SQL Server\n\nError Description : Incorrect syntax near the keyword 'from'." which really must be designed to infuriate me considering there is no 'from' keyword in my query. If I'm doing something blatantly wrong, please, don't hesitate to point that out. If you need more information, I can give it to you. I'm desperate for this to work properly, as it's a necessary step in my dts package. Any help would really be appreciated. Thanks In Advance! .Win |
![]() |
| Thread Tools | |
| Display Modes | |
| |