OK, you've got a few problems here. The first one is an honest mistake and I'm not necessarily saying that this is the entire fix.
#1: You are specifying
DNS. That stands for
Domain Name Server which is a solution used for translating domain names to IP addresses. You need to use the term
DSN which stands for
Data Source Name and is more appropriate for connecting to databases.
#2: You're using the wrong syntax to open a recordset. And that's OK too. I'm going to show you how to do that here in a second, but first I want to see if we can get this
DSN working so I just want you to run this code and let me know what happens.
Code:
<%@ Language=VBScript %>
<% Option Explicit %>
<% Response.Buffer = True %>
<%
dim Conn
dim strProvider
strProvider = "DSN=SIEdata"
set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open strProvider
set Conn = Nothing
%>
Now if that returns a blank screen with no errors, then we're in luck. If you get an error, show that back here along with a few other pieces of information.
What database are you using ?
Is the database password protected ?
What is the physical path to the database on the server ?
Note: I would only ask that you to get in the habit of starting all of your ASP pages with those three lines at the very top.
ToddWW