Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Connecting to access db on live site server

  • 21-01-2008 8:08am
    #1
    Registered Users, Registered Users 2 Posts: 872 ✭✭✭


    Hi,

    I have been upgrading my aunts website and have changed it to .net.

    When it was classic asp i used a dsn to connect to the db.

    Now it is .net i am unsure how to specify the path to the db. I have put the db in the app_data folder and i can connect to it locally using the following:
    <add key="dbConnection" value="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\data\\mj.mdb;Persist Security Info=False;"/>
    

    I now want to place the site live but im unsure what path to specify in the datasource for the db?

    The existing dsn looks like the following, in case it helps
    DefaultDir=\\10.10.10.25\www\m\i\d\www.thesite.com
    

    Thanks


Comments

  • Closed Accounts Posts: 345 ✭✭FindingNemo


    grahamor wrote: »
    Hi,

    I have been upgrading my aunts website and have changed it to .net.

    When it was classic asp i used a dsn to connect to the db.

    Now it is .net i am unsure how to specify the path to the db. I have put the db in the app_data folder and i can connect to it locally using the following:
    <add key="dbConnection" value="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\data\\mj.mdb;Persist Security Info=False;"/>
    

    I now want to place the site live but im unsure what path to specify in the datasource for the db?

    The existing dsn looks like the following, in case it helps
    DefaultDir=\\10.10.10.25\www\m\i\d\www.thesite.com
    

    Thanks

    www.connectionstrings.com


  • Registered Users, Registered Users 2 Posts: 1,530 ✭✭✭CptSternn


    The database your connecting to is a .mdb - thats Access 2003 and prior. The connection string you are using is for an Access 2007 database - which is a accdb file NOT mdb.

    Check the above link and use the earlier access connection string and not the 2007 string.


Advertisement