i have been thru a couple of books on ASP working with IIS 5.0 but still havent figured out how to connect to a MS Access database. the problem is with the SQL which i dont know well. My database has 6 related tables.
It's for inventory control. The 1st table has the catagort the 2nd has the machines per category, the 3rd has machine parts per machine and so on. what I have been trying to do is to view the database for the latest updates per machine (which for now i am updating manually for the time being ) but the code dosent work and i get some errors one of which is " use an updateable qurrey" and others are related to SQl with every modification i make.
Is their a way to check with asp-code if a database field is relational with another field (from another table)? For example: If fieldname = relational Then... End If
I have a table (Software Table) in a database that is linked with a many to one relation to another table (Computer Table). I wrote a simple ASP page to return the records for the software table which shares a one to many realtion with the Computer Table.
One (Software Table) to Many (Computer Table)
At persent the only records that are returned are the ones from the software table. Is there some way to return or display the many computers (one to many) for each record.I cant think how to start to do this. Can I link to computer table and have a drop down that lists the many computers?a better way to display this information?
I have moved my database from an sql2000 server to an SQL7 server I am trying to connect to the database using windows authentication (no need for username and password) but I keep getting this error:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005) [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
I have already created a DSN driver named "projects" to point at the server
This is the code I have used:
set con = Server.CreateObject("ADODB.connection")
' Use the object to open the inventory ODBC DSN con.Open ("dsn=projects,"",""")
I have set my sitein the following directory "C:InetpupwwwrootShevi" In this I have all my html and asp files.I also have a database called "guest.mdb" I use this code to connect to my database and read and write..But it doesn't work..Sometimes it just shows the records in the databse but when I try to submit a new record (through a form) it gives me errors.
set Conn = Server.CreateObject("ADODB.Connection") Conn.Open("DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & server.MapPath("sheviguest.mdb")) set rs=server.CreateObject("ADODB.Recordset") rs.CursorType = adOpenKeyset rs.open "SELECT * FROM Guestbook", Conn
I've created a MySQL database and i'm trying to connect to it to retrieve data using MyODBC and ASP.. I tested it on IIS 5.0 but it keeps saying that it couldn't connect to the database..
I have a webpage on my Local Host Server - IP: 127.0.0.1.I have a Access Database called "database.mdb" hosted on a Second Server in a folder called "db" -
IP: 134.67.23.5 The IP Address is only an example So the address of my database would for this example be
I'm using VB with ASP and need to access a database, was going to use Access or Oracle access more then likely. I don't know how to do this does anyone have a simple example?
I am trying to connect to my database using (the database is stored at D:InetPubmysitesdatabaseMYadmin.mdb):
Const dbPath = "databaseMYadmin.mdb"
But it returns the error:
'D:Inetpubmysiteswebsite1htdocsdatabaseMYadmin.mdb' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides. Is there a way to define the root folder (say as 'D:Inetpubmysitesdatabase), or will I have to move the website to be outside of the /website1/htdocs/ folder?
I have started to recieve the following error after creating a new database and a DSN connection to this database
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.
my company is having me design a website for them and I did it in ASP (Classic), with the backend database being SQL Server 2000. I open the connection just fine, and everything seems to work but there's just one problem:
It only connects to the database when I'm logged in as Administrator on the machine (or from a remote machine); if I use my own username/password, I get a 500 Internal Server Error. What's funnier is that if I set IIS to allow anonymous access, it won't let ANYONE connect to it.
Any ideas what's the problem? I think it's something with the connection string (I told it to use a Trusted Connection because otherwise it was saying "[Username] is not associated with a trusted SQL Connection), but since I haven't used SQL Server in the past it might be something with that, as well.
I am wondering if it is possible to connect to database and fetch data inside a javascript/vbscript?? if so what are the differances with ordinary code which we are writing in asp?
what I am trying to do it set a logout time on a control panel for those times when a user forgets to hit "logout" button. Based on some examples I have been looking at I have done the following, can I just get your feedback in terms of whether this will work ok?
Sub Session_OnEnd Application.Lock Application("visitors")=Application("visitors")-1 logoutcheck Application.UnLock End Sub
Set obj = Server.CreateObject("ADODB.Connection") obj.Open "bmtb"
Now I understand that "bmtb" can be a server-side include file and have information including a path to the database. The connection works fine, but for the life of me I can't seem to find the SSI anywhere in the project. By the way this is someone else's project I have become responsible for. where the file could be hidden? It's not under "bmtb". Is it possible bmtb is some kind of ASP keyword? (grasping at straws here).
I've been setting up an off the shelf access website, in order to install SSL it requires me to copy over some checkout pages to a seperate SSL webserver on another domain. However those scripts need to connect back to the database on the non SSL server to pick up order and customer information.
This of course only works for scripts on the same server, is there a way of connecting to a database on another server? does it require a complicated path, or additional files or what not.
I've got a database on my web server and when I create the connection using a custom connection string within Dreamweaver, it connects with no problems. However, Dreamweaver then doesn't see the tables in the database. I know there's an issue with SP2 and Dreamweaver but I've installed the patch and it hasn't made any difference.
currently i m working on a web-based project using asp.net and mysql database. i using MySQL Connector/Net to connect my asp.net page to the to MySQL database server. My database is stored in the ftp server. In short, i m trying to connect my asp.net page to the ftp database server. Code:
I am trying to get my asp page to connect to my Access database. The first time I run a page, it loads fine. Every time after that I get the following error:
Microsoft JET Database Engine (0x80004005) Could not use ''; file already in use.
My code to connect to the database is as follows:
Provider=Microsoft.JET.OLEDB.4.0; Data Source=C:Inetpubwwwrootwebdatabase.mdb; JET OLEDBatabase Password=password
Set cmdRecordset= Server.CreateObject("ADODB.Command") cmdRecordset.ActiveConnection = strConnection Set rsRecordset = Server.CreateObject("ADODB.Recordset")
After many hours trying I've found this to be an impossible task when the database is open by another user or is running as a service on a server.However, if you need to do this I've come up with a method.If you add some code to the exclusive database that exports the data to another database every hour then you can access the data that way.
Fair enough, it's not live data but if you do it on the hour every hour then you know when it's been updated.I'm just about to work on the VBA for Access.
I would like to write ASP code to create a custom report for a simply accounting database. The databse is saved with a .sdb extension. I am able to access the data via access or excel so I should be able to connect to it with ASP code. Does anyone know how?
My Active Server Pages Application is unable to connect to MS SQL Server 2005 Database while the existing application works fine connecting to SQL Server 2000.
What i need to do is build 2 tables below with the following fields:
tblUsers id name address postcode
tblShop id product
Now i need to build a relation between the two id fields but what i relaly need to know is how to retreve the data in the tblUsers from the id in the tblShop through asp. This is like for a shop
I have an interview for job which requires following: 1.Modeling and Designing Relational Databases 2.Database applications for the web 3.Server side Programming using PHP 4.Macromedia Flash and Dynamic Data 5.Internet and Web Protocols 6.Installing Apache Web Server, PHP and MySQL 7.Authentication and Security 8.Integrating Streaming media into web development 9.Understanding Mobile Communications can anyone pls suggest me what Dynamic Data in point 4 means?Also what is Integrating Streaming Media of point 8?and when it says mobile communication.
I have a database which contains 2 tables. One which contains standard information (which every record has) and then the other, which is a relational table and is just a long list of records with different attributes that apply to various id numbers found in the first table. Both tables are contain records with the same ID number.
Now, I have an ASP file that accesses the MDB file and displays it in XML format. I have it working for only the first table. However, I was wondering how I would go about getting entries from the second table entered.
So it would display the items from the first table on 1 line - and then add on anything from the 2nd table that applies to that ID - all on one line. Code:
I have a db table with 3 rows (ID, date, points). How can I in my script tell that ID 1=Mike and ID 2=Thomas and ID 3=William without making a new field in my table?