My ASP pages have very slow connections with SQL Server database, although eventually it will reach the page and get the results. The SQL Server database and IIS are in the same machine, I have no idea why it will cause the problem.
I have an application written in ASP. It only uses JavaScript (.js) on client side. If the browser is accessing the web site through fast connections, like intranet or broadband, everything is fine; but if the browser accesses the web site through slow connections like dial-up, IE continuously crash when you click on buttons or images in the web page. The crash is always in MSHTML.DLL.
The server is Windows 2000 Advanced Server with SP4 and all updates. The client machine is Windows 2000 Pro with SP4 and all updates. The browser is IE6 SP1. The same client machine, if I am visiting the application through local network, it's ok; if I disabled LAN and use built-in modem to use dial-up to connect to the web server, the IE always crash. We already disabled all firewall when testing dial-up. We also tested XP Pro with IE6 SP1 and all the updates, the same result.
It all seems to work well, but takes a large amount of time for the entire page to load, I guess due to the amount of records that get displayed, or maybe its the repeat region. So, Is there anything I can do in my asp code to speed these things up. Code:
I work with ASP for several weeks now and i really like it! But until now i have just used it in connection with my localhost. I made connections to a SQL Database and to an ACESS Database with using the ODBC Tool from WIndows!!
Now i want to publish my website but i don't know how to handle the connection string kind of thing. My MySQL-Database is on a different server than the website and i need a connection string where i can type in the server, a password and a username and it should then connect.
(the actuall connection string is in my global.asa file incase u were wondering) ...or if the database can't be found or opened, will run some other code... like a message?
hope u get what i mean.
this is just incase a user has the DB opened, or is in the process of overiting the DB or something, the page would not display that Microsoft JET Database Engineerror but display a message i set up in the if/else statement.
I have created a database called "myshop.mdb" Then I create a System DSN connected to that database called "OE1" The following code retrieves attributes and possible errors from the DSN Code:
I have been trying to get an intranet search page to work that looks at an Access database. The database is called database.mdb, and lives in the root of the site, as does the .asp (security is not a problem at the moment). The code was taken from an asp website. I am running .net and Windows server 2000. Could someone look at the code and tell me if it looks OK for connecting to the database? Then at least I can rule out code as the problem I am having.(receiving error codes)
I am getting this error at all my ASP pages. A sample page which pulls the categories from the Northwind database is enclosed below where I get the error when I am trying to open a recordset with that SQL query and Connection. Code:
I would be glad of some help being new to ASP. I manage my department information through an Access relational database and an http network model database. Naturally enough I want to combine them. We have an old NT driven LAN with pc's running Win 9x or XP pro. The file server is nearly up to capacity on storage and bandwidth, the new XP machines have plenty. The network is backed up daily. If possible I want to use the XP m/c as a web server. I want to use IIS and ASP from an XP m/c to read and write to databases on the file server but can't seem to get the connection string right, I have tried many, with and without DSN's. Having checked up on IIS (installed on XP pro) I suspect that it can only connect locally. Certainly everything runs on a test setup in C:/inetpub/wwwroot which can be accessed across the LAN and ASP runs fine.
i want to open a connection for password protected database but i don't want to write password in code as it can be seen by my host provider and misused is there any way I can read database password without writing it in my code.
I have one database, but nine web sites all linking to this database for client input.hen I use the domain web site that the database is atored under, the ASP page updates the database as required. I have been using the following connection:
"DRIVER={Microsoft Access Driver (*.mdb)};DBQ=C:domainsmyweb site domain namedbmy database.mdb"
Now I have saved this ASP page under one of my other domain names and have tried using an ODBC connection as follows:
"DSN=ODBC Connection;Driver={Microsoft Access Driver (*.mdb)};Dbq=my web site database domaindbmy database.mdb;Uid=Admin;Pwd=;"
Unfortunately when I complete the ASP page on this web site, and submit, the database is not being updated with the records.
i have a sign up page it work good when i try it it write the information in the database but if i rewrite the same thing it rewrite it in the database.i need a script that if the name already existe it cannot be recreated.
i want to have a log on page but i dont know how to make the page got verify in the database for the username and password.i need the script for when they login to go get the info about the caracter but i need the script to make the user to stay connected like for there score in the game to be saved in there account. so this is it, if you don't uderstand just specify what you don't understand . by the way my page is in asp and my database is in acess .
set rs=server.createobject("ADODB.recordset") sql ="SELECT company_name FROM contacts WHERE company_name =" & cStr(sField)
If Len(sql)> 0 Then rs.open sql,conn,3,3
sql is defined above and conn is defined in another asp page. What I am wondering is what does the ,3,3 do? and Is it necessary to have this in the page?
i have built an Intranet using includes, which is about all the access of the IIS server I have. I really want to have database functionality so that I can use an Access database - but cannot and will not be able to use ASP to connect to it
how I can do this without using ASP? Client-Side, or something similar? Or any other way..? All I have to play with is a standard business-wide build of IE, and a very limited IIS server.
The reason I ask, is because I have a vbscript that uses windows scheduling service to run at different stages during the day to update a database on a live server. I was wondering if it was possible to put this script on a local machine and make changes to the connection string.
I have written a asp application whihc uses a number of pages and each page connects to a sql database. Currently I have the connection script coded on each page however if i need to change the database I have to change every page. I have been told there is a way to have the connection on one page and each page to referance this one so I only need to change the one page
I am trying to connect to a database in a folder called 'db' the database name is games.mdb . The File that is trying to open the database is called data.asp. This file is in a folder in a subdirectory of the parent directory of 'db'. The code seems to work up to here (it does not give me any errors):
The login oage works fine which directs the user to the index page. However the test page is a copy of the index page and when i link the 2 pages together i get the following error:
Error Type: ADODB.Field (0x80020009) Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.
I am passing 3 hidden fields to another page using the method="post" Here is the next page - <% Dim fmMemberID, fmUsername, fmPassword fmMemberID = request.Form("memberID") fmUsername = request.Form("username") fmPassword = request.Form("password") %> <% Dim dbConn set dbConn = Server.CreateObject("ADODB.Connection") dbConn.ConnectionString = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=d:inetpubcredencia.netfpdbmembers.mdb" dbConn.Open
Dim rsMember Set rsMember = Server.CreateObject("ADODB.Recordset") rsMember.Open "SELECT * FROM Members WHERE MemberID=179", dbConn, %>
Should I close the sessions I want open on every page or just the ones that are exclusive to that page? Like for the user session which I want on every page. Should I just leave it open?
I'm using Win XP..and MS office XP & ASP. A database connection error occur during the compilation..the error looks like this:
Microsoft OLEDB Provider for ODBC Drivers [Microsoft ODBC Microsoft Access Driver]General error unable to open registry key 'Temporary (volatile) Jet DSN for process 0x604 Thread 0xb2c DBc 0x132ofcJet