bottom here is my asp coding, for connecting to mssql2005
i know how to connect to mssql by vb using the com+.
but i want to try using the database connection on asp page.
<%@ LANGUAGE="VBScript" %>
<%
Option Explicit
Dim UID, SQLStmt, Connection, FirstName, LastName
Dim RS, SSN, Major, GradDate
SSN = Request.QueryString("SSN")
Set Connection = Server.CreateObject("ADODB.Connection")
Connection.Open "Driver = {SQL Server};Database=Db_Testing;UID=;PWD=;"
SQLStmt = "SELECT * "
SQLStmt = SQLStmt & "FROM detail "
Set RS = Connection.Execute(SQLStmt)
%>
<h2><%= RS.Fields("name") %> <%= RS.Fields("telephone") %>:</h2>
i tried many ways, it seems that i am having problem connecting to database;
where i always receive the message below
Microsoft OLE DB Provider for ODBC Drivers (0x80004005) [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
May i know whats wrong with my coding? or may be i missed a step for the connectivity.
Thank you