![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a dts package that copys information into staging tables. When the table are empty the package runs correctly. When i try to run it a second time with a select * from table where field+field+field not in (select field+field+field from table) I get a syntax error converting chartacter to string to smalldatetime data type. If tables are truncated it runs fine i only want to update information that is not in the last table |
#3
| |||
| |||
|
|
I have a dts package that copys information into staging tables. When the table are empty the package runs correctly. When i try to run it a second time with a select * from table where field+field+field not in (select field+field+field from table) I get a syntax error converting chartacter to string to smalldatetime data type. If tables are truncated it runs fine i only want to update information that is not in the last table |
#4
| |||
| |||
|
|
when the package is first run, it inserts the data into the tables correctly. But when i run the package for the second to update any new |
|
----- Allan Mitchell wrote: ----- If the tables are truncated then you have no data and therefore do not need to convert anything You are trying to join attributes together with incompatible datatypes What is the structure of the table, sample data and your expected result? -- ---------------------------- 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 "shane" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message news:8DF41DDE-61EF-4F8A-92C8-59EE5D8FDCE1 (AT) microsoft (DOT) com... I have a dts package that copys information into staging tables. When the table are empty the package runs correctly. When i try to run it a second time with a select * from table where field+field+field not in (select field+field+field from table) I get a syntax error converting chartacter to string to smalldatetime data type. If tables are truncated it runs fine i only want to update information that is not in the last table |
![]() |
| Thread Tools | |
| Display Modes | |
| |