I am at a loss trying to set the connection string to connect to an access db on a web server from a secure server! i have tried using the ipaddress of the webserver in the file name and the http: url but to no avail.
I know absolutely nothing about connecting Access databases. However, I know a tad bit of VB.NET (my site is written in ASP, though). I need some help connecting to the DB. Here's the script I'm currently using (I removed the database, account name and site name for security): Code:
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 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.
my prob is i have 2 different computers, one that runs my asp pages and the other my database server (mySQL). im working on my local and trying to connect my remote database with my remote webserver using DSNless connection string as more advisable. Code:
Microsoft OLE DB Provider for SQL Server (0x80004005) [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied. The Code I have used is Dim cnDB ' As ADODB.Connection Set cnDB = Server.CreateObject("ADODB.Connection") cnDB.ConnectionString = _ "Provider=SQLOLEDB;" _ & "Data Source=ENTERPRISE;" _ & "Initial Catalog=SchQry;" _ & "User ID=3453;" _ & "Password=aw33;" cnDB.Open
I have to make a interface which should fetch files from a FTP Server and should display their names and path at user's screen. User will be using Windows 2000 profeesional and files are of .mp3 type. how to connect to FTP Server and fetch files from it's file system using ASP. I doubt is there any way to this?
Im using the SQL Server, however i got this error message when my ASP tries to connect to the database. The SQL server is not my computer, im connecting to the SQL server using the IP add of that computer. The error message i've is: Code:
Error Type: Microsoft OLE DB Provider for ODBC Drivers (0x80040E4D) [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'NT AUTHORITYANONYMOUS LOGON'. /Retrieve/testASP.asp, line 17
This is how my connection codes: Code:
set conn=Server.CreateObject("ADODB.Connection")
conn.Open("Provider=MSDASQL.1;Persist Security Info=False;Data Source=Database;Initial Catalog=Northwind;Network Library=dbmssocn;") Set oRS=Server.CreateObject("ADODB.recordset")
Is it possible to connect to the SQL Server database from the ASP page without mentioning the User Name and password in the connection string.
I have heard of something like UDL ... Unified Data Linking ... I'm not sure what it is? and how it works? Can anyone tell me about it or if anyone know any site from which i can collect necceaary information .
I am trying to establish a connection in Dreamweaver MX 2004 and an Access database for a log in ASP page, but keep getting an error. I am trying to establish "Custom Connection String" and here's what I type into the boxes that pop up:
1) CONNECTION NAME: ConnectToMyDB (I know, here I can put anything) 2) CONNECTION STING: Provider=Microsoft.Jet.OLEDB.4.0; Data Source=C:Documents_and_SettingsJohn_SmithMy_Doc umentsJohnsSitedbJohnsWeb.mdb;
(tried with and without quotes around this)
3) Dreamweaver should connect: Using driver on Testing server
4) When I hit "TEST" I get an error "An unidentified error has occurred"
I am using Windows 2000. The database is in a db folder in the my defined site (moved it there). Is it the path I am typing in Dweaver or my Win2000 settings?
Hope someone can tell me what I am doing wrong. Is it my path to the database?
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 get following error when trying to connect to a MDF file of sql server express 2005 database:
"Microsoft OLE DB Service Components error '80040e21' Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done"
I need to connect to a SQL db on a remote server but my connection string doesn't appear to work as the page just keeps timing out. The physical url of the db is (not real IP) 0.0.0.0/Databases/query and the connection string looks like so:
Maybe I'm doing something wrong, but I'm having troubles with connecting using SSL.
I have a website at http://www.*****.com I have a login form directly on that index page. When you click sign in it directs to https://www.hostingcompany.com/******. However, it fails the first time, then it works the second time. The second time I am on the https://www.hostingcompany.com/****** page.
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:
The aim is to get it working on this machine so I can port everything to a Enterprise Version but can't get around this error for the last two days. Code:
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.
I have an Access DB connected to an IIS via ODBC, and use ASP pages to get info to/from the DB. My guys in IT now want to migrate the Access DB to SQL Server. Can anybody tell me what this implies in terms of :
a) syntax of my ASP pages b) syntax of my SQL statements c) other problems I may not have thought of.
I am told it is really easy, however, I just cannot get is to work. BTW, I have activated the "SQL Syntax" option in Access, in case that helps any.
This might be more of a database question than ASP. But when you create a database and then create relationships with the database, once you open an asp page say to create a new record; once the record is saved, shouldn't it also update the relationship with the table involved?
Unless I am doing something wrong, it is not updating the second table; for example:
Say the information is entered, because of the UserID field is "autonumber", that would be my primary key: so "1" would be related with the second table where I have:
If on the other table I have number of uploads to generate, whenever it adds a document, it would have the relationship of the username, and the upload:
But when I do that, even adding the code, it does not update the code. So what am I doing wrong? Do I have to do another Add.New at the same time for the second table?
I ask this here because as ASP Developers I figure you have more experience with windows Webhosts. I know Phpmyadmin is usually provided on Apache platforms to manipulate MySQL databases. What interface is usually provided by webhost to access and manipulate your Microsoft SQL databases?
Can any help me on how to use ASP to access a mail server? I need to send an email from the web but i don't want to use "mailto" as the contents sent using "mailto" is messy.
I have always used PHP and MySQL to do anything database related on the web, however I find myself in a new situation. I've been handed the daunting task of creating a (relatively) simple, partially database driven website for my company's intranet.
The one problem I have is that all of our servers are Windows 2000 based because all of the in-house software we have works off of SQL Server... and I've never touched a windows based server, SQL Server, or ASP in my life.
Searching through the forums, I've been able to find a few ASP tutorial sites, but everything I've found seems to be either all technical info and no basics or a basic tutorial written for people who are already familiar with Visual Basic, C, or another type of windows programming 'thing'.
I have a database in MS Access and have one table in it (tblcontest) which has 30 fields in it, I want to export all the fields into Sql Server 2000, any idea how to? PS: I dnt wanna create all the fields manually one by one in SQL Server.
Wish I'd found the thread yesterday before spending half the day fighting the same battle and finding a workaround. But at least it explains why my final approach worked.I set the remote folder as a virtual folder on the webserver, assigned web rights to a domain user and used fso.copyfile(server.mappath) to copy a file created locally.I'm not thrilled that access to the remote location can't be controlled at the user level this way but at least access to the calling script can. Strange though, the problem showed up during a migration. Server A had been hosting this asp page and connecting to server B sucessfully. I was moving the application to server C when I ran into the problem. All three machines are W2K, same service pack, same domain, same users, same access rights/method configuration. Go figure.
Every program I use (excluding Enterprise Manager - I don't have it) to connect is unsuccessful. Access Projects for example, when I try to establish a connection, it doesn't ask for IP/Host.
I have admin privileges on a remote server and would like to use a web interface (asp) to manipulate various files. It seems that when I access the remote web pages I only have IWAP and IWAM privileges. Is there a way to automatically send my admin username and password via the asp pages so I will have admin privilages?
I've been using URL asp shopping cart (free version) for a while with an access database and it worked perfectly.
My store is very popular now (more than 200 simultaneous users) and I need to migrate to a professional database. Comersus is compatible with SQL Server and mySQL. Which one do you recommend? My idea was to use mySQL since in that case I can purchase Power Pack Medium ($239) instead of Premium (.$370)