Results 1 to 4 of 4
  1. #1
    Esmatullaharifi is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Nov 2014
    Posts
    40

    Question attachment data type in SQL Server

    Hello dears!
    I have exported my ms access tables to SQL server 2014 and my tables field has attachment data type while SQL server 2014 does not support attachment data type, how to solve.


    Thanks,

  2. #2
    Rawb is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Dec 2009
    Location
    Somewhere
    Posts
    875
    It's generally not a good idea to include attachments in Tables themselves. I recommend you save the attachments to a location on the server and then store the path (as a text string) in the database.

    If you absolutely have to save them in the database though, you can "shoehorn" it in by creating two Columns in your Table:

    • Column 1 - The base filename (with extension) of the file. VARCHAR data type.
    • Column 2 - The contents of the file. VARBINARY(max) data type.

    You'd have to be responsible for programmatically pulling the files apart for storage and putting them back together for the user though.

  3. #3
    Esmatullaharifi is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Nov 2014
    Posts
    40
    i am not an expert for ms access i am a beginner please lead me to further information. Please provide full information to solve this problem i mean that i want to store the original file in the sql or access not to store the path. i waiting to your answer.

  4. #4
    tanvi is offline Competent Performer
    Windows XP Access 2010 32bit
    Join Date
    Mar 2012
    Posts
    100
    You can take the help of this article to solve your problem:
    http://blogs.msdn.com/b/ssma/archive...nversions.aspx

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

Similar Threads

  1. Attachment data type and Control question using VBA
    By johnnyBQue in forum Programming
    Replies: 4
    Last Post: 11-06-2014, 02:20 PM
  2. How to Define a Hyperlink Data Type in SQL Server
    By EddieN1 in forum SQL Server
    Replies: 3
    Last Post: 02-07-2013, 11:26 AM
  3. working with attachment field type
    By ricky99 in forum Forms
    Replies: 8
    Last Post: 09-16-2012, 03:59 AM
  4. Access and SQL Server data type problem
    By rayc in forum Access
    Replies: 1
    Last Post: 09-10-2010, 07:27 PM
  5. Attachment data type INSERT INTO not working
    By LouisLouis in forum Programming
    Replies: 0
    Last Post: 09-27-2009, 02:23 PM

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