![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
Hoping that someone will throw the dog a bone here ![]() I am trying to build a DTS package that will import all of the rows that do not already exist from a mySQL database (via ODBC) to a MS SQL database. Like this step1 - get the last incremented ID from the mssql table (not the mssql ID, but an imported ID from the mySQL table) set @nextrecord = select top 1 * from mssql.table order by id,desc step 2 - insert records from the mysql table with an ID higher than the highest ID in the mssql table. insert into mssql.table select * from mysql.table where ID > @nextrecord so, as you can see, I have an idea what I want to do, but no clue how to actually do it. What I have done so far; created a new DTS package created the connection via a system DSN to mysql created an execute SQL task got lost.... anybody feeling charitable tonight? thx! |
![]() |
| Thread Tools | |
| Display Modes | |
| |