Results 1 to 5 of 5
  1. #1
    johnseito is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2013
    Posts
    419

    Access connection to MS sql server

    Hello,

    Could someone provide me an example on how to connect ACCESS to Microsoft SQL server if given the server name, and login and database name but no password as

    servername.connect12.com, 15234
    Login as in co/age213


    Database name dbFruits

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    in access , external data tab,
    (in newer access) New data source,
    from other sources,
    odbc,
    link,
    fill out info

    in older access,
    click OCBC,
    same info

  3. #3
    johnseito is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2013
    Posts
    419
    I did as told by you. Connection failed.
    SQL server error: 53

  4. #4
    johnseito is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2013
    Posts
    419
    can we connect via VBA code ?

  5. #5
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,043
    To SQL server you don't need an ODBC connection. Use the native SQL driver. Then ask your SQL database administrator to add your windows login to a SQL user group or provide you with an SQL login and password. Without it, you cannot connect, that's the whole point of SQL security. This is made on 2 levels: first you need an account/login to login to the SQL server and above that you need a valid user + password to the database you want to use.

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

Similar Threads

  1. Replies: 1
    Last Post: 06-25-2018, 04:15 PM
  2. Replies: 5
    Last Post: 12-16-2015, 02:23 PM
  3. Connection to SQL Server ODBC Failed
    By Historypaul in forum SQL Server
    Replies: 2
    Last Post: 01-05-2015, 01:50 PM
  4. Replies: 0
    Last Post: 03-08-2012, 03:12 AM
  5. SQL Server 2005 Connection
    By Patrick.Grant01 in forum Import/Export Data
    Replies: 2
    Last Post: 06-18-2009, 11:22 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