on 12-11-2014 12:45 PM
Hi Team,
I have a requirement in moving data from one source to another source. My source is Oracle view and destination is SQL table. I need to insert the record from source to destination using script in BODS not query transform.
I have written code below
sql("sql datastore name", "insert into sqltablename (col1,col2) select col1,col2 from oracledatastorename.schemaname.tablename");
I am getting error "oracledatastorename.schemaname.tablename doesn't exist".
could you please help me to resolve this issue or is there any other technique we can use in BODS but i don't want to use Query transform.
Thanks,
Sundaram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, so that means without query transform also if i join my source and destination table it will move data. one more doubt if my table structure is different, i mean if in my source table 5 columns and in my destination table 8 columns, then this will work?
anyways thanks for this valuable solution.
Hello
For this technique to work you must create a SQL Server linked server (to Oracle). The error is nothing to do with Data Services,when you use the SQL function,you delegate all control to the DB.
If you used a query and 'db links' in your datastores it would achieve exactly what you require without hand coding the SQL.
Michael
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.