How to get the Database Driver list

Hi... I want to know that particular database driver is registered or not in windows.. how can i get this info.
And I want to get the list of all the database drivers registered in windows..
Can anybody help me..

dcminter wrote:
Well, seeing as how none of them are registered, until your program registers them, simply keep a list.That's not actually true. If the JAR is in the classpath then a JDBC4 driver will use the service provider hooks to register itself.
When first loaded. Which is unlikely to happen until you explicitly load it.
Being on the classpath doesn't mean the JVM will actually do anything with a class. Either an application will have to initiate some action or it will have to be initiated by the manifest of the jar (and I'm not sure that will actually do anything until a class from that jar is actually required to be loaded).

Similar Messages

  • How to get the Database type from weblogic Db connection

    I want to use database version control in my application . that means different database type use different Sql Statement. Such as in weblogic7.0 if I create SqlServer JDBC pool then I will use some special Sqlserver sql Statement . such as some join statement. If I create Oralce JDBC pool then I have to use different Sql statement . because these two database support different Sql statement.
    What my question is how to get the database type from the connection.

    For a normal jdbc driver you can use
    Connection.getMetaData()
    To get the meta data, in particular the getDatabase...() methods.
    That might or might not work.
    However, at the very least in the server you have access to the weblogic properties so you can parse the pool property to figure it out.

  • How to get the database owner name in T-SQL script

    Hello, All!
    I want to get the database ower name (in format DOMAIN\user) by through T-SQL script. But SELECT * FROM sys.databases returns only owner_sid.
    Please show me a way - how to get the owner name, if you have only owner_sid. Or, may be, somebody know another way ?
    Andy Mishechkin

    SELECT suser_sname( owner_sid ), * FROM sys.databases
    http://www.t-sql.ru

  • How can I getting the system drives list?

    Hello again. I'd like to create a dropdown list with the computer's drives, so you can easily change from one to another without using a "selectDialog" File object. Is it possible?
    Thanks beforehand :)

    Its something I havn't tried.
    On a PC you might be able to use VB/VBS to get the file list, put them in an env so that you can read them from Javascript.
    Here is a bit of code found on the net.
    Set FileSystemObject = CreateObject("Scripting.FileSystemObject")
    Set Drives = FileSystemObject.Drives
    For Each DiskDrive in Drives
    DriveLetter = DiskDrive.DriveLetter
    DriveType = DiskDrive.DriveType
    Select Case DriveType
    Case "0" DriveType = "Unknown type of drive"
    Case "1" DriveType = "Removable drive"
    Case "2" DriveType = "Fixed drive"
    Case "3" DriveType = "Network drive"
    Case "4" DriveType = "CD-ROM drive"
    Case "5" DriveType = "RAM Disk"
    End Select
    WScript.Echo "Drive " & DriveLetter & " is a " & DriveType
    Next
    Set Drives = nothing
    Set FileSystemObject = nothing

  • URGENT: how to get the database error message into application?

    Hi, pls give some idea:
    For example, the database is MS Access. When insertion failed, the getMessage() method of SQLException will print "General error", while the log file created by ODBC will be "[MICROSOFT][ODBC DRIVER]column ID no found in student table"(...just a example).
    So, how to get this message in our application?

    instead of using the getMessage method, have you tried something like this:
             try {
             } catch (Throwable t1) {
                System.out.println(t1.toString());
             }If that still doesn't work, you can always redirect the log entries into a textarea but then everything that appears in the log file will be redirected!
    ;o)
    V.V.

  • How to determine the database driver a report uses?

    Hello experts.  I'm using Crystal Report XI R2 and C# (.net 4.0 runtime).
    For a given report, I'd like programmatically determine what database driver(s) a report and it's sub-reports use.  The nice thing is that I don't want to change it.
    When I refer to database drivers I'm talking about the choices one gets when starting a new report in the Crystal UI.  Something like the following:
    Access/Excel (DAO)
    ADO.NET (XML)
    Database Files
    ODBC (RDO)
    OLE DB (ADO)
    I've looked into the developers help file that came with Crystal XI R2, crsdk_net_doc.chm, and can't find any references that would help.  Maybe it's what I'm searching on.
    My goal is for a given directory produce a list of rpt files that use OLE DB and a MS-SQL Server provider.
    Thanks for looking at my question, any assistance is appreciated.
    Mike

    Also note since you are using 4.0 framework you must also be using VS 2010.
    CR for VS 2010 is the only version supported with 4.0 framework.
    See this page to download it: http://www.sdn.sap.com/irj/boc/crystalreports-dotnet
    Or go back to VS 2008.
    Code would look something like this:
         public class frmMain : System.Windows.Forms.Form
            CrystalDecisions.CrystalReports.Engine.ReportDocument rpt = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
            CrystalDecisions.ReportAppServer.ClientDoc.ISCDReportClientDocument rptClientDoc;
    New subrepoutine...
                ISCDReportClientDocument rcd;
                rcd = rptClientDoc;
                CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo oldConninfo;
                CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo newConnInfo = new CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo();
                CrystalDecisions.ReportAppServer.DataDefModel.Table oldTbl;
                CrystalDecisions.ReportAppServer.DataDefModel.CommandTable newTbl = new CommandTable();
                oldTbl = (CrystalDecisions.ReportAppServer.DataDefModel.Table)rcd.Database.Tables[0];
                oldConninfo = oldTbl.ConnectionInfo.Clone(true);
    Thank you
    Don

  • How to get the Database table behind condition records

    Hello All
    In transaction VK13, after giving condition type, I can select sales document.
    For a given Sales Document number, there are several conditions.
    How can i extract all the conditions for a given sales document?
    I am coding a report for this. In which database table can i get the condition between sales document number & different conditions attached to it?
    On the screen, i can see that the fields are from the structure KOMG. What is the corresponding table?
    Thanks
    Chandra Sekhar

    Hi,
    corersponding tables will be konp , a771,a511,a564
    here i am providing you sample query related to it
    { -Get the Territory list price YPR0
        SELECT vkorgau
               zzland1_ag
               zzmatgrade
               a511~kfrst
               datbi
               datab
               kbetr
          INTO TABLE it_list1
          FROM a511
          JOIN konp
            ON a511knumh = konpknumh
         WHERE a511~kappl = 'V'
           AND a511~kschl = 'YPR0'
           AND vkorgau = '5000'
           AND zzland1_ag = v_land1
           AND loevm_ko <> 'X'.}
    Thanks & Regards,
    Sateesh.
    Edited by: sateesh kumar on Nov 12, 2009 12:59 PM

  • How to get the table/tree/list cell underneath the mouse

    I feel like I must be missing something. How can I find out the tree cell underneath the mouse cursor?
    I am implementing drag and drop from a table to a tree. I need to know which tree cell the user dropped the item on. I can get the drop coordinates (in pixels, I assume) from the drag event, but there doesn't seem to be a way to convert that into the particular cell index. This same question applies to getting the list and table cell under at particular coordinates.
    If there isn't an API for this, has anyone found a reliable workaround (dividing Y by cell height, etc.)
    Thanks,
    Josh

    You need to put event handlers for the D&D events on the Cells that are being created (so you will need to set a custom cell factory). For example, every cell is a Node, and these support properties like 'onDragDroppedProperty', and 'onDragExitedProperty'.
    When you add event handlers to these, you should be notified of items being dragged onto specific Cells of the Tree. A Cell then can be matched with a particular item in the Tree by reading its TreeItem property.
    Also read the documentation for TreeItem. There is a bit there that says:
    "It is important to note however that a TreeItem is not a Node, which means that only the event types defined in TreeItem will be delivered. To listen to general events (for example mouse interactions), it is necessary to add the necessary listeners to the cells contained within the TreeView (by providing a cell factory)."
    Which gives a clear hint at the end that for other interactions, you should add listeners to the Cells.
    Good luck!

  • How to get the database value without submitting the jsp page

    Hi,
    I have a form that has many fields (textbox/listbox). when user enter/change a value in the first textbox, I need to pass this value to the database to check whether it exist and get the other values to be displayed to other fields in that form (i cannot get the javascript value to be pass to jsp without reload/refresh/submit. But, I need to get the user entered value, so I thought of hidden popup, iframe, etc but not sure how I could apply and which best suit this case). If I submit the page then I can easily get the value thru 'request.getParameter("fieldname") but cannot use this because I cannot submit the page.
    Pls help and possible provide me with the sample coding
    Thanks

    The best way for you is surely AJAX. But there is another way to stay compatible with older browsers:
    Since the default method a browser supposed to get data is refresh, there is nothing unnatural in it. Browsers are optimized to refreshes, like cached images, etc..
    So for these step-by-step things, you need to roll forward your data from page to page, and make the page to respond according the data it actually have. This can be easily achived with type="hidden" input fields in a form: the user will send you back all the data. Optionally you may show him the data you already have as visible text too.
    A more generalised way to "pull" the data: you make a whole page you include every time you need an additional data. This page will receive 2 parameters from where you've included it. This 2 parameters are each indexed arrays with the datas you have to pull in (here the default value), and you need to push forward. Optionally there is a 3rd parameter, the url it have to return (as the form's action property).
    And for them who now say that it would me more culture way to store this data in the session: Beware! Common mistake: Sessions are to store data about the user itself, not the datas for the next page! You never know what will be the next page! The user click some backward button and refresh button, and depending on your script, it may go stupid! Ok, not all the codes, but I've seen some. It's ok to store a sent file (fx. image) on the server, but always think the evil refresh and back buttons!

  • How to get the amazon book list design with the RowRepeater

    Hello,
    at the moment I am programming a small book management application. After the fight with the row repeater (that at least was a bug in the rowrepeater) I would like to have a desing like the amazon-list:
    http://www.amazon.com/s/ref=nb_ss?url=search-alias%3Dstripbooks&field-keywords=sap
    Could someone tell me how I can achive this?
    - How can I use the Image with the url to the image.
    - How can I get the title as link to a view that shows the details of the book (is it LinkToAction? if yes, how can I pass a parameter?)
    - How can I get the design with 2 cols and for the text new lines?
    Thank you very much in advance and have a nice week,
      Vanessa

    How can I use the Image with the url to the image.
    With image you cannot have URL. You have use Image UI element and you can place an linktourl element below the image.
    How can I get the title as link to a view that shows the details of the book
    For links, you are right . You have to use LinkToAction UI element. On the Action of Link , you can get the value selected by reading the attribute binded to that link.
    How can I get the design with 2 cols and for the text new lines
    For columns , you have to use Table UI element.
    For designing you view according to the requirements , you can use various UI elements :
    Tray , Group , Transparent containers. These would help you in making specific containers or grouping particular set of elements together.

  • How to get the iChat Buddy List to automatically appear on the Desktop

    On my friends computer iChat is set to launch whenever he logs into his account, but the Buddy List does not appear on his Desktop. So when I see him online there is no green video camera mark next to his name.
    If I want to do a screen share with him, I have to ask him to go to the iChat icon towards the right side of the Menubar (the round 'speech ballon') and click on Show AIM Buddy List at the bottom. Once he has the Buddy List on his Desktop, I can screen share with him.
    Surely there must be a way for the Buddy List to always appear on the Desktop when logging into his computer... Can anyone help out?

    Hi,
    Interesting one.
    If I were telling you how to create this it would be like this:-
    1) Go to System Preferences > Accounts > Your account and enter iChat in the Login items. (Makes iChat launch at Computer Start Up)
    2) to Hide the Window (Buddy List(s) ) at Start Up click the Red Button to close the Window/Buddy List before Quitting.
    This will cause the next Start Up to not show th Buddy List.
    How you make the Buddy List appear after that depends on how you bring it in to View.
    NOTES:
    Some Windows in iChat from Buddy List to the Preferences to th Actual Chat Windows will appear in the places you left them for the most part.
    The Exceptions are Incoming Invites.
    This means the Buddy List will be were you left it, your Outgoing Invite/Preview whilst waiting for Connection will always be where the last outgoing Video Chat window was.
    Using the Red Button on a Open Chat Window will end the Chat (All types).
    However doing it to a Buddy List only Hides it.
    In addition to this using the Item (or the Keystrokes) from the Window Menu of iChat for a Buddy list when it is On view will Hide it (or Bring it back if Hidden)
    The Show AIM option in the Menu Bar icon's drop down is a two edge thing as it shows All Buddies (Available ones) from all AIM Buddy lists if you have more than one (Apple names are also AIM Names in this case).
    Does he want to change this Behaviour ?
    He would be better off using the iChat Window menu (or Keystrokes) after he has clicked the icon in the Dock to bring the app to the Front so he can access the Menu bar with ichat in it.
    He could also click and Hold the icon for iChat in the DOCK and select the Account Name there. This, if I remember correctly, will have the same effect as presenting the Buddy List from the Menu Bar icon (it will be hidden at Next Start Up)
    9:58 PM Saturday; November 13, 2010
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"

  • How to get the database size of several system

    Hi
    We've got a lot of database system on our landscape. I want to make a simple report to get the size the all our database on a weekly base.
    I try to get a RZ20 value on it without succes.
    Do you know a sql request that i could launch on all my database to get this information ? i did'nt find any V$^view with this information.
    thanks for your help
    florent

    "The database size" can be
    - the total size
    - the filled size
    - the filled size without undo/temp
    You can use DBACOCKPIT to centrally manage multiple instance and check the sizes.
    Markus

  • How to get the Database Type quan in my internal table?

    Hi, I have the following problem, I have a Database Table with a column foo (QUAN with length 15 and 3 dec). Now I want to read this field into a Internal Table and the corrospoding field is:
    foo(19) TYPE C,
    But this is not working I'm getting the dump:
    DBIF_RSQL_INVALID_RSQL
    CX_SY_OPEN_SQL_DB
    What is the correct abap type in my structure to put this QUAN in my internal table?

    Hi Michael,
         when you know your data base field name then u can define your variable f00 of your db field type like
         foo type <dbtabname>-<fieldname)  -----ex -- j_1iexcdtl-menge
         or define foo as packed no
         data : foo(19) type p decimals 3.
    Regards

  • How to get the Database size?

    Hai Friends,
    I have created a Z Table with 100 fields. i want to check the database size after uploading the data. How can i do this?. That is, after uploading the first entry i want to know the size and again i want to upload 5 more entries and to check the growth.
    Where can i see this?. i have checked in DB02 but even after data upload i didnt see the size. kindly explain me the process.
    Thanks..................

    Hi,
    In the Go to Menu then Check the Number of entries to track your current set of entries.
    For DB Size  check Technical Settings . Tab Logical Settings parameters the Data class and Size category can give you how much data the table can hold.
    Thanks,
    Anita

  • How to get the database table field names from program

    Hi,
    Can any one tell me,whether any function module is there which can get the table field name and its details ,when we pass database table name to it.
    Thanks in Advance
    <REMOVED BY MODERATOR>
    Regards
    Shibin
    Edited by: Alvaro Tejada Galindo on Feb 14, 2008 12:41 PM

    Hi,
    DD02L Table contains the SAP Tables.
    DD02T Table contains the SAP Table Texts.
    DD01L Table contains the Domains
    DD01T Table contains the Domain Texts.
    DD03L Table contains the Table Fields.
    DD03T Table contains the Table Field Texts. (Language Dependent)
    DD04L Table contains the Data Elements.
    DD04T Table contains the Data Element Texts.
    DD05s Table contains the Foreign Key Fields
    last words with L and T only. L->Database Fetch T-> Text
    For ur question use table DD03L or DD03T.
    Regards,
    Chandru

Maybe you are looking for

  • Streaming two or more flv videos at the same time

    Hi, I am working on a site that is intended to stream two or more flv simultaneously. The slightly different header clip should renew on entry to each page. When I publish the fla file it plays as intended. When I upload the swf file to the web only

  • IPhoto '09 will not open

    My iPhoto'09 program has stopped working, it no longer opens and has to be forced quit to stop it. I've tried to reinstall using the iLife '09 CD and got an error message from the newly installed iPhoto saying photos had been changed using a newer ve

  • Following Paragraph Style Always Reverts to 'Same'

    For my heading style, I set the Following Paragraph Style in the inspector to be 'body'. Then, next time I choose the heading style, the Following Paragraph Style has reverted to 'same'. This is really frustrating. Is this a known bug, or is there an

  • Any way to stop Update Retriever from downloading Microsoft Updates?

    We have roughly 20 different lenovo laptop types in our organization.  We would like to have update retriever download all updates for both windows xp and 7 for each laptop into the repository, except windows updates.  Since we use WSUS, we do not ne

  • Some of the data for same records is going on to the next page in excel??

    Hello, I designed a template in word with page setup orientation to Landscape, to get the Excel report output. Later when i preview the same in Excel with the Landscape page setup..the print preview is showing me with some of the data going out of th