How to get Database Vendor Name or Database Type...
Hello,
Is it possible to get the vendor or database from jdbc connection?
Or maybe from the loaded Driver Class...
The classpath and the jdbcurl seems not to be the right way
Greetings & Thanks
Peter
void printDBInfo(Connection con) {
try {
DatabaseMetaData conMD = con.getMetaData();
System.out.println("Driver Name: " + conMD.getDriverName());
System.out.println("Driver Version: " + conMD.getDriverVersion());
System.out.println("Database Name: " + conMD.getDatabaseProductName());
System.out.println("Database Version: " + conMD.getDatabaseMajorVersion());
} catch (Exception ex) {
ex.printStackTrace();
}
Similar Messages
-
How to get mobile model name for different types mobile devices
Hi,
I have checked few thread in this forum about getting mobile model name at server. So far, i noticed the mobile name is set manually in the midlet as user-agent .
HttpConnection connection = null; connection = (HttpConnection)Connector.open(url); connection.setRequestMethod(HttpConnection.POST); connection.setRequestProperty("User-Agent","Nokia7110 Profile/MIDP-1.0 Configuration/CLDC-1.0");
i retrieve the header information from servlet like below :-
String userAgent = request.getHeader("User-Agent");
How to get mobile model name for different model devices , not by manually adding the model name in midlet?
Thanks in advance :-)Hi,
In J2ME there is no method to get the model number from the device. how ever you can use the APIs provided by the device manufacturer if available. But still the APIs will not work with devices from other manufacturer or sometimes it will not work with the devices of the same manufacturer if the API is not supported. so it is better to send the device model name through the header. -
How to get the VENDOR NAME in the report s-ME80FN,MB51
Dear friends,
In many sap standard reports we are getting the vendor no. or material no. etc., What to do if we want vendor name in the reports ME80FN AND MB51?
bye
TSHi Guys,
Go for enhancement of RM07DOCS......
add new variable as shown below,
DATA: BEGIN OF list OCCURS 0.
INCLUDE STRUCTURE itab.
DATA: maktx LIKE makt-maktx,
name1 LIKE t001w-name1,
btext LIKE t156t-btext,
pspid LIKE prps-posid,
vornr TYPE vornr, "215929
color_line(03) TYPE c, "n555
color TYPE slis_t_specialcol_alv,
*{ INSERT IDEK900044 1
vd_name1 type name1_gp,
Also add the variable if required.
Then go for Deatil_list and add the further coding.....
Problem get resolved...... -
How to get database connection in applet
Hi,
I am trying to prepare database connection in applet. After preparing connection with database it'll read same values from table.
At the time of development it works fine. I have used esclipse IDE for coding and testing.
But when I try to call that applet from browser. It is giving ClassNotFound exception.
Does anybody know How to get database connection in applet ?
Please help me if anybody know solution for this.
Thanks,
RajeshAs per my knowledge is conserned
1 u can get the database connection in a jsp page and u send the result set as param to the applet and u can use retrieved values as if they were of the same applet if u r interested i can send the db connetion coding for jsp my id [email protected] -
How to get a vendor list for a event type in training and events
Hi
i need to get a vendor list for the event type.
is there any function module to get the vendor name and vendor no if event type is passed.
kindly help me...
With regards
Rusidar.Dear Pushpa,
Transaction Code :SHD0 is working fine.
Please accept my sincere thanks for your sharing your Knowledge.
I am able to fulfill my
Regarding the enhancement, I have not tried.
Once I will complete, I will award the fulll marks to you.
With Best Regards,
Raghu Sharma -
How to get a computer name in teststand step ?
how to get a computer name in teststand step ?
Hi,
Use an ActiveX Automation Adapter with the following settings,
ActiveX Reference : RunState.Engine
Automation Server: TestStand API (depends on your version)
Object Class: Engine (IEngine)
Action: Get Property
Property: ComputerName
Then set your Parameters: to pickup the String ComputerName.
Regards
Ray Farmer
Regards
Ray Farmer -
How is it posible to get the File name, size and type from a File out the H
How is it posible to get the File name, size and type from a File out the HttpServletRequest. I want to upload a File from a client and save it on a server with the client name. I want to conrole before saving the name, type and size of the file.How is it posible to get the File name, size and type from a File out the HttpServletRequest.
form JSP
<form name="form" method="post" action="procesuploading.jsp" ENCTYPE="multipart/form-data">
File: <input type="file" name="filename"/
Path: <input type="text" readonly="" name="path" value="c:"/
Saveas: <input type="text" name="saveas"/>
<input name="submit" type="submit" value="Upload" />
</form>
proces JSP
<%@ page language="java" %>
<%@ page import="java.util.*" %>
<%@ page import="FileUploadBean" %>
<jsp:useBean id="TheBean" scope="page" class="FileUploadBean" />
<%
TheBean.doUpload(request);
%>
BEAN
import java.io.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.ServletInputStream;
public class FileUploadBean {
public void doUpload(HttpServletRequest request) throws IOException
String melding = "";
String filename = request.getParameter("saveas");
String path = request.getParameter("path");
PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter("test.java")));
ServletInputStream in = request.getInputStream();
int i = in.read();
System.out.println("filename:"+filename);
System.out.println("path:"+path);
while (i != -1)
pw.print((char) i);
i = in.read();
pw.close();
}Thanks it works great.
Here an excample from my code
import org.apache.commons.fileupload.*;
public class FileUploadBean extends Object implements java.io.Serializable{
String foutmelding = "geen";
String path;
String filename;
public boolean doUpload(HttpServletRequest request) throws IOException
try
// Create a new file upload handler
FileUpload upload = new FileUpload();
// Set upload parameters
upload.setSizeMax(100000);
upload.setSizeThreshold(100000000);
upload.setRepositoryPath("/");
// Parse the request
List items = upload.parseRequest(request);
// Process the uploaded fields
Iterator iter = items.iterator();
while (iter.hasNext())
FileItem item = (FileItem) iter.next();
if (item.isFormField())
String stringitem = item.getString();
else
String filename = "";
int temp = item.getName().lastIndexOf("\\");
filename = item.getName().substring(temp,item.getName().length());
File bestand = new File(path+filename);
if(item.getSize() > SizeMax && SizeMax != -1){foutmelding = "bestand is te groot.";return false;}
if(bestand.exists()){foutmelding ="bestand bestaat al";return false;}
FileOutputStream fOut = new FileOutputStream(bestand);
BufferedOutputStream bOut = new BufferedOutputStream(fOut);
int bytesRead =0;
byte[] data = item.get();
bOut.write(data, 0 , data.length);
bOut.close();
catch(Exception e)
System.out.println("er is een foutontstaan bij het opslaan de een bestand "+e);
foutmelding = "Bestand opsturen is fout gegaan";
return true;
} -
How to get the Text name to pass in the parameter header in save_text
Hi,
I am trying to change the long text of operation for historical order by using the flat file.I am using the save_text to do this.I would like to know how to get the text name in order to pass the parameter header in save_text.
I went to the tcode iw62 to get the header information of the long text.300100000009200000001
i would like to know what this 1000000092 indicates and where is this value updated in the table so that i can link it thru the order no to get the link and pass it in the text_name.
can anyone help me out?
krishnanHi,
Your query is.
I went to the tcode iw62 to get the header information of the long text.300100000009200000001
i would like to know what this 1000000092 indicates
In above number
300 - Client
1000000092 - AUFPL - Routing number of operations in the order (You can fetch this from table HIVG)
00000001 - APLZL - General counter for order ( You can fetch this from table HIVG).
BR,
Vijay -
Dear Expert,
I have one requirement like to read the selected workset name in portal by the current user.I have read two documents regarding how to retrieve the PCD contents (iViews, Pages, Worksets and Roles) and its properties like Created by, Changed by, Last changed by and others using PCD API.
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/6112ecb7-0a01-0010-ef90-941c70c9e401?overridelayout=true
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/508baf88-9335-2d10-efa6-c6ad61e5fc4b?quicklink=index&overridelayout=true
But I am not able to understand how to get the specific name of the workset which is currently selected by the user.Can you please help me.
I am using portal 7.0.
Thanks & Regards,
PatralekhaHi Expert,
I found that we can use Interface INavigationHelperService to read Portal Role selected by user at runtime from http://scn.sap.com/thread/52194
But this class is available in SAP NetWeaver 7.30 Enterprise Portal .
But in SAP NetWeaver 7.0 Enterprise Portal that interface is not available.
INavigationService is available there.
But didn't get any proper discussion on this interface for the same requirement.
Can you please help me.
Thanks & Regards,
Patralekha -
How to get carrier company name on windows phone 8.1?
how to get carrier company name on windows phone 8.1?
excuse me, i referrer the link http://stackoverflow.com/questions/26973111/get-carrier-name-cellular-mobile-operator-name-using-windows-phone-8-1 to
modify my universal app.
but i always get 0 count from the GetNetworkNames() method.
if my sim card is for 3G, but i setting 4G in highest connection speed. i got the "the pipe is being closed".
how can i solve the problem? thank you. -
How to get the VARIANT name in the program
Hi Guys,
Can somebody tell me how to get the VARIANT name in a program.
I have to perform some code with specific variant only. So I want to check in program which variant has been used to call the program.
Thanks,Hi,
Variants are stored in table VARI and VARID.
You can use RS_ALL_VARIANTS_4_1_REPORT to get all the variants for a report program.
please check out the link below it will be helpful to you
Re: Programs for a transaction variant
Hope this helps.
ashish -
How to get the role name in which query is published ?
Hi Experts,
Is there any table where i can get the name of the role in which a particular query is published. I know that if i have a role , i can check in pfcg giving that role name and in menu tab i can see all the queries published under that role. But if i know query but not role how to get the role name . Is there any table or functon modules or programs to get the information.
Thanks & Regards
Vamsi KiranCheck this table
AGR_HIER -
How to get the field name of an internal table during runtime?
How to get the field name of an internal table during runtime?
Hi Sudhir,
Declare and Use Get Cursor Field in Your Prm to get the field Name of the Intenal Table
Example Code:
<b> DATA: v_field(60). " Insert this code.
GET CURSOR FIELD v_field. " Insert this code.</b>
<b>CHECK v_field = 'ITAB-KUNNR'. " Insert this code. (or)
Write: v_field.</b>
Regards,
Ramganesan K. -
How to get the column names of the table into the Dashboard prompt
how to get the column names of the table into the Dashboard prompt
Thanks & Regards
Kishore PHey john,
My requirement is as follows
I have created a Rank for Total sales by Region wise i.e RANK(SUM(Dollars By Region)) in a pivot table.
My pivot table looks like this
COLUMN SELECTOR: TOTAL US , REGION , DISTRICT , MARKET
---------------------------------------------------- JAN 2009 FEB 2009 MAR 2009
RANK REGION DOLLARS DOLLARS DOLLARS DOLLARS
1 CENTRAL 10 20 30 40
2 SOUTHERN 10 30 30 70
3 EASTERN 20 20 20 60
4 WESTERN 10 20 30 40
When i select the District in column selector
Report has to display rank based on Total Sales by District. i.e
------------------------------------------------- JAN 2009 FEB 2009 MAR 2009
RANK DISTRICT DOLLARS DOLLARS DOLLARS DOLLARS
for this i need to change the fx of rank i.e RANK(SUM(Dollars By Region)) to RANK(SUM(Dollars By District)) and fx of Region i.e Markets.Region to Markets.District dynamically.
so , i need to capture column name of the value selected from the column selector and dynamically i need to update the fx 0f RANK & fx of region.
do you have any solution for this?
http://rapidshare.com/files/402337112/Presentation1.jpg.html
Thanks & Regards
Edited by: Kishore P on Jun 24, 2010 7:24 PM
Edited by: Kishore P on Jun 24, 2010 7:28 PM -
How to get the function name/ID of the current page
HI,
I searched the forum and google, but it is not clear on how to get the function name of the current page.
I have 4 functions in my self service A ,B,C,D (seeded page links ) they all have to go to a page called hhhPG. Based on which function user is clicks I have to show the data in hhhPG.
so my question is how to get the function name ? I mean I need to know if user click on link A , B, C or D link and came to this page.
I found below in one forum and also there is getfunctionID in pageContext , but I do not know what to pass to getfunctionid("???") to get value.
FunctionSecurity funcSecurity = pageContext.getFunctionSecurity();
Or is there a better way of know where user is coming from ? like geturl....
Please help, I need this ASAP.
Thank you.Use below to find out how the user came into the page
FunctionSecurity funcSecurity = pageContext.getFunctionSecurity();
boolean isFunc1 = funcSecurity.testFunction(funcSecurity.getFunction("YOUR_FUNCTION_SHORT_NAME1"));
boolean isFunc2 = funcSecurity.testFunction(funcSecurity.getFunction("YOUR_FUNCTION_SHORT_NAME2"));
boolean isFunc3 = funcSecurity.testFunction(funcSecurity.getFunction("YOUR_FUNCTION_SHORT_NAME3"));
boolean isFunc4 = funcSecurity.testFunction(funcSecurity.getFunction("YOUR_FUNCTION_SHORT_NAME4"));
So one of them will be true based on the function the user came in.
Write your logic based on these flags.
Regards,
Peddi. -
How to get the Vendor Sub Range details
Hi
Can you please let me know, how to get the vendor sub range from SAP tables?
Thanks
RKHi,
For Vendor Sub-Range table, please refer to Table WYT1.
Regards,
Nazrin
Maybe you are looking for
-
FM for converting the Numbers into Ukraine Language
Hi All, Thank You very much in advance.. I have a requirement where I need to convert the Numbers to Ukraine Words... I have used the FM SPELL_AMOUNT for which I have passed the Language Parameter as 'U' (U refers Ukraine) but I am getting the Error
-
EJB-Archive for getting Data from the DB
Hello, I want to get data from the Database. I created a EJB-Project with an Entity Bean and a Session Bean. The jar-Archive that I generated is corrupt. Is that normal? Can you provide me with information on database acces? In ABAP it would be a pie
-
How to make a text field required at run time when the user clicks the checkbox ?
I got a form where , there are several checkboxes and text fields associated with that checkboxes.If the use clicks on the check box then the associated text fields should become required.I have tried the change event and the click event for the chec
-
Where can I find "iMovie splash" video?
Following a catastrophic kernel panic and subsequent erase and install, I seem to have lost that little QuickTime video called "iMovie splash". Does anyone know where I can download it again? It lasts about 7 seconds and consists of a group of childr
-
I can't open iTunes or appp store!!!!
I haven't been able to open iTunes or app store for two days! Tried suggested solutions nothing works!!!