SQL Connection With Data Base

I have been using php for a while now but have recently had to start using asp. I have purchased some hosting from webfusion.co.uk but have been having trouble connecting to the sql server, could someone possible help me here as I don't know what is the correct code to use to start with let alone know where I have gone wrong.

View Replies


ADVERTISEMENT

Data Base First?

Do I create and name all pages with .asp or still in .html. when creating a drop down menu, assuming all the tags are in place, how do i test the site on the server?

so do i create the html pages first or the data base first or does it matter? where is the data base created in notepad or excel?

View Replies View Related

Access Data Base

This error occured with me when i want to open my access database:

----------------------------------
Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x888 Thread 0x1288 DBC 0x2e8f014 Jet'.

/AAA/Afghanistan.asp, line 374
----------------------------------

View Replies View Related

Adding Records To Data Base?

I have a data base that I wish to add a record to. I have many fields to ender, but I was testing my code with just one and it works just fine : Code:

View Replies View Related

How To Get The Function Value And Store In Data Base?

Im creating mcq questions using asp and have problems in storing the scores into my database..

View Replies View Related

Check Box Value Stored In Data Base

I have a few check boxs on a page. What I want to do is if a box is checks a value of Y is stored in the database. Could you please show me how to do this?

View Replies View Related

Data Update To Data Base

Dreamweaver created code to update to data base. But when testing on website i get the following message. I have no clue what it might be.
Microsoft JET Database Engine error '80040e14'
Syntax error in UPDATE statement.
/admin/update.asp, line 111
line 11 is strName.execute
I read it might be forbiden characters in the data base field names or spaces...
but i don't have that. the names are userName, userLevel, ID, Password.

View Replies View Related

How Can Insert The Image In Access Data Base In ASP

how can i insert the images in any format in MS Access database using the ASP plz give me a simplest and easy code which i can use in ASP

View Replies View Related

Centrilized Data Connection

I have several ASP pages, and some of them are using the same access Database and table.
Can I put the connection string somewhere centralized, so I can link to it ?

View Replies View Related

Multiple Recordsets On The Same Data Connection??

I want to pull 2 different recordsets using 2 different stored
procedures using the same Data Connection. Below is the code that I
currently have, but I'm getting an 'Object Required' error message. Am
I doing this correctly, or at least headed in the right direction? Can
someone tell me the most efficient way (provide a code example) to pull
2 different recordsets from the same Data Connection? Code:

View Replies View Related

Win2k Asp Connection To Data Source On Unix

i'm trying to use an odbc driver to connect from an asp page to a data source (dbase) on unix sunsolaris. is this poss?

the driver is installed though i cant seem to do it through dreamweaver ultradev - can i do it through the ftp connection?

what would i input as the source on the following to initiate the connection in the asp page?

"Provider= "MSDASQL"; Data Source= server name ?
"Database=test;User ID=sa;Password=blabla"

or how would i do it using the followign as an include file ? Code:

View Replies View Related

2 Base Using In ASP

I'm trying to build an application in ASP and using multiple database, but I've receiving some problem, have any idea or have any sample scripts to use multiple database?

View Replies View Related

Base Href

I'm using W2k Pro, ASP 3, IIS 5 & DWMX 6.1 and code in VBSCRIPT
I currently use the <BASE href=XXXX> in all my pages and just read
that this tag is no longer supported so will soon vanish
I have a couple of sites that I'm working on and to make all my links
work right etc I need to use the base href tag

http://localhost/site1/
http://localhost/site2/
http://localhost/site3/

where online the base href would be

http://www.site1.com/
http://www.site2.com/
http://www.site3.com/

all my links are like <img src=images/mylogo.gif> or <a
src=info/info.asp>Info</a>

Now my problem is how else would I design my sites if I cant use the
Base href tag so the site would work both on LOCAL & REMOTE servers as
needed in the above paths?I'm sure other people develop on a WIN 2k PRO system where you canonly have ONE site (c:inetputwwwrooot) Which was fine when I only
had one site... but when I needed a second I had to change my first to
use the Base href so I could check the sites out locally (offline)
before uploading them to a live server.

View Replies View Related

Knowledge Base Script..

Can anyone point me in the direction of a freely-available Knowledge Base/FAQ script, compatible with iis5 and ms sql.

View Replies View Related

Microsoft Knowledge Base Article

i wanted to get the 411 on this article. I want to create a small utility web site with a logon page and a form connected to an Access database. The article below explains exactly how but when I try this I can only see the code no actual logon page - nothing but code.

My system is asp allowed and asp.net extensions allowed. FP 2002 extensions allowed. All other extensions are prohibited. I am using w2k3 IIS 6.0 and running 3 html sites succesfully all with working forms. Is there something on the server/website itself I need to enable?Why do I only see code and not a logon page as described in the article?

View Replies View Related

Update Excel File Fromdata Base

I want to update Excel file when i update database.

View Replies View Related

Populate List Box Base On Combo Box Selection

how do i get a value from a combo box and populate a list box base on the selected value from a combo box? If possible can i get a sample coding.

View Replies View Related

Connection Timeout For Adodb.connection

1.
conn.ConnectionTimeout = 60
conn.Open connString

2.
conn.Open connString
conn.ConnectionTimeout = 60

Do both of them give different?

View Replies View Related

<base Target="???">

Is there any way to set <base target="_blank"> for links which link to a
page outside the domain, and <base target="_self"> for links which link to a
page inside the domain?

Can i do such a thing in the global.asa file or maybe in an other include
asp file? I am working on a site with 3-4000 hyperlinks, and I do not look
forward to "marching" through every each one ove them and set target to
_blank og _self...

View Replies View Related

DSN Connection Or Direct Connection

I wanted to know wheather DSN is ok for the connection to a database or direct conection is better?

when i started my web project on dreamweaver i had to make a DSN connection as i have followed the books, but as now as i have also asked several questions on this site, i have aslo implemented a direct connection as well on some pages, now i am wondering
is this going to have any affects when i uplode the complete site on the server.

i have noticed that on my computer when i am testing the site and uploading new records on sections that have DSN connections you can see the new record but on sections that i have implemented direct connection i cannot see it coz it is linked to the local directory database not on the testing server.

i have also never experienced uploading to a IIS server with DB connection so its my first time with dynamic websites. so am i in trouble or its ok the way i have done my site..

View Replies View Related

Pass Bill To Data To Ship To Data

I'm using DW MX 2004 to build an asp based eStore. I have a checkout page created with both the billing and shipping information in the same form. I'd like to add some code and a button to activate it to copy the code to the shipping info (but it can't submit form). Also the State choice is a drop down list based on a recordset. There are other behaviors attached.

View Replies View Related

Data Type Mismatch When GETting Data From An Access DB

We are running into problems with the script below, whose purpose is to allow users to choose values from drop downs populated by an MS Access DB.

THE RESULTS:
(returns a blank page with only HTML Titles)

THE SCRIPT:
(you may notice this is a modified sample script): Code:

View Replies View Related

Data Grid Or Data Matrix...

This seems a very complicated task, so I welcome any
input. My boss wants a data grid or matrix of the top 6
orders with ordered items, and products, for a particular
customer and he wants to see it like this:

products down the left side
orders across the top
number of items under the respective order number column
across from the corresponding product.

I hope that makes sense.
I have three tables. Products, Orders, Orderitems. I
don't even know where to start. Many thanks in advance
for any input offered.

View Replies View Related

Connection To SQL

I am trying to create a web page that has a drop down menu in which it retrieves data from our SQL server. Maybe this is a bit more simple than I am making it but I am really pulling my hair out trying to get this right. Code:

View Replies View Related

Db Connection

this is my error:
[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.


here is my db connection string:

<%@Language=VBScript%>
<!--#include file="adovbs.inc"-->
<%
dim rs, cn
Set cn = Server.CreateObject("ADODB.Connection")
'with cn
' .Provider="Microsoft.jet.oledb.4.0"
' .ConnectionString=Server.MapPath("home/nfiweb.mdb")
' .Open
'end with
cn.open "nfijobs"
set rs = Server.CreateObject("ADODB.Recordset")
%>

View Replies View Related

Connection With Db In ASP

When I click submit after updating the information all of my info gets deleted from the db so I'm guessing that the values that are being submitted are not getting picked up in the sql. I've tried changing the form names, etc, but still have the same prob. My code is below: Code:

View Replies View Related

Db Connection

I am having trouble connecting to an Access db fro mmy asp page. I get the following error: The page cannot be displayed There is a problem with the page you are trying to reach and it cannot be displayed. Code:

View Replies View Related

DB Connection

I'm using an SQL2K backend and attempting to connect to it with the following code.

' -- Connection String Value
response.write "Setting strConnection"
strConnection = "DSN=tracktimedb"

' -- Our SQL Statement
response.write "Declaring SQL Statement"
strSQL = "SELECT * FROM TIMES"
' -- Populate our Recordset with data
Set objRS = GetRecordset(strConnection, strSQL)

I have done many searches but all the connection strings I've found seem to be using a DSN to an access DB. Currently I get this error when trying to connect.

Microsoft OLE DB Provider for ODBC Drivers error '80040e4d'

[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.

I can't seem to find the proper syntax to specify a db login (sa) and password in the connection string.

View Replies View Related

Db Connection

on 1 page i open
a connection to a database and build a recordset to check
username and password. there are other fields in the db
that i need to access on the next page. how do i reference that
connection and run a new sql query without having to reopen the connection?
i thought it would be as simple as NOT closing it, but thats not working.

View Replies View Related

ASP Connection

I am having problem in my connection to database when running ASP.
It works fine for the first time but if I run it again without a gap of atleast a minute,
it gives me the following error message:

Error Type:
Provider (0x80004005)
Unspecified error

And the line it is showing error is where I am opening my database connection using conn.open.If I wait for couple of minutes and run again,it works fine.

View Replies View Related

Tcp/ip Connection

I'm trying to maintain a permanent tcp/ip connection between two
computers using ASP. I need users accessing the ASP pages to be able
to send and receive messages using this connection. I know that I
can't use a Winsock control with ASP so I guess I'm looking at a third
party control. Even if I can get this working I'm not sure that I can
have different users accessing this one permanently open connection.
I've looked all over the Net for ideas on how to do this but I've had
no luck. Has anyone had to do anything like this?

View Replies View Related

Db Connection

I am trying to establish an ODBC conection to ORACLE 10g and have tried all the following. Please advise:

We are trying to connect to a 10 g server and nearly gone crazy after doing so. tried everythign, DSN, DSN less .... The bottom line the connection is successful when we try it form the control panel-> data source thing but not from ASP. We tried the following things: Code:

View Replies View Related

DSN-less Connection

I created a master detail page using the wizard in Dreamweaver, however I need to create a DSN-less connection. How do I do that? I am assuming I need to edit this part of my code:

View Replies View Related







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