|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
How do I use a view or query that references two different data sources ie 1 Oracle (APPPCT_PROJECT_TYPE ) and 1 table within my Sql. (ProjectTypes)
I want to use a query that looks and the data in the Oracle table compares it against my current table to determine if there are differenes and if so update current table with the differences in the data. This is the query I would have used in Access: Help me to convert it use using DTS. INSERT INTO ProjectTypes ( ProjectTypeCode, ProjectTypeDescrip, ProjectCatagory, ProjectClass, CapitalProjectNum, DateCreated, UserCreated, DateModified, UserModified ) SELECT APPPCT_PROJECT_TYPE.ID, APPPCT_PROJECT_TYPE.DESCR, APPPCT_PROJECT_TYPE.PROJ_DESCR_CATEGORY, APPPCT_PROJECT_TYPE.PROJ_CLASS, APPPCT_PROJECT_TYPE.CPN, Now() AS Expr1, "import" AS Expr2, Now() AS Expr3, "import" AS Expr4 FROM APPPCT_PROJECT_TYPE LEFT JOIN ProjectTypes ON APPPCT_PROJECT_TYPE.ID = ProjectTypes.ProjectTypeCode WHERE (((ProjectTypes.ProjectTypeCode) Is Null)); Any assistance in this mater is greatly appreciated. Sincerely, Karen |
|
#2
|
||||
|
||||
|
It is possible to create a link server from SQL Server to Oracle and use the linked tables in the same view (across servers) ... however, for simplicity I recommend you first dump the data from Oracle into a temporary table and then construct your SQL using the temporary table.
You will need in your DTS: 1 a data source to your Oracle Server 2 a data source to your SQL Server database 3 a translation between the two to dump the data to your temp table 4 a SQL task to generate the SQL you described above using SQL Server syntax (which is not that unsimilar to access) for more help with SQL Server DTS see the following thread: http://forums.aspfree.com/showthread.php?t=39002 I am very experienced with DTS so I will help you if you can’t get it but you should try to figure it out first, then tell me where you are stuck … good luck! |
![]() |
| Viewing: ASP Free Forums > Database > Microsoft SQL Server > DTS - using multiple data sources |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|