Transfering rows from access database to sql sever database

  • Phil Parkin (5/21/2010)


    da-zero (5/21/2010)


    Yeah, I'm very fortunate to have never worked with Access before, so I didn't realize the getdate() function doesn't exist in Access. Apparently Now() is the equivalent (Google is your friend).

    Also, I used the column DateColumn as an example.

    I'm pretty sure you have to replace that with the correct column.

    You beat me!

    Ha! This is my revenge because you beat me earlier in this topic. (not sure this is the correct past tense for to beat, mais bon).

    Revenge can be sweet on a Friday afternoon 😀

    To take it even further, in the document that the OP posted as an attachment, which you clearly didn't read :-P, you can see that the OP didn't use select * but used named columns instead.

    Now I'm off to indulge myself in the finest Belgian beers. 😀

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP

  • There was an error displaying the preview.

    ------------------------------

    ADDITIONAL INFORMATION:

    Invalid use of '.', '!', or '()'. in query expression 'TransactionLog. TIME > DATE ()'. (Microsoft JET Database Engine)

    still I m getting above error.

    I have attached snap shot in next post

  • Please find the attchment

  • There should be no space before 'TIME' in your query.

    The absence of evidence is not evidence of absence.
    Martin Rees

    You can lead a horse to water, but a pencil must be lead.
    Stan Laurel

  • Anyone of u please please help me guys. I have to deploy this today:crying:

  • da-zero (5/21/2010)


    Phil Parkin (5/21/2010)


    da-zero (5/21/2010)


    Yeah, I'm very fortunate to have never worked with Access before, so I didn't realize the getdate() function doesn't exist in Access. Apparently Now() is the equivalent (Google is your friend).

    Also, I used the column DateColumn as an example.

    I'm pretty sure you have to replace that with the correct column.

    You beat me!

    Ha! This is my revenge because you beat me earlier in this topic. (not sure this is the correct past tense for to beat, mais bon).

    Revenge can be sweet on a Friday afternoon 😀

    To take it even further, in the document that the OP posted as an attachment, which you clearly didn't read :-P, you can see that the OP didn't use select * but used named columns instead.

    Now I'm off to indulge myself in the finest Belgian beers. 😀

    The * is back in the latest doc - my post was an act of prescience.

    Belgian beers, you lucky ******* :smooooth: I have to wait just a few more hours before my hands land on that first glorious Friday afternoon beer 🙂

    The absence of evidence is not evidence of absence.
    Martin Rees

    You can lead a horse to water, but a pencil must be lead.
    Stan Laurel

  • Hey parkin,

    Its showing error for where clause and even then if i give ok space will be automatically inserted.

    I checked its twice

    I doubt whether i can use where clause in access db.

    I will check in google ma frnd and revert to u

  • You can DEFINITELY use a WHERE clause in Access.

    Try building the query in Access - might speed things up for you. When it's working, just grab the SQL and then paste it into your SSIS query def.

    The absence of evidence is not evidence of absence.
    Martin Rees

    You can lead a horse to water, but a pencil must be lead.
    Stan Laurel

  • Hey

    SELECT ID, SiteName, DRCNum, TypeID, Point, [Time], CardNumber, FormatName

    FROM TransactionLog

    WHERE (ID > 5)

    above query perfectly works i have used other column ID when i use Time column its giving error.

    Should i have to use any other operators or inbuilt functions to check for date.

    Please reply me.

  • What is the data type, in Access, of the TIME column?

    The absence of evidence is not evidence of absence.
    Martin Rees

    You can lead a horse to water, but a pencil must be lead.
    Stan Laurel

  • It is Date/Time datatype

  • K guys i m extremely sorry for wasting your time. Even too gave up.

    Thank u for helping me to solve my issue.

    Sachin

Viewing 12 posts - 16 through 26 (of 26 total)

You must be logged in to reply to this topic. Login to reply