How to remove database name from SQL query

We have an MS SQL server with several databases that are of the same schema but have different data.  We do this for testing different environments.  We are using Crystal reports for the first time and we are having trouble changing the database location in the designer.  If update the data source location to the same database server, but different database name, the data still comes from the original database used when creating the report.  We look at the SQL query and it contains the database name and does not change when updating the data source.  Therefore the data always comes from the database used when originally creating the report.
How can I remove the database name from the SQL query so the proper database is used when testing the report?

Hi C F
Please ensure you have followed the procedure mentioned below:
In Crystal Reports, there are two ways to set the location of the data source your report points to, depending on your connection type.
For ODBC and Native Connections:
1. On the 'Database' menu, click 'Set Datasource Location'.
2. In the 'Current Data Source' section, click the data source to be changed. You must click each individual table in the data source one by one. If the data source is a stored procedure you will not see individual tables.
NOTE     In Crystal Reports 10, XIR1, and XIR2, if you are mapping from a data source such as a stored procedure where the report designer can not determine which fields should be mapped automatically, you will see a 'Mapping' dialog box where you can manually map fields, as in the procedure cited above.
3. In the 'Replace with' section, click the data source you want the report to use.
4. Click 'Update'.
5. Close the 'Set Datasource Location' window.
The report now points to the new location.
For Native Connections Only:
1. On the 'Database' menu, click 'Set Datasource Location'.
2. In the 'Current Data Source' section, click 'Properties' to expand it and right-click 'Database Name: <path to database>'.
3. Click 'Edit' and then type the path to the
new data source location.
4. Close the 'Set Datasource Location' window.
The report now points to the new location.
Regards
Girish

Similar Messages

  • How to remove a name from the pop up screen when you type in a letter

    I stopped in the apple store today and stumped the genius bar !!!!!!
    I am so proud.
    I want to know how to remove e-mail address's that pop up when you hit a alpha key.
    These are address's that are NOT in my address book or anywhere on my computer.
    They would be a one time e-mail that I sent over the last 3 years or so.
    I do not retain old e-mails either which would trigger keeping the address alive.
    Thanks,
    Greg

    In Mail, you can also select a popped-up name that you don't want to retain, click the triangle that appears when you move your cursor to the area just after your name, and select "Remove from Previous Recipients List" from the dropdown menu. This choice will not appear if the name is in your Address Book.

  • How to remove "Version Name" from contact sheets

    When printing contact sheets, how do you remove the words"Version Name" from under each photo.
    I just want my image numbers to be there such as JJC_3795. As it appears now is reads, Version Name:
    JJC_3795.  I went to Presets then to File Names hoping this would fix it, but can't figure out how to make that change. Maybe it's not possible???
    Any help would be appreciated.

    I don't think it is possible. What I have done is print to PDF and then (in Acrobat Pro) covered the "version name" part with a blank text field, white background, and done the physical printing from Acrobat.

  • Getting file node name from SQL query

    Hello everyone,
    I have a concurrent request that requires the file node name as input. For example, when I login to oracle on our test instance , I use http://moon1.oando-plc.com:8000. For this concurrent program, the file node name is shown as moon1.oando-plc.com.
    I need to use this argument in a PL/SQL procedure I am writing and I don't want to use any hardcoding.
    Is there any way to get this data from an SQL statement.
    Thanks

    Hi,
    You can get it from ICX_PARAMETERS table (HOME_URL column). Orsearch the profile options values for "http" to get the login page URL (and/or server name) -- See (Note: 201945.1 - How to list E-Business Suite Profile Option values for all levels using SQLPlus).
    Regards,
    Hussein

  • How can I pass value from sql query to unix script

    I am new to oracle/unix.
    I want to write a simple script to find max date from a table and then pass date into a variable in a korn shell script.
    sql is select max(date) from table;
    how can I pass that value in unix shell as a variable. Thanks

    I use to code like this.
    Enjoy Scripting.
    cmd.sql
    select sysdate from dual;
    exit
    db.sh
    #! /usr/bin/ksh
    . ~oracle/.orapaths
    dbdate=$(sqlplus -S user/pwd@servicename @cmd.sql)
    echo $dbdate
    Run shell scripts
    ./db.sh
    SYSDATE --------- 19-JAN-07

  • How to transfer database tables from sql server 2000 to oracle 10g

    Hi,
    I have a database and tables in sql server 2000. I have to transfer those data to Oracle 10g. I have installed Oracle warehouse Builder ETL Tool. Using this how can i transfer data. Any help is vary helpful for me.
    Thanks in advance.

    you have to do it using ODBC HS.
    1. Configure ODBC connection through gateway.
    2. Create a initxxx.ora file with HS config.
    restart gateway listener services
    3. on target o/s add entries to your tnsnames.ora
    4. On your target o/s create a db link
    restart listener on target
    cheeck this out.Non-Oracle connection through HS issue
    Edited by: Darthvader-647181 on Jan 29, 2009 2:02 AM

  • Removing a row from SQL query results when there is a duplicate hostname

    I have a query created for a software usage report in SCCM. When there are multiple versions of the same software (Acrobat) installed on the same machine, I will receive duplicate results for the same machine. For example, it will come back with Acrobat
    9 and another Acrobat 10 for HOSTNAME1. However, only Acrobat 10 has a usage count. Is it possible to delete the row for Acrobat that has a software usage count of "0/null" if there is another Acrobat results showing up that actually has a usage
    count? Let me know if I need to clarify. Any suggestions would be appreciated.

    It is more complicated than doing just "Where usage count >0 and usage is not NULL"
    because I still want results that have a 0 usage count. I just don't want to have duplicate machines show up for the same software IF one of them returns a usage count of 0.
    SELECT DISTINCT
    abc.SECTOR
    ,abc.BA
    ,abc.SITE
    ,abc.HOSTNAME as 'Name0'
    ,rs.ResourceID
    ,CASE
    WHEN mf.OriginalFileName = 'dwrcc.exe' THEN 'DameWare'
    WHEN mf.OriginalFileName = 'matlab.exe' THEN 'MathWorks'
    WHEN mf.OriginalFileName IN ('encoder.exe','expressionweb.exe','exprwd.exe','mappoint.exe','winproj.exe','visio.exe','devenv.exe','VBExpress.exe','VCExpress.exe','VCSExpress.exe','VWDExpress.exe','excel.exe','groove.exe','infopath.exe','msaccess.exe','mspub.exe','onenote.exe','outlook.exe','powerpnt.exe','winword.exe','communicator.exe')
    THEN 'Microsoft'
    WHEN mf.OriginalFileName IN ('acrobat.exe','Acrobat Elements.exe','AfterFX.exe','Audition.Exe','Adobe Audition.Exe','AdobeCaptivate.exe','CFReportBuilder.exe','Coldfusion.Exe','Contribute.exe','director.exe','Projector.exe','dreamweaver.exe','Adobe
    Encore.exe','Adobe Encore Dvd.Exe','Encoredvd.Exe','Fireworks.exe','FlashBuilder4.exe','flash.exe','Flex Builder.exe','FlexBuilder.exe','Framemaker.Exe','framemaker+sgml.exe','illustrator.exe','HomeSite+.exe','homesite4.exe','homesite45.exe','Homesite5.exe','InDesign.exe','Lightroom.exe','Adobe
    OnLocation.exe','Pm65.Exe','Pm70.Exe','pm.exe','pm4.exe','pm5.exe','pm6.exe','photoshop.exe','Photosle.exe','Photoshopelementsorganizer.Exe','Photoshopelementseditor.Exe','photoshp.exe','Lightroom.exe','Adobe Premiere Elements.Exe','Adobe Premiere Elements
    8.0.Exe','Adobe Premiere Elements 10.Exe','Adobe Premiere Elements 9.Exe','Adobe Premiere Elements 7.0.exe','Premiere.Exe','Adobe Premiere Pro.Exe','Adobe-Pr-Vc.Exe','Robohelp.Exe','robodemo.exe','roboinfo.exe','Adobe Soundbooth CS5.exe','Adobe Soundbooth
    CS4.exe','Adobe Soundbooth CS3.exe','Adobe Media Encoder.exe','speedgrade.exe','adobe prelude.exe') THEN 'Adobe'
    ELSE 'OTHER'
    END as 'Publisher'
    ,(CASE mf.OriginalFileName
    WHEN 'acrobat.exe' THEN 'Acrobat'
    WHEN 'Acrobat Elements.exe' THEN 'Acrobat Elements'
    WHEN 'AfterFX.exe' THEN 'After Effects'
    WHEN 'Audition.exe' THEN 'Audition'
    WHEN 'Adobe Audition.exe' THEN 'Audition'
    WHEN 'AdobeCaptivate.exe' THEN 'Captivate'
    WHEN 'CFReportBuilder.exe' THEN 'Coldfusion Builder'
    WHEN 'Coldfusion.exe' THEN 'Coldfusion Standard'
    WHEN 'Contribute.exe' THEN 'Contribute'
    WHEN 'dwrcc.exe' THEN 'DameWare Mini Remote Control'
    WHEN 'director.exe' THEN 'Director'
    WHEN 'Projector.exe' THEN 'Director'
    WHEN 'dreamweaver.exe' THEN 'Dreamweaver'
    WHEN 'Adobe Encore.exe' THEN 'Encore'
    WHEN 'Adobe Encore Dvd.exe' THEN 'Encore'
    WHEN 'Encoredvd.exe' THEN 'Encore'
    WHEN 'encoder.exe' THEN 'Expression'
    WHEN 'expressionweb.exe' THEN 'Expression'
    WHEN 'exprwd.exe' THEN 'Expression'
    WHEN 'Fireworks.exe' THEN 'Fireworks'
    WHEN 'FlashBuilder4.exe' THEN 'Flash Builder'
    WHEN 'flash.exe' THEN 'Flash Pro'
    WHEN 'Flex Builder.exe' THEN 'FlexBuilder'
    WHEN 'FlexBuilder.exe' THEN 'FlexBuilder'
    WHEN 'Framemaker.exe' THEN 'FrameMaker'
    WHEN 'framemaker+sgml.exe' THEN 'FrameMaker'
    WHEN 'HomeSite+.exe' THEN 'Homesite'
    WHEN 'homesite4.exe' THEN 'Homesite'
    WHEN 'homesite45.exe' THEN 'Homesite'
    WHEN 'Homesite5.exe' THEN 'Homesite'
    WHEN 'illustrator.exe' THEN 'Illustrator'
    WHEN 'InDesign.exe' THEN 'InDesign'
    WHEN 'Lightroom.exe' THEN 'Lightroom'
    WHEN 'mappoint.exe' THEN 'MapPoint'
    WHEN 'Adobe Media Encoder.exe' THEN 'Media Encoder'
    WHEN 'Adobe OnLocation.exe' THEN 'OnLocation'
    WHEN 'Pm65.exe' THEN 'PageMaker'
    WHEN 'Pm70.exe' THEN 'PageMaker'
    WHEN 'pm.exe' THEN 'PageMaker'
    WHEN 'pm4.exe' THEN 'PageMaker'
    WHEN 'pm5.exe' THEN 'PageMaker'
    WHEN 'pm6.exe' THEN 'PageMaker'
    WHEN 'photoshop.exe' THEN 'Photoshop'
    WHEN 'Photosle.exe' THEN 'Photoshop'
    WHEN 'Photoshopelementsorganizer.exe' THEN 'Photoshop Elements'
    WHEN 'Photoshopelementseditor.exe' THEN 'Photoshop Elements'
    WHEN 'photoshp.exe' THEN 'Photoshop Elements'
    WHEN 'Lightroom.exe' THEN 'Photoshop Lightroom'
    WHEN 'adobe prelude.exe' THEN 'Prelude'
    WHEN 'Adobe Premiere Elements.exe' THEN 'Premiere Elements'
    WHEN 'Adobe Premiere Elements 8.0.exe' THEN 'Premiere Elements'
    WHEN 'Adobe Premiere Elements 10.exe' THEN 'Premiere Elements'
    WHEN 'Adobe Premiere Elements 9.exe' THEN 'Premiere Elements'
    WHEN 'Adobe Premiere Elements 7.0.exe' THEN 'Premiere Elements'
    WHEN 'Premiere.exe' THEN 'Premiere Pro'
    WHEN 'Adobe Premiere Pro.exe' THEN 'Premiere Pro'
    WHEN 'Adobe-Pr-Vc.exe' THEN 'Presenter'
    WHEN 'winproj.exe' THEN 'Project'
    WHEN 'Robohelp.exe' THEN 'RoboHelp'
    WHEN 'robodemo.exe' THEN 'RoboHelp'
    WHEN 'roboinfo.exe' THEN 'RoboHelp'
    WHEN 'Adobe Soundbooth CS5.exe' THEN 'Soundbooth'
    WHEN 'Adobe Soundbooth CS4.exe' THEN 'Soundbooth'
    WHEN 'Adobe Soundbooth CS3.exe' THEN 'Soundbooth'
    WHEN 'speedgrade.exe' THEN 'Speedgrade'
    WHEN 'visio.exe' THEN 'Visio'
    WHEN 'devenv.exe' THEN 'Visual Studio'
    WHEN 'VBExpress.exe' THEN 'Visual Studio'
    WHEN 'VCExpress.exe' THEN 'Visual Studio'
    WHEN 'VCSExpress.exe' THEN 'Visual Studio'
    WHEN 'VWDExpress.exe' THEN 'Visual Studio'
    WHEN 'WinWord.exe' THEN 'Word'
    WHEN 'matlab.exe' THEN 'MATLAB'
    ELSE mf.OriginalFileName
    END) as 'ProductName'
    ,mf.OriginalFileName
    ,sf.FileDescription
    ,CASE
    WHEN sf.FilePath like '%acrobat%' and sf.FileVersion != '' THEN left(sf.FileVersion,patindex('%.%',sf.FileVersion)-1)
    ELSE sf.FileVersion
    END AS 'FileVersion'
    ,sf.FilePath
    ,mf.MeteredFileID
    ,ISNULL(mus.UsageTime, '') as 'USAGETIME'
    ,ISNULL(mus.UsageCount, '') as 'USAGECOUNT'
    ,mus.LastUsage
    --,ISNULL(CONVERT(VARCHAR,mus.LastUsage,21),'') as 'Last Used'
    ,CASE
    WHEN mus.LastUsage IS NULL and
    sf.FilePath like '%\Program Files\Hewlett-Packard\%'
    or sf.FilePath like '_:\Windows\%'
    or sf.FilePath like '% old %'
    or sf.FilePath like '%[_]old[_]%'
    or sf.FilePath like '%backup%'
    or sf.FilePath like '_:\Data\%'
    or sf.FilePath like 'C:\Users\%'
    or sf.FilePath like 'C:\Documents and Settings\%'
    or (sf.FileName = 'acrobat.exe' and sf.FileDescription IS NULL)
    THEN 'FALSE'
    ELSE 'TRUE'
    END as 'VALID'
    ,ISNULL(ui.UserName,scum.TopConsoleUser0) as 'PrimaryUser'
    FROM
    v_MeteredFiles mf
    INNER JOIN v_GS_SoftwareFile sf on mf.MeteredFileID = sf.FileID
    --LEFT JOIN v_SoftwareFile sfi on sfi.FileID = sf.FileID
    LEFT JOIN v_R_System rs on sf.ResourceID = rs.ResourceID and rs.Obsolete0 = 0 and rs.Active0 = 1
    LEFT JOIN v_CH_ClientSummary ch on ch.ResourceID = rs.ResourceID
    INNER JOIN [CUSTOM].[dbo].[ABC_SITES] abc on rs.Name0 = abc.HOSTNAME and abc.SERV_FL = 'N'
    LEFT JOIN (
    SELECT ResourceID,FileID,SUM(UsageCount) as 'UsageCount',MAX(MeteredUserID) as 'UserID',SUM(UsageTime) as 'UsageTime',MAX(LastUsage) as 'LastUsage'
    FROM v_MonthlyUsageSummary
    GROUP BY ResourceID,FileID
    ) mus on mus.ResourceID = sf.ResourceID and mus.FileID = mf.MeteredFileID
    LEFT JOIN v_Users ui on ui.UserID = mus.UserID
    LEFT JOIN v_GS_SYSTEM_CONSOLE_USAGE_MAXGROUP scum on scum.ResourceID = rs.ResourceID
    WHERE
    (ch.LastActiveTime >= GETDATE()-30 or bae.LOGON_TMSP >= GETDATE()-30)
    and mf.OriginalFileName != 'WinWord.exe'
    --Exclude files in Recycle Bin
    and sf.FilePath not like '_:\$Recycle.Bin%'
    --Exclude invalid flash FileID's:
    and sf.FileID not in ('216172782114109353','216172782113863960','216172782113863969','216172782114336737','216172782114337853','216172782114009539','216172782114088205','216172782114148960','216172782114088174','216172782114109319','216172782113854316','216172782114045303','216172782114103331','216172782114318673','216172782113997536','216172782114103319','216172782114035585','216172782114035580','288230376151905593','288230376152414835','288230376152326390','288230376152414762','288230376152752371','288230376152238194','288230376151864114','288230376152221470','288230376152194417','288230376152452591','288230376152433530','288230376151826881','288230376151905590','288230376151993886','288230376152142718','288230376151766967','288230376151949862','288230376151870700','288230376151805491','288230376151796019','288230376152041232','288230376152068486','288230376152330596','288230376151982279','288230376151982277','288230376152126901','288230376151864098','288230376152129697','288230376152055728','216172782113836986','288230376152068474','288230376152068500','288230376151754145','288230376152241787','216172782113974892','288230376152107352','288230376152049272','288230376152367258','288230376152014270','288230376152423348','288230376151777614','288230376152137355','288230376152699042','288230376151777252','288230376152025890','288230376152688217','216172782113850093','216172782113850201','216172782114478326','216172782114139161','216172782113976965','216172782114084839','216172782114084848','288230376151766956','288230376152068464','288230376151766948','288230376152068455','288230376151903237','288230376151857402','288230376151933218','216172782113888320','216172782113867157','216172782113798401','216172782113884867')
    and sf.FileDescription not like '%PackageForTheWeb%'
    and sf.FileDescription not like '%Projector%'
    and sf.FileDescription not like '%Adobe Reader%'
    and sf.FileDescription not like '%Netopsystems%'
    and abc.SECTOR in (@Sector)
    and abc.BA in (@Business_Area)
    and abc.SITE in (@Site)
    and (CASE mf.OriginalFileName
    WHEN 'acrobat.exe' THEN 'Acrobat'
    WHEN 'Acrobat Elements.exe' THEN 'Acrobat Elements'
    WHEN 'AfterFX.exe' THEN 'After Effects'
    WHEN 'Audition.exe' THEN 'Audition'
    WHEN 'Adobe Audition.exe' THEN 'Audition'
    WHEN 'AdobeCaptivate.exe' THEN 'Captivate'
    WHEN 'CFReportBuilder.exe' THEN 'Coldfusion Builder'
    WHEN 'Coldfusion.exe' THEN 'Coldfusion Standard'
    WHEN 'Contribute.exe' THEN 'Contribute'
    WHEN 'dwrcc.exe' THEN 'DameWare Mini Remote Control'
    WHEN 'director.exe' THEN 'Director'
    WHEN 'Projector.exe' THEN 'Director'
    WHEN 'dreamweaver.exe' THEN 'Dreamweaver'
    WHEN 'Adobe Encore.exe' THEN 'Encore'
    WHEN 'Adobe Encore Dvd.exe' THEN 'Encore'
    WHEN 'Encoredvd.exe' THEN 'Encore'
    WHEN 'encoder.exe' THEN 'Expression'
    WHEN 'expressionweb.exe' THEN 'Expression'
    WHEN 'exprwd.exe' THEN 'Expression'
    WHEN 'Fireworks.exe' THEN 'Fireworks'
    WHEN 'FlashBuilder4.exe' THEN 'Flash Builder'
    WHEN 'flash.exe' THEN 'Flash Pro'
    WHEN 'Flex Builder.exe' THEN 'FlexBuilder'
    WHEN 'FlexBuilder.exe' THEN 'FlexBuilder'
    WHEN 'Framemaker.exe' THEN 'FrameMaker'
    WHEN 'framemaker+sgml.exe' THEN 'FrameMaker'
    WHEN 'HomeSite+.exe' THEN 'Homesite'
    WHEN 'homesite4.exe' THEN 'Homesite'
    WHEN 'homesite45.exe' THEN 'Homesite'
    WHEN 'Homesite5.exe' THEN 'Homesite'
    WHEN 'illustrator.exe' THEN 'Illustrator'
    WHEN 'InDesign.exe' THEN 'InDesign'
    WHEN 'Lightroom.exe' THEN 'Lightroom'
    WHEN 'mappoint.exe' THEN 'MapPoint'
    WHEN 'Adobe Media Encoder.exe' THEN 'Media Encoder'
    WHEN 'Adobe OnLocation.exe' THEN 'OnLocation'
    WHEN 'Pm65.exe' THEN 'PageMaker'
    WHEN 'Pm70.exe' THEN 'PageMaker'
    WHEN 'pm.exe' THEN 'PageMaker'
    WHEN 'pm4.exe' THEN 'PageMaker'
    WHEN 'pm5.exe' THEN 'PageMaker'
    WHEN 'pm6.exe' THEN 'PageMaker'
    WHEN 'photoshop.exe' THEN 'Photoshop'
    WHEN 'Photosle.exe' THEN 'Photoshop'
    WHEN 'Photoshopelementsorganizer.exe' THEN 'Photoshop Elements'
    WHEN 'Photoshopelementseditor.exe' THEN 'Photoshop Elements'
    WHEN 'photoshp.exe' THEN 'Photoshop Elements'
    WHEN 'Lightroom.exe' THEN 'Photoshop Lightroom'
    WHEN 'adobe prelude.exe' THEN 'Prelude'
    WHEN 'Adobe Premiere Elements.exe' THEN 'Premiere Elements'
    WHEN 'Adobe Premiere Elements 8.0.exe' THEN 'Premiere Elements'
    WHEN 'Adobe Premiere Elements 10.exe' THEN 'Premiere Elements'
    WHEN 'Adobe Premiere Elements 9.exe' THEN 'Premiere Elements'
    WHEN 'Adobe Premiere Elements 7.0.exe' THEN 'Premiere Elements'
    WHEN 'Premiere.exe' THEN 'Premiere Pro'
    WHEN 'Adobe Premiere Pro.exe' THEN 'Premiere Pro'
    WHEN 'Adobe-Pr-Vc.exe' THEN 'Presenter'
    WHEN 'winproj.exe' THEN 'Project'
    WHEN 'Robohelp.exe' THEN 'RoboHelp'
    WHEN 'robodemo.exe' THEN 'RoboHelp'
    WHEN 'roboinfo.exe' THEN 'RoboHelp'
    WHEN 'Adobe Soundbooth CS5.exe' THEN 'Soundbooth'
    WHEN 'Adobe Soundbooth CS4.exe' THEN 'Soundbooth'
    WHEN 'Adobe Soundbooth CS3.exe' THEN 'Soundbooth'
    WHEN 'speedgrade.exe' THEN 'Speedgrade'
    WHEN 'visio.exe' THEN 'Visio'
    WHEN 'devenv.exe' THEN 'Visual Studio'
    WHEN 'VBExpress.exe' THEN 'Visual Studio'
    WHEN 'VCExpress.exe' THEN 'Visual Studio'
    WHEN 'VCSExpress.exe' THEN 'Visual Studio'
    WHEN 'VWDExpress.exe' THEN 'Visual Studio'
    WHEN 'WinWord.exe' THEN 'Word'
    WHEN 'matlab.exe' THEN 'Matlab'
    ELSE mf.OriginalFileName
    END) IN (@MeteredProduct)
    ORDER BY
    abc.SECTOR
    ,abc.BA
    ,abc.SITE
    ,abc.HOSTNAME

  • How to remove character names from the drop down

    I was writing off screen dialogue. Normally I would write  FRED (O.S.) but when I did this, Story treats it as a new character - different dot in the outline.  In trying to correct it I now have four different instances of the FRED character that pop up in the character drop down list. How can I make the ones I don't want go away?  How do I indicate a character is off screen without creating a new character?

    I hadn't noticed this as I use a (VO) tag under the character name rather than (OS) but this is a good point.  I agree, simply ignoring anything in parantheticals is a good way to go on this one.  It all goes to the same name then.  Good ideas.
    Not sure about all the formal formatting issues as I'm really an experimental filmmaker so I don;t get that involved int he formaities but can't you also simply write these as follows:
                                            JUDGE LAWLESS
                                                      (VO)
                             Why did Jesse go and shoot that old goat anyway?
    To represent his voice being heard over the scene.  Or is this indicitave of the person being physically on camera for the scene but overheard as an inner dialogue?
    Sean

  • How to compare result from sql query with data writen in html input tag?

    how to compare result
    from sql query with data
    writen in html input tag?
    I need to compare
    user and password in html form
    with all user and password in database
    how to do this?
    or put the resulr from sql query
    in array
    please help me?

    Hi dejani
    first get the user name and password enter by the user
    using
    String sUsername=request.getParameter("name of the textfield");
    String sPassword=request.getParameter("name of the textfield");
    after executeQuery() statement
    int exist=0;
    while(rs.next())
    String sUserId= rs.getString("username");
    String sPass_wd= rs.getString("password");
    if(sUserId.equals(sUsername) && sPass_wd.equals(sPassword))
    exist=1;
    if(exist==1)
    out.println("user exist");
    else
    out.println("not exist");

  • Query to identify the recovery catalog database name from target database

    Hi,
    How to get the recovery catalog database name from the registered target database?
    i dont know my recovery catalog database for my target database.
    I know we can use the query
    select * from rc_database;
    from recovery catalog database to know all the registered database with the recovery catalog but I want to know is there any way or query to identify the recovery catalog database name from target database to which the target database is registered
    With Regards
    Boobathi P

    You can check the backup scripts which you use to backup your target database to get the catalog database name.
    And check the corresponding connect string in TNSNAMES.ORA file or tnsping to get the server details of the catalog database.
    Edited by: gopal on Apr 12, 2013 12:59 PM

  • How to exclude schema name from exported files (PL SQL Developer)

    Dear all,
    Just one question: I am using PL SQL Developer. My goal is to export some data (as .sql and .dmp files) from one database and to import them into the another database (both databases have identical structure - test database and production, just different database names and names of schema. In order to make it possible, I need to exclude schema name from generated export file. I believe that it is possible to do it automatically by setting up parameters of PL SQL Developer. How?
    Thank you in advance,
    Kindest regards,
    Dragana

    In the meantime, I have found the answer on my previous question:
    Actually, the initial idea (how to exclude schema name from exported files) was wrong. No need for any intervention.
    Trick is: Schema name can be changed during the import of exported files (PL SQL Developer during import gives possibility: From User (old schema) To User (new schema) .
    Hope that this will be useful info for others.
    Dragana

  • How get all table name from database

    hi master
    sir
    how get all table name from database

    The big question is 'why'.
    Selecting from view 'dba_tables' will indeed give the list of all tables in the database, but that includes the dictionary tables and the internal tables, and many others that are probably not of interet to a person who needs to ask this question. Besides, the dba_tables view requires access to a DBA account.
    There are several other views: "user_tables" will list all the tables in this user's schema; and "all_tables" will list all the tables this user can access in some way.
    The above do not, of course, include any information about synonyms, sequences, views, indexes and so on.
    The correct answer and the meaningful answer may be two different things.

  • How can I get a list of database names from environment

    Hi,
    How can I get a list of database names from environment.
    I had found a method in JE API Docs named Environment.getDatabaseNames(), and i couldn't found the same method in Berkeley DB.
    I use java interface, is it supported?
    Thanks.

    Hello,
    I don't know if it would work for you, but have you checked the db_archive utility at:
    http://download.oracle.com/docs/cd/E17076_01/html/api_reference/C/db_archive.html
    Check the -s option.
    Thanks,
    Sandra

  • How do I remove my name from an ipod prior to donating it to someone?

    I would like to donate my ipod touch to someone as I just bought another one. How do I remove my name from the device prior to donating it? I was able to remove all of my apps, music and videos but not the name.

    Go into your settings>general>reset, then select Erase All Content and Settings. 

  • How to create database link from oracle to sql server

    Please help with how to create database link from oracle to sql server
    Best regards,
    Vishal

    Please help with how to create database link from oracle to sql server
    Best regards,
    Vishal
    Hi Vishal,
    I found a lof of information regarding how to create a database link from Oracle to SQL Server, please see:
    https://www.google.co.in/?gws_rd=cr&ei=vd3XUvGFO8TgkAXqlYCADg#q=how+to+create+database+link+from+oracle+to+sql+server
    We discuss SQL Server related issue in this forum. If you have any more question regarding Oracle, please post it in Oracle communities forum for better support.
    Regards,
    Elvis Long
    TechNet Community Support

Maybe you are looking for

  • Interfaces in PP-PI

    Hi, i am familar with PP and trying to learn PP-PI. Pls explain why we need interfaces in PP-PI? what is the function of those interfaces? how they need to map / link in sap system? what are the general interfaces in pharm industry? Thank you for you

  • IMessages dont go from my iPhone 4S to my Ipad 1 both running iOS5 and same log in account

    how do i makes my imessages show up from my iphone to my ipad? ive sent a message from my ipad that works, however im supposed to be able to pick up one conversation on my iphone and finish it on my ipad and such. icloud is on on both devices, both d

  • 11.1.1.3 - BPMA re-installation issue - Please help

    Hyperion Legends, I am having some difficulties with the re-installation of 11.1.1.3. Due to a bad deployment which ruined essbase. I decided to un-install everything SS, Essbase, Planning, Workspace, FR and BPMA.. the whole lot basically (using the

  • Mouse event problem in jLabel

    I don't want to change the Text of a label once i click on it for the second time.This is the code i wrote for it     private void display(java.awt.event.MouseEvent evt) {                                   try{           if(evt.getSource().equals(jLa

  • Trouble with reinstaling Photoshop CS4

    Hello everyone! Im sorry for my english! =) My licensing Photoshop will have some problem. Brashes and any manipulates will be so slow. My computer is not too strong, but is not reason. Many users who has power computer has same problem too. And i se