![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
-----Original Message----- Hi, I am trying to connect to multiple Interbase databases via the DTS package. I have successfully installed the Interbase driver and ODBC connects successfully to all. The package runs successfully the first time, connecting to InterbaseDB A, but fails to change connection to the next InterbaseDB B. I am using global variables to keep count of databases to connect etc. The global variable gets updated successfully, but the data pump is still going to the old db A. Is there a way that I can control the dynamic connection to databases via a script, before the datapump executes ? I am using the loop code listed on Alan's website: http://www.sqldts.com/default.aspx?6,103,246,0,1 Thanks in Advance, Parul . More Info on DTS Package: |
#3
| |||
| |||
|
|
-----Original Message----- Hi, I am trying to connect to multiple Interbase databases via the DTS package. I have successfully installed the Interbase driver and ODBC connects successfully to all. The package runs successfully the first time, connecting to InterbaseDB A, but fails to change connection to the next InterbaseDB B. I am using global variables to keep count of databases to connect etc. The global variable gets updated successfully, but the data pump is still going to the old db A. Is there a way that I can control the dynamic connection to databases via a script, before the datapump executes ? I am using the loop code listed on Alan's website: http://www.sqldts.com/default.aspx?6,103,246,0,1 Thanks in Advance, Parul . More Info on DTS Package: Task1: Execute SQL Task to get total Db's to connect to. Task2: ActiveX script that checks for package to excecute when count > 0 Task3: Dynamic Properties Task that sets Datasource of InterbaseODBC driver Connection to new DB Task4: Populate BranchID global variable with new db id. Task5: Dynamic Prop. Task to set From_Date Global Variable. Task6: Dynamic Prop. Task to set To_Date Global Variable (selected from interbase branch db...don't if this works). Task7: 4 datapumps to select data via ActiveX script in Data Pump properties. Source Connection--Interbase ODBC Driver conn, Destination Conn--SQL Server2000. Task8: Update DB to OK Flag to say selects took place, table updated in SQL server. Task9: Loop ActiveX script Thanks ! |
#4
| |||
| |||
|
|
-----Original Message----- What is it that you are using to change the connection ? You may need to make the change in two places. 1. The Connection 2. The SourceObjectName I do not work with Interbase so do not know what it puts in as the SourceObjectName. I may be qualified by the DB as well. -- -- 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 "Parul" <bhandariparul (AT) hotmail (DOT) com> wrote in message news:286f201c39127$65db78a0$a601280a (AT) phx (DOT) gbl... -----Original Message----- Hi, I am trying to connect to multiple Interbase databases via the DTS package. I have successfully installed the Interbase driver and ODBC connects successfully to all. The package runs successfully the first time, connecting to InterbaseDB A, but fails to change connection to the next InterbaseDB B. I am using global variables to keep count of databases to connect etc. The global variable gets updated successfully, but the data pump is still going to the old db A. Is there a way that I can control the dynamic connection to databases via a script, before the datapump executes ? I am using the loop code listed on Alan's website: http://www.sqldts.com/default.aspx?6,103,246,0,1 Thanks in Advance, Parul . More Info on DTS Package: Task1: Execute SQL Task to get total Db's to connect to. Task2: ActiveX script that checks for package to excecute when count > 0 Task3: Dynamic Properties Task that sets Datasource of InterbaseODBC driver Connection to new DB Task4: Populate BranchID global variable with new db id. Task5: Dynamic Prop. Task to set From_Date Global Variable. Task6: Dynamic Prop. Task to set To_Date Global Variable (selected from interbase branch db...don't if this works). Task7: 4 datapumps to select data via ActiveX script in Data Pump properties. Source Connection--Interbase ODBC Driver conn, Destination Conn--SQL Server2000. Task8: Update DB to OK Flag to say selects took place, table updated in SQL server. Task9: Loop ActiveX script Thanks ! Hi Alan, |
#5
| |||
| |||
|
|
What is it that you are using to change the connection ? You may need to make the change in two places. 1. The Connection 2. The SourceObjectName I do not work with Interbase so do not know what it puts in as the SourceObjectName. I may be qualified by the DB as well. -- -- 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/http://www.sqlpass.org "Parul" <bhandariparul (AT) hotmail (DOT) com> wrote in message news:286f201c39127$65db78a0$a601280a (AT) phx (DOT) gbl"]news:286f201c3912- 7$65db78a0$a601280a (AT) phx (DOT) gbl[/url]... -----Original Message----- Hi, I am trying to connect to multiple Interbase databases via the DTS package. I have successfully installed the Interbase driver and ODBC connects successfully to all. The package runs successfully the first time, connecting to InterbaseDB A, but fails to change connection to the next InterbaseDB B. I am using global variables to keep count of databases to connect etc. The global variable gets updated successfully, but the data pump is still going to the old db A. Is there a way that I can control the dynamic connection to databases via a script, before the datapump executes ? I am using the loop code listed on Alan's website: http://www.sqldts.com/default.aspx?6,103,246,0,1"]http:/- /www.sqldts.com/default.aspx?6,103,246,0,1[/url] Thanks in Advance, Parul . More Info on DTS Package: Task1: Execute SQL Task to get total Db's to connect to. Task2: ActiveX script that checks for package to excecute when count > 0 Task3: Dynamic Properties Task that sets Datasource of InterbaseODBC driver Connection to new DB Task4: Populate BranchID global variable with new db id. Task5: Dynamic Prop. Task to set From_Date Global Variable. Task6: Dynamic Prop. Task to set To_Date Global Variable (selected from interbase branch db...don't if this works). Task7: 4 datapumps to select data via ActiveX script in Data Pump properties. Source Connection--Interbase ODBC Driver conn, Destination Conn--SQL Server2000. Task8: Update DB to OK Flag to say selects took place, table updated in SQL server. Task9: Loop ActiveX script Thanks ! |
#6
| |||
| |||
|
#7
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |