How to retrieve DB links and column names details used in code
Hi All,
I am looking for code that will retrieve database links name, referenced object and column names used in source code within the schema.
It’s easy enough to find the link names using xxx_db_links / user_source, the trick part it to list the column names used within the code.
Any expert advice is much appreciate
Thanks
Aali
That wil not give me column names .
Thanks
Message was edited by:
aalishan
Similar Messages
-
How to retrieve the path and the name of the destination file in a link annotation
Hi,
In C++:
How to retrieve the path and the name of the destination file in a link annotation and a Launch action.
Sample of my code:
//Determine if the annotation is a Link annotation
if (PDAnnotGetSubtype(annot) == ASAtomFromString("Link")) {
//Determine if the action is a Launch action
if (PDActionGetSubtype(action) == ASAtomFromString("Launch")) {
// What is the method ?
Regards
David GIn general, get the annotation as a Cos object and examine it, in
accordance with the PDF Reference.
Aandi Inston -
Query to Find Table and Column Name by using a value
Dear Legends,
I hope and surfed in our forums and google to find the Table Name and Column Name by having a value(Number/String). And my where clauses are
where owner NOT IN ('SYS','SYSTEM') and
data_type IN ('CHAR','VARCHAR2','NUMBER')
May I have your help for building the query. and my query as follows
select a.owner, c.column_name, c.data_type, c.owner, c.table_name
from dba_objects a, all_tab_cols c
where a.owner NOT IN ('SYS','SYSTEM') and
where c.owner NOT IN ('SYS','SYSTEM') and
where c.data_type IN ('CHAR','VARCHAR2')
order by a.owner
Thanks,
KarthikYou can use
select * from user_tab_columns a, user_tables b
where a.table_name = b.table_name
and a.data_type in ('NUMBER', 'VARCHAR2', 'NCHAR', 'CHAR');
Or if you want to user DBA_* tables, you can use.
select * from dba_tab_columns a, dba_tables b
where a.table_name = b.table_name
and a.owner = b.owner
and a.data_type in ('NUMBER', 'VARCHAR2', 'NCHAR', 'CHAR')
and b.owner not in ('SYS', 'SYSTEM');
And now when I look a bit more closely, you don't need DBA_TABLES there. dba_tab_columns alone is sufficient. And requirement is still not clear yet. Why you need a group by there? If I get it right, you can use this.
select * from dba_tab_columns a
where a.data_type in ('NUMBER', 'VARCHAR2', 'NCHAR', 'CHAR')
and a.owner not in ('SYS', 'SYSTEM');
Whether you use group by or not, the query will give you the same output.
Ishan -
How to get the constraintlist and column name in a table?
Hi,
can anyone please tell me how to get the constraint type ,and it's imposed on columns names in a table.
Thanks,
DeekayDeekay wrote:
can anyone please tell me how to get the constraint type ,and it's imposed on columns names in a table.To get constraint type:
select constraint_type from user_constraints where constraint_name = 'YOUR CONSTRAINT NAME';To get constraint columns:
SELECT column_name from user_cons_columns where constraint_name = 'YOUR CONSTRAINT NAME';SY. -
How to view all tables and column names from a remote database
Hey Guys,
I have a database in a remote server. I have the db link and the schema name.. Now i want to view all the tables in the remote database with column names.. I dont have access to that database using sql developer.. But i can view some tables using the db link..Is there any way i can view all the tables with the column names?user10683742 wrote:
Dont think i have DBA access..It gives the following error
ORA-00942: table or view does not exist
00942. 00000 - "table or view does not exist"You don't have to have 'dba' access, per se. You just have to have SELECT ALL TABLES privilege. when you use a db_link, you are connecting to the remote db with the user defined in the link, and .. on that db .. you will have the privileges of the user defined in the db link. Exactly as if you had used sqlplus to connect to that db with that user. -
How to retrieve the data from SAP-BAPI by using VB Code
Hi ,
I am new to BAPI.
V have created an application in Visual Basic with the following fields
EmpNo , EmpName, Addr1, Addr2, City and Phone (Only for Test)
We have written the code for SAVING the data into SAP. Already we have
constructed a table with the respective fields in SAP.
For that we ourself created our own BAPI Structure / Function Group /
Function Module/ Business Object - RELEASED related elements.
1)Established the connection successfully.
2)Stored the data into SAP Successfully and v r in need of
3)HOW TO RETRIEVE THE DATA FROM SAP (USING GETLIST.....GETDETAIL....)
Following is the code :
'BAPI Structure : ZBAPIEMP
'Function Group : ZBAPIEMP
'Function Module : ZBAPI_EMP_CREATEFROMDATA
'Business Object : ZBAPIEMP
'Function Module : ZBAPI_EMP_GETLIST
Dim bapictrl As Object
Dim oconnection As Object
Dim boEmp As Object
Dim oZEmp_Header As Object
Dim oImpStruct As Object
Dim oExpStruct As Object
Dim oreturn As Object
Dim x As String
Private Sub Form_Load()
Set bapictrl = CreateObject("SAP.BAPI.1")
Set oconnection = bapictrl.Connection
oconnection.logon
Set boEmp = bapictrl.GetSAPObject("ZBAPIEMP")
Set oZEmp_Header = bapictrl.DimAs(boEmp, "CreateFromData", "EmployeeHeader")
Set oImpStruct = bapictrl.DimAs(boEmp, "GetList", "EmployeeDispStruct")
End Sub
Private Sub cmdSave_Click()
oZEmp_Header.Value("EMPNO") = txtEmpNo.Text
oZEmp_Header.Value("EMPNAME") = txtEmpName.Text
oZEmp_Header.Value("ADDR1") = txtAddr1.Text
oZEmp_Header.Value("ADDR2") = txtAddr2.Text
oZEmp_Header.Value("CITY") = txtCity.Text
oZEmp_Header.Value("PHONE") = txtPhone.Text
boEmp.CreateFromData EmployeeHeader:=oZEmp_Header, Return:=oreturn
x = oreturn.Value("Message")
If x = "" Then
MsgBox "Transaction Completed!..."
Else
MsgBox x
End If
End Sub
Private Sub cmdView_Click()
End Sub
COULD ANYBODY GUIDE ME, HOW TO RETRIEVE THE DATA FROM BAPI, FOR THE WRITTEN CODE.I didn't seen any other answers but here's how it's been done previously in our organization for a custom BAPI. In this example, we give material and language to return the part description. It's not specific to your project but may give you ideas..
-Tim
Option Compare Database
Dim SAPLOGIN As Boolean
Dim FunctionCtrl As Object
Dim SapConnection As Object
Sub SAPLOGOUT()
On Error GoTo LogoutFehler
SapConnection.logoff
SAPLOGIN = False
Exit Sub
LogoutFehler:
If Err.Number = 91 Then
Exit Sub
Else
MsgBox Err.Description, vbCritical, "Fehler-Nr." & CStr(Err.Number) & " bei SAP-Logout"
End If
End Sub
Function SAPLOG() As Boolean
'Verbindungsobjekt setzen (Property von FunctionCtrl)
Set FunctionCtrl = CreateObject("SAP.Functions")
Set SapConnection = FunctionCtrl.Connection
'Logon mit Initialwerten
SapConnection.Client = "010"
SapConnection.Language = "EN"
SapConnection.System = "PR1"
SapConnection.SystemNumber = "00"
'SapConnection.Password = ""
SapConnection.GroupName = "PR1"
SapConnection.HostName = "168.9.25.120"
SapConnection.MessageServer = "168.9.25.120"
If SapConnection.Logon(0, False) <> True Then 'Logon mit Dialog
Set SapConnection = Nothing
DoCmd.Hourglass False
MsgBox "No connection to SAP R/3 !"
SAPLOGIN = False
SAPLOG = False
Exit Function
End If
SAPLOG = True
End Function
Function MatDescr(MatNr As String)
Dim func1 As Object
Dim row As Object, X As Integer, ErsteNr As String
Dim DatensatzZähler As Long
Dim RowField(1 To 50, 0 To 1) As String, RowLine As Long
If Not SAPLOGIN Then
If Not SAPLOG() Then
MsgBox "No connection to SAP !", 16
SAPLOGOUT
Exit Function
End If
End If
' Instanziieren des Function-Objektes
Set func1 = FunctionCtrl.Add("Z_BAPI_READ_MAKT")
' Export-Paramter definieren
func1.exports("MATNR") = MatNr
func1.exports("SPRAS") = "EN"
DoEvents
If Not func1.call Then
If func1.exception <> "" Then
MsgBox "Communication Error with RFC " & func1.exception
End If
DoCmd.Hourglass False
SAPLOGOUT
Exit Function
Else
MatDescr = func1.imports("MAKTX")
End If
If MatDescr = "" Then
MatDescr = "PART NO. NOT FOUND"
End If
End Function -
How to Zip a file and find it size using ABAP code
Hi All,
My requirement is to extract a file from Al11 ZIP it and find it size.
Please let me know whether there are any Function modules or Classes for Zipping and finding the size of it.
Note : Used Class "cl_abap_zip" but the output at in chinese language.
Thanks in advancve for your support.
Regards
JithuCheck https://wiki.sdn.sap.com/wiki/display/profile/GZIP
and how to zip and unzip a file in abap
May it useful
Kanagaraja L -
Parse JavaScript '.pac' file and get proxy details using C# code
Hi,
I have PAC file --> (A proxy auto-config (PAC) file defines how web browsers and other user agents can automatically choose the appropriate proxy server (access method) for a given URL (inbound request)).
This PAC file contains a JavaScript function “FindProxyForURL(url, host)”. This function returns a string with one or more access method specifications. These specifications cause the user agent to use a particular proxy server or to connect directly.
Eg:
function FindProxyForURL(url, host)
// declare variable strings
//incorrect proxy value
var use_proxy_yes = "PROXY MyWrongServerAddress:8080";
//correct proxy value
//var use_proxy_yes = "PROXY MyCorrectServerAddress:8080";
var use_proxy_no = "DIRECT";
//we can keep adding all the url here for which we do not want proxy
if (shExpMatch(url, "*.MyWebsite.com*")) { return use_proxy_no; }
// Proxy anything else
return use_proxy_yes;
} This method will be saved as 'proxy.pac' file.
From C# code i have to parse the above 'proxy.pac' file and get the proxy value that it returns based some condition specified in above method.
Please someone help me know how i can achieve the above requirement. Thanks in advance.
Chetan RajakumarHi,
HTTP Connection created in ECC is used for retrieving the SWC components of IR....but it cannot be used by PI for psoting the data to Proxy...
so in this need to provide the needed details at XI adapter level ...
chk the below blog which can give u an idea...
/people/siva.maranani/blog/2005/04/03/abap-server-proxies
Also for the above error check below threads
SLD_NO_OWN_BS
error: SLD_NO_OWN_BS, proxy scenario
HTH
Rajesh
Edited by: Rajesh on Apr 15, 2010 12:04 PM -
Get Recordcount and Column names
Hi,
Can any one help me out a way to get the recordcount for an sql query executed and the number of columns and there names that are returned by the query.
The same way we do in ASP/VB.
like rs.fields.name
Hope so somebody will help me out.
Thanks,
RajiHi,
Below is the sample code that i am using this code works fine.
I want to find the recordcount and the columnnames.
I have jdbc driver 1.0 how can i update to 2.0?
Can any body help me out as how to get the recordcount and column names?
I would appreciate if you can add the code to the following code below.
I am calling a beanDBConnect(input sql query;output recordset).
Help urgently needed as early as possible.
Thanks,
Reji
<HTML>
<HEAD>
<TITLE>
JSP/BEAN/JDBC Test
</TITLE>
</HEAD>
<BODY>
<%@ page import="java.sql.*" %>
<%@ page import="java.io.*" %>
<%@ page import="java.util.*" %>
<%
ResultSet rs;
String sSql = "SELECT * from employee";
jspproject.DBConnect oConnectDB = new jspproject.DBConnect();
oConnectDB.setsSql(sSql);
oConnectDB.setaResultSet();
rs = oConnectDB.getaResultSet();
while (rs.next())
out.println(rs.getObject("usertypeid").toString()+"<br>");
out.println(rs.getObject("description").toString()+"<br>");
rs.close();
%>
</BODY>
</HTML> -
Good day,
I searched through the forum and cant find anything.
I have around 300 published reports on SSRS and we are busy migrating to a new system.
They have already setup their tables on the new system and I need to provide them with a list of table names and column names that are being used currently to generate the 300 reports on SSRS.
We use various tables and databases to generate these reports, and will take me forever to go through each query to get this info.
Is it at all possible to write a query in SQL 2008 that will give me all the table names and columns being used?
Your assistance is greatly appreciated.
I thank you.
Andre.There's no straightforward method for that I guess. There are couple of things you can use to get these details
1. query the ReportServer.dbo.Catalog table
for getting details
you may use script below for that
http://gallery.technet.microsoft.com/scriptcenter/42440a6b-c5b1-4acc-9632-d608d1c40a5c
2. Another method is to run the reports and run sql profiler trace on background to retrieve queries used.
But in some of these cases the report might be using a procedure and you will get only procedure. Then its upto you to get the other details from procedure like tables used, columns etc
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
iam not able to insert data into datagrid corresponding to the column names..as iam inserting both data and column names programatically..ie iam not able to co relate the data with the column names.plzzz help me asap
A DataGrid is row-based rather than cell-based with each row
corresponding to an item in an underlying collection (specified in the
dataProvider property). In order to add data to a DataGrid you
manipulate the underlying collection, rather than the grid directly.
Based on the limited description of your problem I would imagine you
would need to create dynamic objects with property names that correspond
to the dataFields of your dynamically created datagrid columns.
So if you had created columns with dataFields "alpha", "beta" and
"gamma" on your datagrid, you could create an item in your grid by
adding the following object to your dataProvider:
var gridItem : Object = new Object();
gridItem.alpha = "alphaValue";
gridItem.beta = "betaValue";
gridItem.gamma = "gammaValue"; -
Check the table and column name in R12 web screen
Hello Friends
Please any body can tell me how can I find out the table name and column name in web based forms like supplier, customer in R12. In 11i I can find out the table name and column name from help menu by record history and diagnostic -> examine menu.
Thansk
MakshudHi,
Please see (Note: 741366.1 - How to get Supplier table information? How to get About this Page link in OA page in R12).
Thanks,
Hussein -
CS3 - How can I preserve Links and Hyperlinks in my INDB?
I am still pretty new to ID, so please speak slowly :)
My problem - I create an INDB that consists of several indd chapters. The chapters include numerous Links (to PNG & PSD images) and Hyperlinks both to Text anchors to other chapters within the INDB, as well as to URLs. I have all items saved on my local HD. Once complete, I do "Package for Print", check the Preflight report to make sure all is OK (it is) and then save the new INDB folder in a new location on my local HD. This all seems to work just fine, BUT if I move this packaged INDB folder (such as to a backup drive, or give to another worker that copies it to their HD), upon opening the INDB file, some links and Hyperlinks are broken.
It seems that these broken Links and Hyperlinks are still pointing to the original locations on my HD. But obviously not all are, since most links/hyperlinks DO work fine. The Hyperlinks to Text anchors within other indd chapters seem to typically break. Is there a way to force these to reference the packaged assets within the INDB folder? Seems ID would be smart enough to look there itself!
Also, I was creating some Hyperlinks as "cross referenced" - that is, I created a URL Hyperlink Destination in Chapter 1 indd and then created Hyperlinks pointing to it from other chapter indd in the book. I have learned that these ALWAYS break in the above scenario, so I started creating the URL destination within the same chapter indd and pointing to it there rather than across chapters. But this is just more work to keep re-creating the same URL destination in every indd!
I'll keep running into these problems since I need to share my finished INDB with other CS3 users. I also would like to be able to do a Save As of the INDB when creating a revised, newer version, but I see this also results in the new INDB links/hyperlinks still pointing to the original INDB's assets! Any way to make the Save As update the Links/Hyperlinks in the new INDB?
Thanks greatly for any insight. I can find no help in the Help on these issues!The title of the post is this
How can I preserve row and column addresses on multiple cells at once in Numbers?
I restated the Question as follows
Can "Preserve Row" an / or "Preserve Column" be set on multiple cells at the same time.
In both cases it is not asked if multiple cells can be set to....
That is a given.
Step back a second... It is like selecting multiple cells and setting the text color of the currently selected cells to red. This can be done. More than one cell at a time modified because they are currently selected.
Whats is being asked is: if more than one cell is selected at the same time can the settings "Preserve Row" an / or "Preserve Column" be applied. No table I put up will help with that question.
YES or NO
If YES how? -
Query to find out the table name and column name..
Hi Experts,
I have an Oracle DB in which has more than 50 tables and 100,000 records. I want to get the record which contains *"ITxtVarValue references a non existing text"* the text.
Is there any query there to find out the table name and column name of this particular record where it reside?
Please help. Any help will be rewarded.
Thanks,
GUsing this forum's search function, I found a thread that should give you an idea: How to find out a tablename
C. -
Restriction for tag name and column name
It seems that the XML tag name has to be the same as the
corresponging column name when using xmlgen.insertXML. Is there
any plan to relax this restriction?
nullYes, tag names have to be the same as the corresponding column
names. That is the how we can figure out which tag/element
should be loaded into which column. This seems to be the simples
and the cleanest way of mapping tags to columns. Nevertheless, we
are open to suggestions.
Also, keep in mind that you can use XSLT to do all sorts of
transformation (including tag name transformations) to your XML
document, before inserting it into the database. This might
solve your problem.
B Lou (guest) wrote:
: It seems that the XML tag name has to be the same as the
: corresponging column name when using xmlgen.insertXML. Is there
: any plan to relax this restriction?
Oracle Technology Network
http://technet.oracle.com
null
Maybe you are looking for
-
Can you share photos on i-photo between machines that use the same network or even between different accounts on the same machine? I know you can share music on i-tunes but can you do the same on i-photo? Thanks for your help.
-
I downloaded and installed Thunderbird then used the import command to import my contact list. It did not import anything. I tried to import everything, again it imported nothing. I uninstalled TB and re-installed it. This time I tried to import ever
-
Which Intel Mac for Music Recording, Please?
Hi-- I'm brand new here. I'm a music professional who is in the middle of switching my recording setup toan Intel Mac-based studio, running either Logic Pro or Digital Performer (once it's ready for Intel Macs, that is). I've got an indie filmscoring
-
I facing problem with my itunes ...my itunes not syn with iphone apps
i have downloaded apps and games in my iphones 4s ..but that apps and games are not copying to my itunes when i have connected my iphone my pc..i have authorized my computer then also i have facing the problem
-
I am trying to purchase a refurbished iPod Touch 5
I am trying to purchase a refurbished iPod on the online Apple Store and I can't figure out how to have it shipped to an Apple retail store. It says that it is available to be delivered to a store so why can't I even place my order?