# Need help with correct path to db

**URL:** <https://forum.kirupa.com/t/need-help-with-correct-path-to-db/249722>\
**Category:** Uncategorized\
**Created:** [January 22, 2008, 1:02am UTC](https://forum.kirupa.com/t/need-help-with-correct-path-to-db/249722 "2008-01-22T01:02:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![somnamblst](https://avatars.discourse-cdn.com/v4/letter/s/a4c791/32.png) [@somnamblst](https://forum.kirupa.com/u/somnamblst)\
**Post date:** [January 22, 2008, 1:02am UTC](https://forum.kirupa.com/t/need-help-with-correct-path-to-db/249722/1 "2008-01-22T01:02:13Z")

</div>

I have one that is correct for another server, so I used that one as my basis for this one

```auto
Set conn = Server.CreateObject("ADODB.Connection") conn.Open "Driver={Microsoft Access Driver (*.mdb)};DBQ=\\content\main_data\onlineNew.mdb;"  
 SQL = "INSERT INTO table1

```

But I get an incorrect path error, for the above and DBQ=\onlineNew.mdb & DBQ=\content\onlineNew.mdb

For simplicity and testing I have my form, ASP script & db named onlineNew.mdb all in one directory on a 3rd party ASP server.

Also do I need to set file permissions on onlineNew.mdb?
