Microsoft Query - ODBC Remedy DB

Hi ALL ,
Am using Microsoft Query ODBC  to connect to the BMC Remedy from excel . Now am stuck in a situation i wish to automate it
but for that i need to provide a function that works like getdate() in sql server or sysdate in oracle .
Please let me know what Date function should be passed in the where clause to get the current date data . The Remedy DB can be either Oracle or SQL Server one am not sure .Am asking the question here as am using Microsoft query to connect to the Remedy DB
Please Experts help very near to Automating a project stuck just because am not able to pass the current date in the query :( .
SELECT "HPD:Help Desk"."Assigned Group", "HPD:Help Desk"."Assigned Support Company",
"HPD:Help Desk"."Last Modified Date"
FROM "HPD:Help Desk" "HPD:Help Desk"
WHERE ("HPD:Help Desk"."Last Modified Date" > {ts '2014-02-02 00:00:00'}) .
This Works but i don't want to provide dates manually all the time just provide the Current Date function .
Please help
Thanks
Priya

As I said, I am able to vouch for what works with your ODBC Driver. I did some googling, and I found a few related problems, including
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=150522
which looks very similar to your problem. Unfortunately, there is no answer.
It appears that you are using AR System ODBC Driver of which I'm entirely unfamiliar with.
The alternative would be to build the query string and inject either the date, or if you can determine whether you are talking to SQL Server or Oracle and inject the correct function.
Or does Oracle have a date data type? In such case this should work on both:
   cast(CURRENT_TIMESTAMP AS date)
As long as the ODBC driver does not get in the way, that is.
Erland Sommarskog, SQL Server MVP, [email protected]

Similar Messages

  • Problem accessing informix ODBC 32 bit System DSN using Microsoft Query external data sources in Microsoft Excel 2010

    Hi all...
    I'm hoping if anybody could help me. I'm using Microsoft Excel 2010 + Windows 7 Professional 64 bit. I've installed the informix client sdk for odbc drivers to create odbc 32 bit connection. Before this, i had successfully installed in
    another Windows 7 Professional 64 bit PC the informix client drivers and configured the odbc connection for it. During that time, i can access the 32 bit ODBC using the microsoft query from the Microsoft Excel 2007. But now...in the new PC, even though i had
    successfully installed the informix client and manage to configure the 32 bit ODBC for it, my Microsoft Excel 2010 can't call/recognise the 32 bit ODBC connection as if the Microsoft Excel 2010  only called the 64 bit ODBC. Is it in Microsoft excel 2007
    it is possible to recognise the 32 bit ODBC but the Microsoft Excel 2010 can't? Is there any solution if my Microsoft Excel 2010 still want to use the 32 bit ODBC connection.

    Hi,
    Excel 2007 has only 32-bit since 64-bit applications for Office are available only for Office 2010. Thus, you can use
    32 bit ODBC between Microsoft Excel 2007 & Windows 7 Professional 64 bit. Now, you are using Microsoft Excel 2010 64 bit & Windows 7 Professional 64 bit, thus, you must install the 64 bit ODBC drive. If you still need to use 32
    bit odbc drive, please use 32 bit Excel 2010. Here is the detailed steps:
    http://datasummit.co.za/how-to-install-an-informix-odbc-driver-on-windows-7-for-ms-office-2010
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • ODBC not installed according to Microsoft Query

    Hello,
    I have an eMac, as listed below, and recently I did a very stupid thing. I was trying to reload everything from the Tiger disc and managed to delete and reinstall. As a result I lost a lot of work. I have reinstalled pretty much everything, including Microsoft Office for Mac X. I want to do a data list but Microsoft Query tells me ODBC in not installed. When I open ODBC, it seems OK? Can anyone tell me what might be going on please?
    Cheers
    Kurt

    You don't have any support through Microsoft as you purchased a refurbished product. It is refurbished by a third party, not Microsoft so they would have no record of anything. Contact Newco who gives you a 90 day warranty at this number 18777876856.
    Crystal
    Superuser
    Forum Guidelines | Terms & Conditions | Community Guidelines | What is a Superuser?
    *Remember to mark your questions solved and click the star to give kudos to show your thanks!*
    While I used to be a Best Buy Employee, I no longer have any affiliation with Best Buy.
    My opinions do not in any way shape or form represent Best Buy's Official decisions.

  • 2 questions in one - Related to Excel Microsoft Query

    Hi ALL ,
    i want to schedule a microsoft query script to run at 4:36 am Daily and save the workbook as Remedy in a defined path  .After an hour the Remedy Excel should automatically get deleted.
    Task flow
    Excel -- > ODBC --> Remedy DB ---> Data -- > SSIS --- > Load Excel Data to Sql Server ..
    Am not able to use SSIS for this as the Data loading is taking huge amount of time using ODBC whereas excel is very fast in retrieving the Data .
    Q How can i query the current date in ODBC .
    i have tried this:
    Where ("HPD:Help Desk"."Last Modified Date" = {fn current_date()}) but its not working ( Error Message lexical 3700 not found)
    Where ("HPD:Help Desk"."Reported Date">={ts '2014-01-01 00:00:00'}) ( am using this for now )
    Please help am a newbie in excel
    Thanks
    Priya

    In Microsoft query ,we should use date() to get the current date.
    Try: Where ("HPD:Help Desk"."Reported Date">=date())
    Also please check if the method listed in the following thread is helpful:
    http://www.mrexcel.com/forum/excel-questions/479250-odbc-query-current-date.html

  • OFFICE 2013 - Word could not re-establish a DDE connection to Microsoft Query

    Hi, I have installed office 2013 on a pc and used excel to run a query on a database and created a .qry query so I can use this data in word mail merge.
    The query runs ok and returns the data.
    However, when I go to take the data in through mail merge it comes up with a message "Confirm data source" ( I enabled this after  reading kb article below) so I select "MS query files via DDE(*.qry, *.dqy)" as this is a .dqy I select
    it. It says at the bottom of the screen word is starting query then comes up with the error  "Word could not re-establish a DDE connection to Microsoft Query to complete the current task".
    I have re-did the query from scratch and no difference I tried the recommend kb article 918594 and it still doesn't work.
    I recreated the odbc link and still no joy.
    Has anyone come across this and have they a solution I would be grateful.
    Thanks
    Tom

    Hi,
    Try to check whether the methods listed in the following link is helpful. The link applies to previous versions, but we can refer to it.
    http://support.microsoft.com/kb/813989
    Jaynet Zhang
    TechNet Community Support

  • Microsoft Query for Office 2013 Home and Business

    Where can I get Microsoft Query for Office 2013 Home and Business version?  I have used it for years on my old XP machine with Office 2003.
    Thank you, Sue

    Hi,
    You seem got an error like "Microsoft query could not be started because it isn’t installed" when you used it. 
    It may be not installed yet. We can go to "Control Panel\All Control Panel Items\Programs and Features\Office 2013 Home and Business\change\Microsoft tools\MS query" and check if it is installed/enabled.
    If it is not installed, please use the Install CD/ full installation copy to reinstall it.
    http://social.technet.microsoft.com/Forums/office/en-US/eb7bfe7d-8fa4-4faf-8563-13ae8b04346d/microsoft-query-could-not-be-started-because-it-isnt-installed?forum=excel (It
    also applies to Excel 2013)
    Regards,
    George Zhao
    TechNet Community Support

  • Can i use crystal reports standard to query ODBC datasources

    Post Author: Andy Forrest
    CA Forum: Data Connectivity and SQL
    Dear all,
    I'm struggling to identify if i can use crystal reports standard to query ODBC data-sources, the only information i can find is the following :-
    An intuitive solution that provides basic report design functionality off of PC-based data sources, Crystal Reports XI Standard Edition will provide you with access to data stored in personal data sources.
    This gives the impression that i cant access any data other than local data, can anyone give me a definitive answer or point me to somewhere that explains in a little more detail.  We are about to purchase some copies but need to ensure crystal reports standard can access ODBC data sources.  We are replacing crystal reports 8 standard edition and need to ensure previous reports will still run.
    Thanks in advance for any assistance.
    Cheers
    Andy

    Post Author: foghat
    CA Forum: Data Connectivity and SQL
    Well, you can certainly connect to ODBC with Crystal XI Developer.  I'd be very surprised if you couldn't with the Standard version as well.  Not the definitive answer you were looking for, I suppose.

  • Unable to connect to my Oracle Database with Microsoft's ODBC for Oracle driver

    I am unable to connect to my Oracle Database with Microsoft's ODBC for Oracle driver vers.2.573.4202.00 on a Win98 computer.
    First, I create a "Net Service Name" in order for the ODBC Driver to find the Oracle server. I then created a System DSN in the ODBC Data Source Administrator and assigned the "Net Server Name" as the server in the "Microsoft ODBC for Oracle Setup". But when I test this DSN with Oracle's provided "Oracle ODBC 32Bit Test vers.2.5.3.1.0" I get an error:
    SQLSTATE: NA000
    Native Error Code:0
    Driver Message:[Microsoft][ODBC driver for Oracle][Oracle]
    This error occurred on all three Win98 computers I have tried. It does however, seem to work fine on WinNT 4.0, and believe it or not, on the two Win95 computers I have tried.
    Does anyone have any fixes, recomendations, or advice?
    Thank you,
    Eric Edwards
    null

    Why are yu not using the Oracle ODBC driver - these can be downloaded from OTN.
    Have you set up a tnsnames.ora entry for the Oracle database you want to connect to? Does this name have a domain name added to it? Check %ORACLE_HOME%\network\admin\tnsnames.ora for the service name. If it is a name of the form :
    name.domain.subdomain
    then you should try using this full name when configuring the ODBC data source.
    null

  • Trying to obtain and use PeopleSoft Open Query ODBC driver

    I've found architectural diagrams and descriptions of the PeopleSoft Open Query ODBC driver and am looking for where to download this driver from.
    Anyone know or have any experience in using it?
    Thanks,
    Bob Sleik

    Hello Bob,
    The "PeopleSoft Open Query ODBC driver"
    is delivered with PeopleTools.  Starting with PT8.50, this driver is installed by running PS_HOME\bin\client\winx86\psodbccrinst.exe, which spools a log to %TEMP%\psodbccrinst.log
    The psodbccrinst.log shows the files and registry updates involved.
    After installing, when you open the ODBC administrator, you'll see 'PeopleSoft PeopleTools' driver for your PeopleTools release.
    Kind Regards,
    -Kirsten Zurbrugg

  • 'Driver]Parameter missing' Error while trying to pass parameter to MS query & Return Data to Microsoft Excel

    I am trying to set up a parameter query using ODBC-Microsoft Query
    to BMC Remedy The ODBC connection is "AR System ODBC Data Source".
    I want to pass a parameter to modified date field and get all the remedy tickets for which the modified date is<= to the passed parameter date.
    So in MS query, SQL- 
    the query looks like
     WHERE ("Trouble Ticket"."Create Date">={ts '2014-10-01 00:00:00'}) AND ("Trouble Ticket"."Modified-date"<=?)
    I am getting the data fetched from database in the MS query window, but unfortunately
    When I click File-Return Data to Microsoft Excel, its showing an error: Driver]Parameter missing
    I set the connection properties- parameter-Prompt for value using the following string.
    Please help

    Hi,
    Based on the error message, I recommend we try the suggestion: Replace all "..."  with [...]
    http://www.pcreview.co.uk/forums/error-parameter-query-odbc-remedy-bmc-software-com-t3232964.html
    Then, if you want to connect the Remedy's oracle database, please see the thread:
    http://www.tek-tips.com/viewthread.cfm?qid=1123112
    We may try the workaround: Write an Excel macro which connects to the database and fetch the data based on the SQL query.
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    If you have further question about write macro, I recommend you post the question to the MSDN forum for Excel
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=exceldev&filter=alltypes&sort=lastpostdesc
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Using a SQL for Oracle in Microsoft Excel Query

    I am having the most difficult time (in fact, I can't get it to work) trying to use an SQL I created in Toad for Oracle. It works fine in Toad for Oracle...gives me all the data I need. I am trying to use it in Excel for users that don't know SQL or Oracle so they can use the query to extract data they need for Charts, Graphs, etc.
    Here is the SQL code from Toad for Oracle:
    /* Formatted on 2006/09/22 11:42 (Formatter Plus v4.8.6) */
    SELECT a_compl_summary.incident_number, a_compl_summary.case_number,
           a_compl_summary.part_sequence, a_compl_summary.part_number,
           a_compl_summary.lot_number, a_compl_summary.alert_date,
           a_compl_summary.entry_date, a_compl_summary.NAME,
           a_compl_summary.MONTH, a_compl_summary.product_family,
           a_compl_summary.complaint, a_compl_summary.reportable,
           a_compl_summary.product_returned, a_compl_summary.case_desc,
           a_compl_summary.failure_invest_desc, a_compl_summary.lhr_search,
           a_compl_summary.root_cause, a_compl_summary.corrective_action,
           a_compl_summary.region,
           rp_qa_reported_device_codes.reported_device_code,
           rp_qa_reported_device_codes.reported_dev_clarification,
           rp_qa_reported_device_codes.reported_dev_code_desc,
           rp_qa_patient_codes.patient_code,
           rp_qa_patient_codes.patient_code_clarif,
           rp_qa_patient_codes.patient_code_severity,
           rp_qa_patient_codes.description
      FROM chsuser.a_compl_summary,
           chsuser.rp_qa_patient_codes,
           chsuser.rp_qa_reported_device_codes
    WHERE (    (a_compl_summary.product_division = 'CP')
            AND (    a_compl_summary.entry_date >= :date1
                 AND a_compl_summary.entry_date <= :date2
            AND (   a_compl_summary.product_family LIKE :pf1
                 OR a_compl_summary.product_family LIKE :pf2
                 OR a_compl_summary.product_family LIKE :pf3
                 OR a_compl_summary.product_family LIKE :pf4
                 OR a_compl_summary.product_family LIKE :pf5
            AND (a_compl_summary.region = :r1)
            AND (   a_compl_summary.NAME = :c1
                 OR a_compl_summary.NAME = :c2
                 OR a_compl_summary.NAME = :c3
                 OR a_compl_summary.NAME = :c4
                 OR a_compl_summary.NAME = :c5
            AND (a_compl_summary.complaint = :yorn)
            AND (   rp_qa_reported_device_codes.reported_dev_clarification LIKE
                                                                              :cl1
                 OR rp_qa_reported_device_codes.reported_dev_clarification LIKE
                                                                              :cl2
                 OR rp_qa_reported_device_codes.reported_dev_clarification LIKE
                                                                              :cl3
                 OR rp_qa_reported_device_codes.reported_dev_clarification LIKE
                                                                              :cl4
                 OR rp_qa_reported_device_codes.reported_dev_clarification LIKE
                                                                              :cl5
            AND (rp_qa_reported_device_codes.reported_dev_clarification NOT LIKE
                                                                              :dc1
            AND (a_compl_summary.incident_number =
                                               rp_qa_patient_codes.incident_number
            AND (a_compl_summary.case_number = rp_qa_patient_codes.case_number)
            AND (a_compl_summary.part_sequence = rp_qa_patient_codes.part_sequence
            AND (a_compl_summary.incident_number =
                                       rp_qa_reported_device_codes.incident_number
            AND (a_compl_summary.case_number =
                                           rp_qa_reported_device_codes.case_number
            AND (a_compl_summary.part_sequence =
                                         rp_qa_reported_device_codes.part_sequence
            AND (rp_qa_reported_device_codes.incident_number =
                                               rp_qa_patient_codes.incident_number
            AND (rp_qa_reported_device_codes.case_number =
                                                   rp_qa_patient_codes.case_number
            AND (rp_qa_reported_device_codes.part_sequence =
                                                 rp_qa_patient_codes.part_sequence
           )Can someone help me...maybe point out what I'm doing wrong.
    Note: I also tried creating this query in Microsoft Query (the simple way) and when I first create it...it works...But then if I go back in to edit the query, and refresh the query or try to Return data to Excel, it gives me a ORA-00936 error message.
    Why it works when I first create the query in Excel, I don't know. But I have to validate the queries I'm creating (SQL or not) and I can't validate it if every time I go into edit the query (which may have to happen; that's why I have to fix this before I can submit my validation).
    Anyway, any help would be greatly appreciated.

    Okay, I know I'm replying to my own threads here...but I want to add a little bit more information again.
    I was successful in figuring out that changing the :criteria to a ? worked.
    I tested this on 1 criteria at a time. Adding one more scenario ? at at time.
    It only worked up until about 3 scenarios of each criteria.
    Then when I refreshed the query in Microsoft Excel Query, I got an "out of memory" error, and then it ended up just erasing the SQL I had been using.
    Here's the SQL I had where it gave me this error. Am I possibly just making Excel work too hard? It just doesn't make sense because Toad for Oracle handled it in like 4 seconds. Which brings me back to an intial question I had. Can Excel use Toad for Oracle somehow?
    Here's the code:
    SELECT a_compl_summary.incident_number, a_compl_summary.case_number,
           a_compl_summary.part_sequence, a_compl_summary.part_number,
           a_compl_summary.lot_number, a_compl_summary.alert_date,
           a_compl_summary.entry_date, a_compl_summary.NAME,
           a_compl_summary.MONTH, a_compl_summary.product_family,
           a_compl_summary.complaint, a_compl_summary.reportable,
           a_compl_summary.product_returned, a_compl_summary.case_desc,
           a_compl_summary.failure_invest_desc, a_compl_summary.lhr_search,
           a_compl_summary.root_cause, a_compl_summary.corrective_action,
           a_compl_summary.region,
           rp_qa_reported_device_codes.reported_device_code,
           rp_qa_reported_device_codes.reported_dev_clarification,
           rp_qa_reported_device_codes.reported_dev_code_desc,
           rp_qa_patient_codes.patient_code,
           rp_qa_patient_codes.patient_code_clarif,
           rp_qa_patient_codes.patient_code_severity,
           rp_qa_patient_codes.description
      FROM chsuser.a_compl_summary,
           chsuser.rp_qa_patient_codes,
           chsuser.rp_qa_reported_device_codes
    WHERE (    (a_compl_summary.incident_number =
                                               rp_qa_patient_codes.incident_number
            AND (a_compl_summary.case_number = rp_qa_patient_codes.case_number)
            AND (a_compl_summary.part_sequence = rp_qa_patient_codes.part_sequence
            AND (a_compl_summary.incident_number =
                                       rp_qa_reported_device_codes.incident_number
            AND (a_compl_summary.case_number =
                                           rp_qa_reported_device_codes.case_number
            AND (a_compl_summary.part_sequence =
                                         rp_qa_reported_device_codes.part_sequence
            AND (rp_qa_reported_device_codes.incident_number =
                                               rp_qa_patient_codes.incident_number
            AND (rp_qa_reported_device_codes.case_number =
                                                   rp_qa_patient_codes.case_number
            AND (rp_qa_reported_device_codes.part_sequence =
                                                 rp_qa_patient_codes.part_sequence
    AND (a_compl_summary.product_division = 'CP')
            AND (    a_compl_summary.entry_date >= ?
                 AND a_compl_summary.entry_date <= ?
            AND (   a_compl_summary.product_family LIKE ?
                 OR a_compl_summary.product_family LIKE ?
                 OR a_compl_summary.product_family LIKE ?
                 OR a_compl_summary.product_family LIKE ?
                 OR a_compl_summary.product_family LIKE ?
            AND (a_compl_summary.region = ?)
            AND (   a_compl_summary.NAME = ?
                 OR a_compl_summary.NAME = ?
                 OR a_compl_summary.NAME = ?
                 OR a_compl_summary.NAME = ?
                 OR a_compl_summary.NAME = ?
            AND (a_compl_summary.complaint = ?)
            AND (   rp_qa_reported_device_codes.reported_dev_clarification LIKE
                 OR rp_qa_reported_device_codes.reported_dev_clarification LIKE
                 OR rp_qa_reported_device_codes.reported_dev_clarification LIKE
                 OR rp_qa_reported_device_codes.reported_dev_clarification LIKE
                 OR rp_qa_reported_device_codes.reported_dev_clarification LIKE
            AND (rp_qa_reported_device_codes.reported_dev_clarification NOT LIKE
               ))

  • Microsoft SQL Server ODBC Driver 1.0 for Linux problem

    Hello! I've RedHat Linux 6 Update 1 x64 on VMware Player and MS SQL Server on real machine. My application "servernew" on RedHat. All right, but when i try connect my SQL Server:
    retcode = SQLDriverConnect(hdbc,NULL,string,sizeof(string),buf,sizeof(buf),&StringLength2,SQL_DRIVER_NOPROMPT);
    i get retocde = -1;
    Using SQLGetDiagRec:
    MessageText = Data source name not found, and no default driver specified
    To make my connection i use next attempts for connection string:
    //char constring[200]="Driver={Microsoft Server ODBC Driver 1.0 for Linux};Server=ARTPK2\\SQLEXPRESS2;Database=Kurs;Uid=sa;Pwd=2ef5Fese";
    //char constring[200]="Driver={SQL Server Native Client 11.0};Server=ARTPK2\\SQLEXPRESS2;Database=Kurs;Uid=sa;Pwd=2ef5Fese";
    //char constring[200]="Driver={Microsoft SQL Server ODBC Driver V1.0 for Linux};Server=ARTPK2\\SQLEXPRESS2;Database=Kurs;Uid=sa;Pwd=2ef5Fese";
    //char constring[200]="Driver={/opt/microsoft/sqlncli/lib64/libsqlncli-11.0.so.1790.0};Server=ARTPK2\\SQLEXPRESS2;Database=Kurs;Uid=sa;Pwd=2ef5Fese";
    char constring[200]="DSN={SQL Server Native Client 11.0};Uid=sa;Pwd=2ef5Fese";
    but...Data source name not found, and no default driver specified .. help me

    Ok. New attempts with sqlcmd:
    [root@localhost ~]# sqlcmd -S 192.168.0.3 -U sa -P 2ef5Fese -d first
    SqlState HYT00, Login timeout expired
    A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information
    see SQL Server Books Online.
    TCP Provider: Error code 0x6F
    New error 0x6F (i turned off firewall in windows).
    [root@localhost ~]# sqlcmd -S ARTPK2\\SQLEXPRESS2 -U sa -P 2ef5Fese -d first
    SqlState HYT00, Login timeout expired
    A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information
    see SQL Server Books Online.
    SQL Server Network Interfaces: Error Locating Server/Instance Specified [xFFFFFFFF].
    It's bad way, but...
    [root@localhost ~]# sqlcmd -D -S ARTPK2\\SQLEXPRESS2 -U sa -P 2ef5Fese -d first
    SqlState IM002, Data source name not found, and no default driver specified
    It's like in my program!!
      retcode = SQLDriverConnect(hdbc,NULL,string,sizeof(string),buf,sizeof     (buf),&StringLength2,SQL_DRIVER_NOPROMPT);
      i get retocde = -1;
      Using SQLGetDiagRec:
      MessageText = Data source name not found, and no default driver specified
    Why "SQLDriverConnect"  is looking for DNS?!

  • SQL query from C++ application using ODBC 10.2.0.4 is very slow

    Hi,
    We are using ODBC oracle driver to access 10g Oracle server from C++ apllication. But the performace is very slow.
    Recently we tried with Microsoft Oracle ODBC driver, which we found faster than 10.2.0.4 Oracle ODBC driver.
    Please let me know is anything is ther any issue with this driver or is it better to use Microsoft ODBC driver.
    Thanks,
    Sabbi

    Hi StephenEP,
    As the issue is more related to C++ programming, I would like to recommend you post the question in the Visual C++ forum at
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=vcgeneral  . It is appropriate and more experts will assist you.
    Thanks,
    Lydia Zhang

  • Excel ODBC Connection Issues

    I'm having some issues importing external data from an Oracle 9i database.
    Here is what is happening:
    I am initially able to import data from the table I want to into Excel.
    I do this through "Data -> Import External Data -> New Database Query" where I have my .ORA data source. I'm able to log in using my user and password and import the table. My problems come after I import this first set of data.
    If I try to "Edit Query…" I get an error box that says "[Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed".
    If I try to "Refresh Data" I get two error boxes. The first is just: "[Microsoft][ODBC driver for Oracle][Oracle]" and the next says: "[Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed". It then prompts me for the User name and password of the DB I'm connecting and after I enter the information, I get the same two error messages.
    Also, if I attempt to establish another connection following the "Data -> Import External Data…" steps I run into a different problem. Upon entering the information for the User Name and password prompt I get two error messages. One says "!" and the next box says "Couldn't read this file". Once I click "OK" in those boxes, the Microsoft Query window automatically opens with nothing in it.
    I can't seem to figure out why I can initially pull down data and then cannot succeed afterwards. I'm unable to connect to the DB I have through Excel until I completely closed all Microsoft Excel instances.
    I also use this data source in Microsoft Access without any problems.
    My Excel version is 2003.
    I'm using Oracle Drivers I'm using are from an "Instant Client" package.
    Any thoughts why I'm having these connections issues?
    Thanks in advance.

    This issue is closed.
    The solution was:
    "Data -> Import External Data -> Import Data"
    Select "New Source" and select the "Oracle" data source and filled in the appropriate information. This was similar to the database query but it actually works.

  • Office 2013 crashes when trying to access MS query

    Hi,
    I am having a problem with Microsoft Excel 2013 (32bit) running on my Windows 7 64bit machine. I cannot get data from a Microsoft query. When I click on this button it instantly freezes
    and hangs with the message "Waiting for data to be returned from microsoft query" in the status bar.
    Please could someone help, this has happened before, randomly sorted itself and now, once again stopped working!
    I have checked all my ODBC data sources (from the windows\SysWOW64\odbcad32.exe) that they have all the correct paths. Really is frustrating a puzzling.
    Any help would be appreciated. 

    Just to make sure I understand this problem, when you click  Data->From Other Sources->From Microsoft Query, excel hangs with the message. If so, it might be a memory issue, since you said it has happened before and sorted itself, Try to start
    Task Manager to check if you got any suspicious processes.
    Also have you tried to import data by using OLE DB? e.g. Data->From Other Sources->From SQL Server.
    should it be works fine?
    Wind Zhang
    TechNet Community Support

Maybe you are looking for

  • How do I set up multiple e-mail accounts in Thunderbird?

    I have one account set up in Thunderbird through Yahoo/ATT mail. I want to set up two other accounts that both are through schools and Google. I don't think the school mail accounts are on the same server.

  • Implement new AbstractCommand, AbstractScreenflow, and WcmResourceControl

    Hi all... I am currently trying to implement a new SAP KM functionality which allows the user to see how a specific resource property has changed through all it's revisions. I decompiled the code for UIPropertiesCommand (UIPropertiesCommand, Properti

  • Bug in Track Naming when importing folder?

    Hey All- Hopefully this is an easy problem to fix! I just imported my entire mp3 collection which on my HD labeled like this: D:\mp3\Artist - Album\01 - Track Name.mp3 ... and so forth. I have spent alot of time making sure all my tags are correct; e

  • SQL Developer EA 3.1 -Java Null pointer exception when loading model viewer

    a) I have a simple 3 node flow -- 1) DataSource selects CLOB and VARCHAR column; 2) BuildText node transforms CLOB into NESTED COLUMN; 3) ClustBuild node build K-Means cluster b) The "run" step succeeds for all three nodes, however when I try to laun

  • Drill down needs to run different request

    An existing 5-level drill-down request must be changed to display a different report on drill-down from level 3 and produce this report through level 5. The different report differs in the columns it contains as well as the style and content of the g