Database Connection Info And Driver

Im doing a login page for my website, and it seems i have to do this:

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

What the hell is that? Do I just put the physical path of my DB in there?

View Replies


ADVERTISEMENT

Microsoft Text Driver Connection

I'm having trouble setting up my queries using microsoft text driver to pull from a TSV text file. When I do the query:

SELECT EntryDate, Lot, Batch, Product, Operation, Recipe, Route, Entity, TimeNum, Flag, Template, Seg, Diagnostic, Val FROM Excursion.txt

I pull everything fine with no issues, but when I try to add a condition as such:

SELECT EntryDate, Lot, Batch, Product, Operation, Recipe, Route, Entity, TimeNum, Flag, Template, Seg, Diagnostic, Val FROM Excursion.txt WHERE Flag= " & Flag1

I get: Code:

View Replies View Related

Text Driver Connection String Path Question

I'm trying to use the following code to pull data from a CSV file on another server: Code:

View Replies View Related

Connection Info In Global.asa

Our ASP web application uses connection object from global.asa.
We hard coded Uid and pwd in global.asa.

Is there any way we can encrypt this Uid and Pwd in global.asa, or can
we access them through environment variables, if so can some one give me a
sample of code( to access environment variables through asp code.)

View Replies View Related

Table Info From ADO Connection

Is there any way to attain the names of the tables in a database from using
either ADO connection or ODBC or any other type of connection.

The reason I wish to do this is so that I can display all the information in
table (field names and values - this piece of code works) from a dynamic
SQL statement.

Here is what I am trying to do:

<%
Connect to my_table.
%>

<select>
<%
For each Table in My_table

response.write "option value='" & table.name& "'>" & table.name & "</option>

Next

%>
</select>

Is this possible?

View Replies View Related

[Microsoft][ODBC Driver Manager] Data Source Name Not Found And No Default Driver

When I try it on original server, it works, but when I moved everything to a different server it does not work. I have checked the dsn name, userid and passs. But no luck.

Error
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

Code:

View Replies View Related

Microsoft][ODBC Driver Manager] Data Source Name Not Found And No Default Driver Spec

We hosted our asp based application under windows 2000 server with sql server 2000 as backend. All the asp module works fine with internet explorer version 5 but same application is giving odbc error when we run the application in IE 6.

The exact error is :
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified xxxxxxxx/login.asp, line 27

View Replies View Related

Retrieiving Info From Database

I am trying to learn how to retrieve information from the database. I am not too familiar with ASP but I was told to use it. How do I go about doing this? What specific aspect of ASP do I need to learn?

View Replies View Related

Store Info In Database.

I have made a registration form for adding my friends information in a
database. The problem is that I want to connect the persons with companies
in the same database. I wonder how i could connect a person to several other
id's in a table.

I wonder if I can make a string in the database that holds all the id's
separated with , for example....?

the string would then look like this:
1,4,6,22,56
for example...

But how can I then open this string and separate the numbers from the , ???

View Replies View Related

Updating Database Info

I have a form that when the user inserts the password data it is supposed to update the member info in the database with the password but instead it just adds a new row with the password and leaves the id requiring the password blank. SO it does add to the database but just not in the correct row.

Here is the code that I have:

View Replies View Related

Info From A Form Into A Database

i have been trying to get info from a form into a database on the server for months, i have one form page and one asp page that should send the data to the database on server heres is my code for both pages. here is the form page:

<form action="deantest.asp" method="POST">
<input type="text" name= "name" ><BR>
<input type="Submit" value="Submit">
</form>

and here is the asp page with the code that i use to put the form data into the data base.

<%dim strformfieldvalues
strformfieldvalues =request.Form("name")
response.Write ("your name is ") & strformfieldvalues%>

View Replies View Related

Pulling Info From Database According To ID

Im getting this error message:

Microsoft JET Database Engineerror '80040e07'Data type mismatch in criteria expression.

Im passing a ID value to a pop up window attached to a variable named 'cat'.

Its passing it across fine, but the following code doesnt seem to be working in relation to it:

strsql = "SELECT cat_ID, art_Artist, art_Title, art_FDescription, art_Price, art_PicFull " &_
"FROM eventDisplay WHERE cat_ID='" & cat & "' "

can anybody see what im doing wrong here?

The following code:

View Replies View Related

VBS And Database Info Issue

I'm trying to update a database from a form, but only by updating the info that was changed on the form (if that makes sense.) Basically, the problem I am having it that the if statements I have setup to build the sql isn't working when the database doesn't have any info in that field. Code:

View Replies View Related

Displaying Database Info Using Asp

I have a database on my server that houses information regarding trouble tickets. I know how to write asp page to take the inputted info from a form and put it in the database but what I would like to know if someone could show me or point me in the direction of a good tutorial that shows me how to list all the content in my database on a web page.

For instance I would have a page titled, view all tickets, then on that page would be a listing of all the tickets and their information with buttons to add, delete or update ticket.

View Replies View Related

Displaying Database Info On Asp Page

I can display information to a webpage from a database and handle the connections etc. My next task is a bit more complicated for myelf. Id like to have a page the pulls information from a record set and displays like this.

down one side

the container numbers

along the top

the products in the containers

the information in the middle would be the amount of product that came on that container.

Im just wondering how the best way to setup my database would be, and the best way to setup the asp webpage. (oh) nearly forgot, it has to repeat the information till all the records are finished but i guess that gos without saying.

View Replies View Related

Display Info From A Access Database

I have a table in an Access database that is called news. Inside that table is a field name called newsNews. I'm trying to get that is in that field to display on a page and her is my code:

View Replies View Related

[Microsoft][ODBC Microsoft Access Driver] Cannot Update. Database Or Object Is Read-o

[Microsoft][ODBC Microsoft Access Driver] Cannot update. Database or object is read-only.

I keep getting this error message when im adding a new record to my database.

Here is my code: ....

View Replies View Related

MS Access Driver Vs JET 4.0 Driver

I have 'upgraded' my website from MS Access Driver to JET 4.0 driver. Additionally I used Include files for the connection string, so that when I put the program on another website, I only have to change 1 file not 160 files. So far so good. The upgrade to the JET driver has had some problems, problems not experienced in 4 months of smooth operation by the MS Access Driver.

The JET Driver did not like square brackets in the SQL string(these are often placed here by Access, when testing strings). The JET driver did not like my field name called 'position'. It totally stuffed up and I had to change the name of my field in the database. Took 3 hours to work out the problem!! The JET Driver did not like the field I called Day, had to change it's name to weekday.

The reason I 'upgraded' to the JET 4.0 driver is that it is meant to be better and it allows me to use a password to protect the database. Can I have a database password using the MS Access Driver, in case I get stuck again, does anyone have the syntax?

View Replies View Related

Adding Info From A Form To Access Database

Except for extremely basic ASP programming that I did two years ago and have forgotten I have not touched coding since!

I've taken a look at a couple of tutorials but they all baffle me!

Can anyone tell me how I can just create a simple html form with input fields of FirstName, LastName, Email and Phone amd when the user hits submit it is recorded in an access database?

I can do the HTML part fine. And I believe I've set up access ok although Ive never used it before.

Also, if the server that the database will go on is a Microsoft one i suspect that is ok? Im not sure if all i have to do is upload the database and it will work? or do i need to talk to my hosting company to set up some kind of odbc thing that ive heard about?

My database will just be called clients.mdb and the table is called Customers.

View Replies View Related

Displaying Info From A Database On An Html Page.

if I have a list of book names and prices and I just want the info to be called onto an HTML page to be displayed how would I do that?

It sounds easy...but who knows with code? :P

I havent' set up the database yet but i suspect it will just be called books.mdb and the table will be called Books.

Fields in the table will be

Name, Type, Condition, Price

View Replies View Related

JAVASCRIPT In ASP - Making A Link From Database Info

Code:
while (!MyQuery.EOF){
Response.Write("<tr><td colspan='2' class='results'>" + MyQuery('Title') + "</td>");
Response.Write("<td align='right' class='results'>£ " + MyQuery('Price') + "</td></tr>");
MyQuery.MoveNext();
}
I have that returning a record set to display ! I then need to make it so the "Title" is a link to a page with all the information shown for that book! How would i go about doing this ?

View Replies View Related

Database Connection String To MySQL-database On A Different Server

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.

View Replies View Related

Send Form Info To Multiple Database Emails?

I have two forms, one on each page. The user fills the first, then the second, then on the third page all the information is displayed for the user to make sure thats what they want to send.

Then they click submit on the third page and it goes through a database and depending on which category, state and county the user selected it will email all the information displayed on that third page to all the emails in the Email field in the database.

Now, I already have the first and second pages(easy enough) and the third page I can get it to display all the info how I want it and now I need to know how to go about emailing that info to the emails that match the specific fields? Right now all I have it doing on the third page, instead of submitting it for emailing, it just displays the info from the forms AND emails that match from the database. Code:

View Replies View Related

Database Connection

I am familiar with connecting asp pages to sql server when both servers are
on a LAN.

Can anyone advise on how to connect when the servers are remote from each
other?

View Replies View Related

Database Connection

I was wondering if i can create an if/else statement that checks if my connection string that opens a database ie:

cnnDB.Open Application.Contents.Item("CONNECTION_STRING" )

(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.

View Replies View Related

Database Connection

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:

View Replies View Related

Database Connection.

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)

View Replies View Related

Database Connection

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:

View Replies View Related

Database Connection Over LAN

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.

View Replies View Related

Database Connection

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.

Set cN = Server.CreateObject ("ADODB.Connection")
cN.Open "DRIVER={Microsoft Access Driver (*.mdb)}; password=joy; DBQ=" & Server.MapPath("db1.mdb")

above example works fine but i dont want to write password in my code is there any way i can do it.

View Replies View Related

Database Connection

How do i detect whether the database connection is open or not in a asp page?

View Replies View Related

Database Connection

Is there any good reason why this shouldn't work?! All I get is the word "venue" and it doesn't display the relevent field value beside it.

Set cn = Server.CreateObject("ADODB.Connection" )
strConn = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.MapPath("db/db1.mdb" )
cn.open strConn
strSQL2 = "SELECT * from Events where ID = " & intEventID
Set rs = cn.execute(strSQL2)

response.write "venue" & rs("Venue" )
response.end

View Replies View Related

Database Connection

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.

View Replies View Related







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