on 11-07-2016 11:01 PM
Hello Expert
I am creation the JDBC to SOAP scenario . My DBA provided me the views name instead of SQL statement . i have few question .
Q1. Can we use Views instead of Sql statement ?
Q2. what is source structure ?
Q3: Please share some link for this process.
Thanks & Regards
Pankaj Singh
Hi Pankaj!
A1. Since the View object in database actualy is a pre-defined SQL statement (with additional parameters or without) it's no difference between selecting from DB table or View object. When you select from View, SQL statement defined for that View is performed first and than you perform select from result table.
For example: We have a View object named "Customers_View" in DB defined as:
SELECT TOP (100) PERCENT CustomerID AS CustID FROM dbo.Customers ORDER BY CustID
To query this View in sender JDBC adapter we use SQL statement:
SELECT CustID FROM Customers_View
A2. Your DBA should provide the View result table structure definition.
One thing: while querying the View, you should provide the way for updating source table(s) after receiving data in order to avoid repeatable reading of the same data from View object.
Regards, Evgeniy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Evgeniy Kolmakov for quick response and helpfull answer.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.