DNS Less Database Connection Trouble

Dec 25, 2004

I'm trying to use a banner ads .asp program called Admentor.
My problem is that this uses DNS less connection and I can't get this working on both the pages showing the ads and the admin panel.

I know it's the path to the database that causes this.
If I change this to suite the webpages showing ads, it work's, and if I modify it to suite the admin panel it work's.
But not both at the same time.

Should'nt this path be relative to the sites root ?


g_Admentor_strConnect = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ="& Server.MapPath("../ads/admentor/ad97.mdb")


when using this string, the webpages showing banners is working, but when clicking on these, the site calles a redirect .asp page that also uses this database connection. Then it fails, since this page is located in another folder in the site and therefore also gets another path to the database.

How can I get this to be a relative path working on all pages not been worried about folders, subfolders and correct paths to the base ???



Best regards
Ketil Leinum
Norway

View Replies


ADVERTISEMENT

Trouble Establishing A Subform Connection (relationship)

Feb 20, 2006

I am having trouble establishing a subform connection (relationship) to a main form. I am using Access 2003.

I am creating a medical record database where I already have one form / subform relationship established that works. However, I created another form where I want to indicate the Physician(s) information within the main form and his specialties within a subform. I need to use the subform because one physician can have more than one specialty.

My fields within two tables are:
Doctor (Table)
ID
Doctor First Name (Key)
Doctor Last Name (Key)
Doctor Address
Doctor City
Doctor State
Specialty (Related Field)

Doctor Specialty (Table)
ID (Key)
Doctor First Name
Doctor Last Name
Specialty (Related Field)

The problem
I can’t establish the relationship.:confused: Also, when I look at my relation diagram – does each table have to relate to another? Can I have two separate relationships indicated?

View 5 Replies View Related

Database Connection Prompt

Sep 30, 2005

I have a combo box that is populated by a query. The problem is that the query pulls data from a different database than the rest of the form and it prompts the user for a password to access this database.
Is there any way of coding the password into the form so that the connection to the database is opened automatically without prompting the user?
Thanks.

View 4 Replies View Related

Database Connection Problem

May 9, 2005

hi, below are the codings i input.
I just cannot get the connection to open. error is at "objConn.open"
I have also given the user full access right. folder attribute however, always reverts back to "read-only" whenever i try to turn "read-only" off.
Please help!

Set objConn = Server.CreateObject("ADODB.Connection")
Set objRs = Server.CreateObject("ADODB.Recordset")

objConn.ConnectionString = "PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source="& server.MapPath("db.mdb")


objConn.Open


sql = "Select * From tblReceipt"

objRs.CursorLocation = 3
objRs.CursorType = 3

objRs.ActiveConnection = objConn

objRs.source = sql
objRs.open

View 1 Replies View Related

Beginner ASP Need Database Connection Help

May 1, 2007

Hi, I went to school over 4 years ago learning ASP but I forgot almost everything.

I am able to setup a connection to a an Ms Access file and get information using Windowx XP's IIS.

I need to change the code where the location of the Access file is on my computer to my webhost.

In other words, I have uploaded all the pages and the Access db file but now the pages can't find the Access db because the file was original on my computer in a certain folder. Now that it is uploaded, I need to change the location where it searches for the db from my computer to my webhost.

I have not dealt with ASP for almost 5 years ago.

Please give advice, or websites or 3rd party programs that can do this for me.

I am trying to build a webiste where you enter the username and login then be able to retrieve information or update, or add new or delete from the Access db.

This should be a simple problem for most you professionals out there.

View 2 Replies View Related

Database Connection - Noob Question

Jul 26, 2005

Hi,

I apologize first of all if this question is bounced up and down through out the forum all the time, and if there's already a topic on this, then it'd be perfect for me. But im not having any luck.

I do not know how to upload my database in a way that it will work when i try to use a page through microsoft frontpage to display results from it.

What are the accurate steps into creating a database connection? Thanks a bunch

View 3 Replies View Related

Store ODBC Connection With Database

Mar 9, 2007

Really don't know the answer to this question and I thought I'd come to the experts. I have created an Access database that I use to push & pull data from an SQL database through linked tables. I created an ODBC connection on my PC and set it so the links keep the username and password for the ODBC connection. All that works great...Now my question - Is it possible to somehow "store" the ODBC connection within the Access database so that I don't have to go to every PC that is going to be running this database and create an ODBC connection? The Access database and the SQL database both exist on our network and all those that will be using it have access to both. If someone has the answer I would really appreciate it.

Thanks

View 8 Replies View Related

Database Connection Info And Driver

Nov 24, 2004

Hey,

Im doing a login page for my website, and i am having trouble connecting to the DB:

'Database connection info and driver
strCon = "DRIVER={Microsoft Access Driver (*.mdb)};uid=;pwd=letmein; DBQ=" & Server.MapPath(strAccessDB)

where strAccessDB = "cs334-45/Kosy/Kosy.mdb"

cs334-45 is my computer name in the virtual directory.


Im getting this error:

Server.MapPath(), ASP 0172 (0x80004005)
The Path parameter for the MapPath method must be a virtual path. A physical path was used.
/Kosy/check_user.asp, line 21

I dont understand. I thought that the virtual directory was mapped to the physical directory
anyway? So why do I have to enter a virtual path?

View 1 Replies View Related

Split Database Persistent Connection

Jul 6, 2015

Using Access 2013.

We have split a database and have about 6 users connected to a gigabit switch. There is a noticeable delay of about 5 to 15 seconds when we search by an account name. We are working with a split form, where it has the database records listed at the bottom half of the screen.

Is there a way to improve the performance? I tried a persistent connection, but it didn't seem to work and would occasionally get an error message.

View 9 Replies View Related

Error Establishing Connection With MS Access Database!!

Apr 9, 2006

hi guys,
this is my first thread on this forum...,, i am new out here..

i am not able to establish a connection with a MS Access database. I am using DSN Connection for it..

The error that i am getting is...//

Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] The Microsoft Jet database engine cannot open the file '(unknown)'. It is already opened exclusively by another user, or you need permission to view its data.
/airtickets/scripts/dbconn.asp, line 4

please help...??

View 2 Replies View Related

General :: Closing ODBC Connection To Database

Nov 18, 2012

I have a back end 2002 DB. I would like to disallow access to this through odbc connection. Is there some way this can be achieved? Thie directory where it is located is unfortnately cannot be restricted as the front end mde also resides there.

View 1 Replies View Related

Modules & VBA :: Automatically Linking Database With ODBC Connection

Jun 26, 2015

I am looking to automate the process of linking my Access DB with an ODBC connection to an SQL DB with VBA (unless there's an easier way to do it?) - some sample code - if this is possible at all?

View 2 Replies View Related

How To Get Correct Records Through Odbc Connection To Oracle Database

Jan 10, 2013

we have Oracle 11g as main database and for viewing purpose, we have created an mdb (Access 2007) using Link tables via ODBC connection (system DSN).While querying, count queries are working fine with accurate record counts but, all select queries are not working fine. It filters and displays with wrong records. There is no issue in query building.how to get correct records through odbc connection to Oracle database.

View 3 Replies View Related

Trouble Opening Database For Multiple Users.

May 22, 2006

We have an access Database stored on a server that until now was only ever accessed by the one user. Now more users need to access it at the same time. However when a second user trys to open the database the error message "File Already in use appears". I did not create this database so have no idea how it was set up. I think it may have something to do with being opened up exclusively. Is there anyway around this by creating a short cut or changing any kind of propertties?

View 2 Replies View Related

Trouble! Replacing Characters In A Large Access Database

Jun 1, 2007

Howdy,

I am trying to clean up one field of a large database. Currently this field has many records that are listed as "XXXX, Inc.". I am trying to find a way to change all of those to "XXXX Inc" in the entire database.

I saw raskews code snippet on changing multiple characters in a string, but I have to admit I have only use VBA in Excel before and having a hard time with the basics.

Does anyone have some code or ideas on how to do this or something similar?
:confused:

Thanks,
Will

View 4 Replies View Related

How To Establish The Connection Between Ms-Access2000 & Oracle Using DAO Connection?

Sep 26, 2005

Dear Guys,
How to Establish the connection between Ms-Access2000 & Oracle using DAO Connection through Code?.

I created one table in Oracle and I created User-DSN in ODBC.
I linked that oracle table into Ms-Access MDB using Link table option in ms-Access.

Now, Whenever I open that mdb, we need to establish the ODBC connectivity automatically through code (I mean, we need to refresh automatically).

I need to hardcode all the information in the Ms-Access code.

My User DSN Name: abcd
Oracle Database Name: abcd
Schema Name(User Name): abcd
password: abcd

View 1 Replies View Related

Modules & VBA :: Refresh Linked Tables When Connection Lost Without Closing Access Database

Sep 4, 2014

I have MDB database linked to SQL SERVER through VPN connection.I created links to the sql server Links are dsnless..Everything works fine but when I lost VPN connection or sql connection has been broken I can't refresh links to the tables.I receive message 3146 sql connection failed..I must close database and start again...

I tried different methods like ado,dao, and vba docmd.transferdatabase,aclink... but no success, table cant be relinked.

Only way I can relink is to change ip adress in conn.string

E.g. 192.124.0.2 (1st ip- router server ip) and after connection failed i can use 192.124.0.32 (2nd ip - server local ip) and that's it if i lost connection for the 3rd time... i must restart application.

It seems that access database keep the previous connection..how to reset or drop database connection to the sql server and refresh links to the tables with vba code without closing access database...

View 12 Replies View Related

DNS Connection --> DNSless Connection

Jan 9, 2005

Right Ok i hope i can get some help cause im absolutely stumped..
i cant get my login page to work since moving it from my PWS(iis on xp) DSN connection
to a 24/7 server on the net with DSNless connection
here is the code for the include file "conntopwd.asp"
http://www.pritchardwebdesign.pwp.blueyonder.co.uk/conntopwd.txt
the username and path has been changed slightly for security purposes,
and the code for the login page which attempts to access the database is here
http://www.pritchardwebdesign.pwp.blueyonder.co.uk/login.txt
the connection has been tested by one of the tech support guys at brinkster and he told me it was ok,
the problem was the way that the data is called from the data base is wrong ..
The tech support guy said that it was this line that was causing the problem..
MM_rsUser.ActiveConnection = MM_conntopwd_STRING
Any help would be much appreciated as im stuck for now..

View 2 Replies View Related

Sql Connection

Sep 29, 2006

Is it possible to connect access data project with two or more sql databases?

Thank you

View 2 Replies View Related

ADO Connection

Feb 10, 2005

I have a data base that I use ADO primarly to connect to the backend access database. Each time I query a table I create a new connection and then kill the connection after I'm done with it. Should I be creating a global connection and leave open the entire time the program is open, or should I be killing the connection each time?

View 1 Replies View Related

ADO.NET Connection - Help?

Feb 28, 2005

I simply want to create a connection to an Access db, and run an execute an SQL statement.
I have only used RecordSets in the past, so this ADO.NET is completely new to me.

Can someone give me a sample code to execute an SQL statement, and take the result and assign it to a string variable?

I can bind my results to a DataGrid, but if I need it in a string, what good does that do me???

Also, I am only familiar with VB, but if someone has to post it in C#, I'm sure I can figure it out! I appreciate any help.

View 1 Replies View Related

ADO Connection

May 27, 2005

hi everyone;
I'm trying to make an ADO connection to my local database named "dbTest.mdb".
Here is the code I'm writing in my editor:

Code: <body> <% Set CN =server.CreateObject("ADODB.Connection") CN.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:InetpubwwwrootNew FolderdatadbTest.mdb;Persist Security Info=False" Set RS =server.CreateObject("ADODB.Recordset") Set RS.ActiveConnection = CN RS.Source = "select * from tblTest" RS.CursorLocation = adUseServer RS.CursorType = adOpenKeyset RS.LockType = adLockOptimistic RS.Open response.Write(RS.fields(0)) RS.close Set RS=Nothing %> </body>

and this error comes up in my browser:

Code: Error Type: ADODB.Recordset (0x800A0BB9) Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another. whats the problem with my code???!!

View 1 Replies View Related

Using DSN-less Connection

Apr 19, 2006

Good Morning,

Rookie Alert ! I am trying to incorporate simple Access database to web page. In page one, I use Database Results Wizard to display records in database. I pass parameter (last name) via hyperlink to second web page to view complete record. I always get no records found. When I asked tech support, they sent me this:

We do not have registered DSN's on the host server. You will need to use a DSN-less connection string using an absolute path to the file. The path to your account is c:accountsusername and from there you would add the path to the db within your home directory, I.E. -

"Driver={Microsoft Access Driver (*.mdb)};Dbq=c:accountsusernamewwwRootmydataba se.mdb;Uid=Admin;Pwd=;"

I have seen other references to this and I have tried what they said with no luck. Where in the page code would I put this? I am using Frontpage 2003. Any suggestions would be helpful or a working example would be nice.

To look at what I am doing, go to test page:

www.adjustertraining.net/searchresume1.asp

Thanks in advance.

View 1 Replies View Related

Connection To MySQL Thru DSN

May 7, 2006

I will create an Access application as a Front end application. The matter is that the users will need to update some data from Internet where there is a MySql server.
I thought in creating a local DSN to connect to that MySql server. Is it right ?
I already created it but... I dont know the code to connect it from Access.
Could you please help me with the code to write in Access ? Im a new with it. sorry.
Or you can send me an example of it in an Access database to: osvaldo@ord.com.ar

Thank you very much
Osvaldo

View 4 Replies View Related

ODBC Connection

Jun 21, 2006

Hi Everybody!

I am creating an Access database that will be used by multiple users. This database will be on the network and will be the front end of an oracle database connected to it via ODBC. Do I have to set up the ODBC to oracle only on the machine that hold the database on the network or do I have to set up an ODBC on each user's machine?

Thank you for your help.

View 11 Replies View Related

Slow Connection

Aug 24, 2006

hi all,

i'm create a aplication in ms access 2000 developer edition. this app comunicate with sql 2000.

we have problem with slow connection provided by access. in headquater wher people use access app it working quickly. sql 2000 is localted at headquarter too. but if i run app in warehouse it working very slowly.

VPN connection doesn't slow. but access can't use all vpn connection capacity but only 1/5 from this capacity?

how can i do something that acces can use all capacity that i have?

example: link is 512 kbps but access use only 100kbps and work very slowly.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved