Bigint from a SQL Server table and viewing with Access

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • scoots987

    Bigint from a SQL Server table and viewing with Access

    HI all, we have a table that has it's primary key data type Bigint. Is
    there any way with Access to view this table? I find it hard to
    believe that two tools from MS don't play nice with each other, may be
    I should.

    SQL Server 2005
    Access 2003

    TIA
  • Plamen Ratchev

    #2
    Re: Bigint from a SQL Server table and viewing with Access

    I have seen this problem and it was driver dependent. If I recall correctly
    the ODBC driver was problematic, but using OLEDB was fine. You can try to
    change drivers if you have different drivers available.

    Another work around would be to create a view in SQL Server to cast the
    problematic BIGINT column to a different data type (if numbers are smaller
    you can try INT, otherwise VARCHAR). Then use the view from Access.

    HTH,

    Plamen Ratchev


    Comment

    • scoots987

      #3
      Re: Bigint from a SQL Server table and viewing with Access

      On Mar 17, 10:32 am, "Plamen Ratchev" <Pla...@SQLStud io.comwrote:
      I have seen this problem and it was driver dependent. If I recall correctly
      the ODBC driver was problematic, but using OLEDB was fine. You can try to
      change drivers if you have different drivers available.
      >
      Another work around would be to create a view in SQL Server to cast the
      problematic BIGINT column to a different data type (if numbers are smaller
      you can try INT, otherwise VARCHAR). Then use the view from Access.
      >
      HTH,
      >
      Plamen Ratchevhttp://www.SQLStudio.c om
      Thanks Plamen, kind of feeling dense right now, how do you add a view
      in Access? I created a view in SQL Server but can't find the view in
      Access. Any quick hints on how to do that?

      Thanks!

      Comment

      • Plamen Ratchev

        #4
        Re: Bigint from a SQL Server table and viewing with Access

        Views are treated the same as tables. When you link tables in Access and you
        point to SQL Server, it should pull both the tables and views in one list (I
        believe it is labeled tables, but the views should be in that list too).

        HTH,

        Plamen Ratchev


        Comment

        • scoots987

          #5
          Re: Bigint from a SQL Server table and viewing with Access

          Aye, I was looking at the wrong server. Got it now. However, can we
          edit the data in a view from Access? Especially when casting the
          primary key to a varchar? This is encouraging so far. Great for
          running Access reports if they need it.

          Thanks for your help!

          Comment

          • Plamen Ratchev

            #6
            Re: Bigint from a SQL Server table and viewing with Access

            I am not sure how this will work with editing data. Access will need the
            primary key and it may or may not like the casted column. Try posting in the
            MS Access related forums for more help.

            HTH,

            Plamen Ratchev


            Comment

            Working...