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

Similar Messages

  • Query SQL code gets deleted after export to Excel. "Query must have at least one destination field"

    Hi all,
    I'm getting really frustrated by this Access error. It happens when I export the result of a query through an Access macro to Excel, the first time it runs well but the next time, there is a chance that the query won't run and the error "Query
    must have at least one destination field" will be displayed. After that, I try to check the query SQL code and discover the code has vanished. I'm using simple Select query without joins, only "where", "group by" and "order by"
    statements.
    Thank you in advance for your help,
    Jesus 
    Edit:
    One of these queries are like the following (all of them are of this type):
    SELECT Field1, field2, field3, field4, field5, Sum(Field6) AS SumOfField6, Sum(Field7) AS SumOfField7
    FROM Table1
    WHERE Field6 is not null
    GROUP BY Field1, field2, field3, field4, field5
    Order By Sum(Field6) desc

    Hi Peter, 
    Thank you for your response, I updated the original question with one of the codes.
    Thanks,
    Jesus

  • Get One to One relation information from SMO

    Hello I have 2 tables.
    Business & categories. Both are connected using one to one relation.
    In business table I created ForeignKey relation to Category & then I made CategoryId column of Business Table Unique Key in index.
    In this way I create One to one relation between them.
    So from Business I can get Category by using Following SMO Code:
    foreach (Microsoft.SqlServer.Management.Smo.Table table in lstTableName)
    var ReferenceData=table.ForeignKeys;
    It is fine. But Now from category Table I also want to see Business Object. I know that I can travers EnumForeignKeys() But in that I can get its SetCollection data.
    But I want o know the information regarding One to One relationship . that meance I want to see cardinality information from SMO.
    Is there any way that I can have that information using SMO?
    If ismo is not possible then some kind of SQL query is also ok for me.
    Thanking you in advance..
    Regards
    Vipul Langalia

    Hi,
    IMO this does not seem possible using SMO or any other method as well.
    You cannot create a 1..1 relationship directly in SQL Server.
    To implement such a relationship we need to create a FOREIGN KEY and then create a UNIQUE constraint on the foreign key column, this again does not guarantee 1..1 relationship but 0..1 relationship.
    So what you can do is check if UNIQUE constraint is defined on the foreign key column in the referencing table.
    - Vishal
    SqlAndMe.com

  • One to one relation webapplication and portal?

    Going through the documentation and the newsgroups for WLCS 3.5 and
    Personalization Server 3.5 I can't seem to find out wether or not
    there is a one to one relation between a webapplication and a portal.
    I mean, can I have more than one portal in a webapplication? The
    folder structure in the webapplication seems to indicate so:
    exampleportal/portals suggests that multiple portals can be found in
    this webapplication, with the repository as a folder shared by all
    portals.
    And if this is the case, where do I configure which user goes to what
    portal within that one webapplication?
    Anybody has any suggestion or pointers to relevant documentation (not
    being the bea edocs site...)?
    Regards
    EJ

    Thanks for your response!
    I have different problem.
    I have two submit buttons. First is to save the data into DB. Second is to add an Answer object to arraylist (Answers) and this answer object filled in the same form. When I click the second button, I don't see the arraylist growing. But it overwrites. I hope you are understanding my question.
    Please help me

  • Business One  - XML or Excel File interface

    Hi Folks ,
    Here i have some basic questions which i need to clarify from the expertise like you
    1. Is Business One can able to Produce/Consume XML file for the Master data upload ? If so where can i find the schema for XML file  ?
    2. I hope that Business One can use Excel file to upload the Master data - if so where can find the template/schema ?
    3. Can we use Scheduling mechanism to Upload XML file  for master data upload  to Business System ?
    Any inputs are really appreciated .
    Thanks.,
    V.Rangarajan

    Hi Folks ,
    Thanks to Rupinder and Gagan , But as per your reply
    1. You can import the data into master data through xml and excel sheet with the help of DTW.
               Is that XML and Excel ( or ) we can use either XML or Excel ? Please clarify .
              i.   I would like to go for only XML is there any template available ?
             ii . Not only master data , i want to create Objects like PO / SO/Invoice etc ..,, . All can be achieved through DTW ?
    Please clarify
    Thanks.,
    V.Rangarajan

  • My question is Itunes related.  How do you prevent a playlist saved in Itunes from alphabetizing the song list created. I wanted to keep the original order, and somehow everything was alphabetized without requesting it.

    My question is Itunes related.  How do you prevent a playlist saved in Itunes from automatically alphabetizing the song list.   I had a specific order of songs that I wanted, and Itunes somehow automatically alphabetized them.  Is there a way to turn that feature off, and/or get them back to the original order?   I also noticed that once a playlist has been created, I cannot manually changed the order of the songs from my desktop..  Any suggestions?

    That's just the sort order. It's displaying the media alphabetically because you have clicked on the NAME column near the top of the iTunes window.
    Click on the little triangle above the column of numbers (usually on the far left side of the main iTunes window) and the media will sort in the order in which you added each item to the playlist.
    You can easily reorder songs within a playlist: Click and HOLD on the song you wish to move, then drag-and-drop it wherever you like.

  • How do I unlink my Apple ID from another persons I tunes account? I keep getting their security questions and one of my emails can't be used

    How do I unlink my Apple ID from another persons I tunes account? I keep getting their security questions and one of my emails can't be used. It keeps telling me I its linked to another account but it shouldn't anymore. Plus my security questions belong to the other person and it has no reset option

    depend on the version of itunes and if it's OS X or windows i suppose
    in itunes on ny computer in the upper right corner left of the search bar there is a circle with a black siloet  and my name beside it
    if I click on the v beside it I can a menu with logout as an option

  • Can I get more than one account on iphone microsoft exchange server

    Hi all,
    I was trying to get more than one account on iphone microsoft exchange server for mail, but it seems to only accept one. Is this true with everyone else out there. I guess I am one of the few people with more than one email account that uses microsoft exchange. I would love to have the convience of accessing them through iphone mail but it seems that I will be forced to use safari for the other two by typing owa... in the url.
    any workaround to the one email account per iphone policy??

    Yu can only have one Exchange Server account per device. This is true to iPhone and any Windows mobile device in the market. The work around is to set your other accounts that reside on an Exchange server using IMAP or POP settings as you used to do before the Version 2 update allowed you to sync directly to the Exchange Server. This methode will allow you to add as many accounts as you want or have.

  • How can one  read a Excel File and Upload into Table using Pl/SQL Code.

    How can one read a Excel File and Upload into Table using Pl/SQL Code.
    1. Excel File is on My PC.
    2. And I want to write a Stored Procedure or Package to do that.
    3. DataBase is on Other Server. Client-Server Environment.
    4. I am Using Toad or PlSql developer tool.

    If you would like to create a package/procedure in order to solve this problem consider using the UTL_FILE in built package, here are a few steps to get you going:
    1. Get your DBA to create directory object in oracle using the following command:
    create directory TEST_DIR as ‘directory_path’;
    Note: This directory is on the server.
    2. Grant read,write on directory directory_object_name to username;
    You can find out the directory_object_name value from dba_directories view if you are using the system user account.
    3. Logon as the user as mentioned above.
    Sample code read plain text file code, you can modify this code to suit your need (i.e. read a csv file)
    function getData(p_filename in varchar2,
    p_filepath in varchar2
    ) RETURN VARCHAR2 is
    input_file utl_file.file_type;
    --declare a buffer to read text data
    input_buffer varchar2(4000);
    begin
    --using the UTL_FILE in built package
    input_file := utl_file.fopen(p_filepath, p_filename, 'R');
    utl_file.get_line(input_file, input_buffer);
    --debug
    --dbms_output.put_line(input_buffer);
    utl_file.fclose(input_file);
    --return data
    return input_buffer;
    end;
    Hope this helps.

  • Table design one-to-one relation

    For a big table such as this: PROJECT_TABLE which contains 75 columns. But, only 40 columns are frequently searched against, i.e., the user enter some criteria on a web page, then start the search. The rest 35 columns are used on as-needed basis, i.e., only if the user want to view a specific record (in the returned search result). I am afraid that as the records grow, someday, the search will slow down (due to the large number of columns in the table).
    So, I plant to break the PROJECT_TABLE into two separate tables PROJECT_PARENT (project_id) and PROJECT_CHILD (project_id) and reference them by one-to-one relation. By this way, when the user conducts the search, it will be done against the PROJECT_PARENT table; while when user wants to view a specific record, it will then retrieve the data by using one-to-one join of the two tables.
    Like to know if it really help by breaking into two tables. What is your comment?
    Thanks
    Scott

    scottjhn wrote:
    For a big table such as this: PROJECT_TABLE which contains 75 columns. But, only 40 columns are frequently searched against, i.e., the user enter some criteria on a we page, then start the search. The rest 35 columns are used on as-needed basis, i.e., only if the user want to view a specific record (in the returned search result). I am afraid that as the records grow, someday, the search will slow down (due to the large number of columns in the table).
    So, I plant to break the PROJECT_TABLE into two separate tables PROJECT_PARENT (project_id) and PROJECT_CHILD (project_id) and reference them by one-to-one relation. By this way, when the user conducts the search, it will be done against the PROJECT_PARENT table; while when user wants to view a specific record, it will then retrieve the data by using one-to-one join of the two tables.
    Like to know if it really help by breaking into two tables. What is your comment?if you proceed, performance will be worse than if you do nothing.
    Do you suffer from Compulsive Tuning Disorder?
    Are you bored & looking for some activity to keep you busy?

  • 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.

  • Project Report for One Project Using Excel

    Hi,
    Is is possible to create a report for one project using excel?
    I want to create a pdp with an Excel Viewer web part and have the following tabs with data specific to the one project.
    1. Cover
    2. Issues
    3. Risks
    4. Deliverables
    I tried passing the ProjUid to an Excel doc via the Excel Query Filter Web Part and was able to filter the Issues lists only but don't know if its possible to filter out the other tabs by using the same paramater. Is this possible?
    I have not looked at Odata but was wondering if it was possible to pass a paramater to the odata query and still have the spreadsheet work in a web view in SharePoint?

    Hi,
    I'd say that as far as you promote the Proj UID field as a filter in all sheets of your Excel workbook, using the Excel
    Query Filter Web Part should work fine. But testing it should be easy, since you already did half of the work.
    See excellent article from Andrew on this topic:
    http://azlav.umtblog.com/2012/12/05/filtering-excel-webparts-in-office-365-part-2/
    http://azlav.umtblog.com/2012/07/03/creating-a-project-resource-list-in-a-pdp/
    Hope this helps,
    Guillaume Rouyre, MBA, MCP, MCTS |

  • How to create one to one relation in database diagram

    Hi!
    I'd like to create a database diagram in JDeveloper 10g. Is there any possibility to create a one-to-one relation between two tables?
    Thanks in advance,
    Jim

    This seems to be the same problem that I am having. I was trying to create a database diagram with tables imported from the database. I have two tables having a 1 --> 0..1 relationship. However when I pulled these tables on to a database diagram , it displayed as a 1 --> * relationship. I also realized that JDeveloper does not allow you to change the cardinality in a database diagram.
    As a workaround, I created a class diagram and named the classes the same as the database tables. Then I used UML connectors to show the relationships with the correct cardinality. Since I did not need to show the column names on the diagram, it was sufficient for my purpose. I hope this bug is fixed soon, otherwise I will have to use some other tool to create database diagrams.

  • TableSorter over more than one columns like Excel

    Hi Experts,
    do you have a example for TableSorter over more than one columns like Excel?
    Thank you very much.
    regards
    Steffen

    Hey,
    Please download the application mentioned in it.
    When i have excuted the application i could find sort enabled for all the columns.
    wdContext.currentContextElement().getTableSorter().sort( wdEvent, wdContext.nodeTableSet() );
    Please check it..
    Jithin
    Edited by: jithin james on Apr 16, 2009 10:47 AM

  • HT1926 When I try to install the update for iTunes, I keep getting the message "the application attempted to load the C runtime library incorrectly.  Contact the vendor.  I don't know if it's related, but my Microsoft Outlook is totally f*k up.  What's go

    When I try to install the update for iTunes, I keep getting the message "the application attempted to load the C runtime library incorrectly.  Contact the vendor.  I don't know if it's related, but my Microsoft Outlook is totally f*k up.  What's going on?

    Hey I finally got an older vesion of itunes to work!!! 10.7  x64 for windows 7
    After uninstalling all apple products even  quicktime
    I had to delete everything from (program files, and program  files x64, program data,)
    And all downloads from apple, and I went in to search deleted  other stuff from apple, and itunes
    But definently not my itunes library and Playlist
    Down loaded 10.7 x64 for windows 7, but checked (do not start  when done)
    Then I emptied my recycling bin and restarted my  PC
    I ran geek tech tool box same as reg cure pro, also PC Tools  registry cleaner, and CC Cleaner
    Then I emptied my recycling bin and restarted my  PC
    And wallah... It finally works, and I Love the older version  anyways.
    Easier to download and transfer  music!!!!!

Maybe you are looking for

  • Error while creating axis2 web service client

    Hi, I am making axis2 web services without using any tool . I made an aar file and deployed in the jboss application server . The aar deployed successfully. The server generated wsdl file. When i tried to make an axis2 client code from wsdl2java comm

  • Reference Mandatory

    Dear Friends, I have a requirement where i create a quantity contract with Agent and create a release order for sold to party  with reference to Quantity contract i.e while creating sales order i enter the sold to party first which is different from

  • Why does my printer connected through time capsule only print once after powering on then never again?

    Hey, I have a TimeCapsule which is logging in to my wireless network (i.e. it's not extending it, neither is it serving its own network). I have a Brother HL-2030 connected to it (via USB). I have two issues: * the printer will only print directly af

  • Naming Conventions for EP

    Hi all, There some official document about Naming Conventions for EP? Thanks.

  • Gpm 1.20.3-1 in Core

    In case you haven't seen the front page news: https://dev.archlinux.org/news/391/ When attempting to update to gpm 1.20.3-1, you will most likely get the following error message: error: could not prepare transaction error: failed to commit transactio