Results 1 to 2 of 2
  1. #1
    Howard Firestone is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Jan 2014
    Posts
    1

    Access Field types change when relinking data from sql server

    We have been using an Access (Access 2013) program where we link the program to dataviews created in sql server.



    Recently we had to re-link the data views because a change had been made to them. When we relinked the data we noticed that the field type for the field used as the primary key changed from "Short Text" to "Long Text". The programmer who created the dataview from sql server said that nothing was done at that end that would have caused the change

    I know how to prevent the problem from recurring. We are changing the sql server spec from VARCHAR(8000) to CHAR(20).

    I was wondering if anyone had a similar experience and if they had any idea of what would have caused this to occur

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    I don't use sql server, but I have used access to interact with Oracle.
    A field defined with an Oracle or SQL Server datatype that does not have an equivalent in Access
    is mapped to something that will fit.
    I had long strings (forgotten the actual name) in Oracle that became memo fields in Access
    As for SQL Server varchar(8000) would not seem to be accommodated by Short Text to me.
    It may have been the relink that caused a validation of the varchar(8000) and short text; recognized the issue and corrected it to Long Text.

    From M$oft

    Text and Memo data types
    Text and Memo data types have been renamed and given slightly modified functionality. The Text data type has been renamed "Short Text." A Short Text field can contain up to 255 characters in a desktop database. In an Access app, the default character limit is 255, but it can be increased to 4000 in the field properties.
    The Memo data type has been renamed "Long Text." A Long Text field can contain up to about a gigabyte of data in a desktop database, and up to 2^30-1 bytes in an Access app.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Change Pivot Data Source from MS Access to SQL Server
    By rjbautista20 in forum SQL Server
    Replies: 3
    Last Post: 06-24-2013, 11:36 PM
  2. Replies: 11
    Last Post: 10-22-2012, 08:39 AM
  3. Change Data Types in a Make Table Query
    By nyneave in forum Queries
    Replies: 1
    Last Post: 09-18-2012, 11:46 PM
  4. SQL Server/VBA Data Types - Long & BigInt
    By Patrick.Grant01 in forum Programming
    Replies: 0
    Last Post: 06-05-2009, 09:24 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums