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 Replies


ADVERTISEMENT

Forms :: Add Connection Info Of Tables

Oct 30, 2014

I created the database in the attachment. I have three tables which are connected. I am trying to create a form to show the connection of the tables. As you can see, I have inserted the 'Item Code' in the form 'Products'. I am trying to add 'Cndl Codes' and the 'Cndl Quantities' of each 'Item Code' showing above 'Item Code' in the form, but I don't know how to do it.

View 1 Replies View Related

Unexpected Error From External Database Driver

Jun 14, 2006

I am getting this error message:
"Unexpected Error from External Database Driver" when I try to import some .dbf files into Access. I just did some quick research, and it was suggested that I remove or rename the borland driver. Not sure how I feel about attempting that, plus, where do I get a new borland driver once the old is removed/renamed.

View 1 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

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 1 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

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

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

Access Database Info

Nov 24, 2006

When i"m creating a database and the tutorials tell me to select CHAR under DATA TYPE, that is not one of the selections. Can Someone tell me why??

Thanks,
aclcom

View 1 Replies View Related

ODBC Driver

Oct 19, 2006

I have a user that can only set up an Access ODBC driver using one listed as:

"Driver do Microsoft Access (*.mdb)"

They used to be able to set one up with listed as:

"Microsoft Access Driver (*.mdb)"

Any ideas as what the difference is and why it may have started preventing them from using the latter?

Thanks,

View 3 Replies View Related

General :: Why Is One Database Returning Info And Other Not

Jul 23, 2012

take a look at the 2 databases and the queries qryOSHAbyJob in the one database and qryOSHAJob in the other database?

One will return the data I want and the other one only returns the last record entered.

I will attach the db's. I am working in A2007.

View 2 Replies View Related

MS Oracle Driver Problem

Mar 9, 2007

Hi Guys,

I'm using this connection string below.

strConnection = "Driver={Microsoft ODBC for Oracle};Server=ServerName;uid=UID;pwd=PASSWORD;"


But I keep on getting this error.:
[Microsoft][ODBC driver for Oracle][Oracle]

Any ideas??

I have created a DSN with the same parameters and using the same driver and it still fails. What file should I update?

View 3 Replies View Related

ODBC Driver Woes!

Apr 29, 2005

I'm sure you've all seen this before - but, it's killing me. It's for a university project which is being demonstrated soon, and I can't get it working consistently!

When pages are loaded, I get the error -

Provider Error - 80004005, Unspecified Error /db/update_select.asp line 33 (line 33 is the connection to the database)

or

Internal Server Error 500 - Page cannot be displayed

And sometimes I get one about "Jet" "Threads", and ODBC stuff.

I'm guessing it's a driver problem, but I have no idea where to go from here! I'm running Windows 2000 Adv. Server, IIS 4 (I think) and my db is access 97 :O (I would have put a newer version on, but the CD-Rom is so old on the PC it won't take 700MB CDs! Argh.)

Any help would be greatly appreciated!

Ally
www.ally.nu

View 1 Replies View Related

How To Make Checklists And Other Info Docs From 'database' ???

Jan 16, 2007

Non-techy IT type of question...

How to best setup a database (knowledgebase) for use in making various work place hardcopy and electronic intetacive version process checklists that may share some of the same info ?

Eg, checklists for a building dept for how to get permits for different types of buildings that may all require some of the same types of plans and permit application docs, but may also require other plans/docs specific to the particular type of building... but in order to update a requirement in the checklist/s only one database item would need to be changed in order to update all the checklists that include that common item.

Then to carry it one step further... to use the same database to update info publications that may have checklist type information in the narratives about the same building permit requirements.

Hope that makes sense.
Thoughts ?
Where else to look ?

View 4 Replies View Related

Filter A Database Based On Text Box Info

Nov 20, 2014

I want to filter a database based on the info typed into the text box, after this, clicking on the button search and filter the database..I have an issue in my code, because I know just how to filter it based on a field but not for all..The fields I have are: Batchnumber, ModelnumberID, OperadorID, Datet, TestResults, Units and Status

My code is:

Me.Requery
Me.Filter = ""
Me.FilterOn = False

[code]....

View 4 Replies View Related

Driver Daily Log (Default Problems)

Mar 18, 2007

Hi all
Im trying to put together a Drivers Log that HGV drivers use on a laptop in there truck rather than having to fill in piles of paper work. The problem is you have to fill in your name, flt No: and regestration on every sheet, so I have decided to put together a db where as you fill as little information as possible which will be defaulted to every sheet (Form) and with a small portable printer in the truck, print out all the sheets, I have asked several questions about my db on this forum and they have been solved but Im having a problem with a default. Table1 (Form1) is the drivers details, it has a field "Drivers Name" Im wanting to default the field to the other tables in the db, The table 1 will not be open as when a driver fills in his details it will be saved and closed, My question is it possible to do this?????
Thank you

View 1 Replies View Related

Viewing Database Info In A Data Access Page

Oct 18, 2004

I am very new to access and have a question which I think is very easy to answer. What I have is an access file with a listing of companies, their contacts and what services we provide for them. (each company/client/service is listed in a row with each new set of information on the row below it).

What I am looking to do it to create a data access page that anyone in our office can view. I want the access page to have a text box where they can type in the name of the company, then click a 'search' button. That will then display the results in a box below everything. The results would be the contact and the services (there are other columns in the datasource as well, but I didn't list them).

If anyone can shed some light onto my problem it would be most appreciated!

Thanks

View 3 Replies View Related

Database External User Not On Same Server And Securing Info

Mar 6, 2015

Is it possible for me to give them access to part or all of the database so that they can run queries to target venue mailshots etc if so how would i do this?Secondly my concern is that the database is valuable and I want to protect myself from potential theft of info, ie what stops them taking the database and using it for there own purposes?

View 2 Replies View Related







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