This is a discussion on "dns less connection String" within the Classic ASP section. This forum, and the thread "dns less connection String are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
dns less connection String
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
dns less connection String
What is the right code for creating a dns connection string to the following address. dnot know the local address
http://www.tribassrecords.co.uk/dba/tribassrecords.mdb |
|
|
|
|||
|
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.open "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.MapPath("dba/tribassrecords.mdb") & ";" |
|
|||
|
Its gonna be one of these:
|
|
|||
|
keep getting back http error code 401 unathorised
|
|
|||
|
I'm not big on Access, but I'd say you'll need to check the permissions on the .MDB file.
|
|
|||
|
make sure its on a writable path??? like brinkster has a /db directory for read/write to databases
if it still doesn't work and you've contacted your sys admin you can try this out : http://www.webwizguide.info/asp/tuto...tabase_pt2.asp |
|
|||
|
<blockquote id="quote"><font size="1" face="geneva, verdana, arial" id="quote">quote:<hr height="1" noshade id="quote">Originally posted by djaccess
keep getting back http error code 401 unathorised <hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote"> Make sure you have set full read/writ permissions the IUSR account on the database file/directory. You may need to contact your host to get this done. P.s. when you have a live site, you should make so effort to hide the location of the Access database. Preferably put it in a directory which is below web access (many hosts provide a 'data' directory alongside a 'web' or 'www' directory). If you can't do that, name the directory and database something obscure. You may want to do this before you contact your host to set permissions, otherwise they may have to be re-set. |
![]() |
| Tags |
| dns, less, connection, string |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [SOLVED] Connection string for password protected databases | alexgeek | Classic ASP | 6 | Oct 31st, 2007 15:59 |
| MySQL Connection String Info | Monie | Classic ASP | 9 | Oct 24th, 2007 01:48 |
| ODBC connection | go4kpo | PHP Forum | 2 | Jul 10th, 2007 14:20 |
| PHP n MySQL connection | uddin | PHP Forum | 1 | Apr 18th, 2007 06:41 |
| Connection String DSN-less | gwx03 | Classic ASP | 11 | Nov 26th, 2003 12:07 |