Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SPT cursor info

Status
Not open for further replies.

davidllittle

Programmer
Apr 25, 2001
2
US
Is there a way to determine from the SPT cursor what underlying SQL column/tables are being affected?

Example:

Select * from Invoice I, Detail D where I.invno=D.invno

Currently looking at the result of the cursor you get duplicate fields resulting (INVNO, INVNO1) but have no way to determine what underlying SQL tables they derived from?
Did INVNO come from invoice or did INVNO1 come from invoice?
The example is bad but the idea is here.

Is there a parser or something that will associate the column back to the underlying table resulting from a SPT.
 
I'm not aware of any way to determine the underlying tables. For sake of avoiding this problem and increasing efficiency, it is recommended that you name the columns and only list those needed in your process. Where you have a duplicate, you can assign an alias to one or both of the columns. Terry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top