Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 15th, 2005, 01:07 AM
Registered User
 
Join Date: Nov 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to jupiter3437
Default Access to sql server from Asp 3.0

i access to Access from asp 3.0 but what can i access to sql server database from asp 3.0 in win xp (sp2) ? I used this cammand
<%
dim objconn,DSNtest
Set objconn = Server.CreateObject("ADODB.Connection")
DSNtest="DRIVER={SQL Server};SERVER=127.0.0.1;DATABASE=C:\Program Files\Microsoft SQL Server\MSSQL\Data\dbregister.MDF"
objconn.open DSNtest
%>
but this errors appears:
--------------------------------------------
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied.
---------------------------------------------
or
----------------------------------------------
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC SQL Server Driver][SQL Server]Cannot open database requested in login 'C:\Program Files\Microsoft SQL Server\MSSQL\Data\dbregister.MDF'. Login fails.
-----------------------------------------------
if my way of connction is wrong plaease help me!!!







Similar Threads
Thread Thread Starter Forum Replies Last Post
access data of excel sheet into sql server in asp KGANESH2006 SQL Server ASP 2 April 20th, 2006 02:33 AM
how to access sql server meta data using asp? method SQL Server 2000 2 March 7th, 2005 08:12 AM
SQL Access/ASP.NET data access issue saeta57 SQL Server ASP 1 July 4th, 2004 04:29 PM
SQL Access/ASP.NET data access issue saeta57 Classic ASP Databases 1 July 4th, 2004 03:32 PM
SQL in Access and in SQL Server mikko SQL Server 2000 1 July 29th, 2003 06:17 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.