Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics 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 14th, 2003, 05:05 PM
Registered User
 
Join Date: Nov 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default connecting to Northwind in server explorer

I am trying to connect to the Northwind database to follow the examples in the beginning asp.net databases book. i have installed visual studio.net 2002 professional, the .net framework, and MSDE. i still am unable to make the connection to the Northwind Database. can anyone help?

 
Old November 14th, 2003, 05:44 PM
Authorized User
 
Join Date: Jul 2003
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default

What error are you getting? It also may help to see a copy of the code you are using.

 
Old November 14th, 2003, 08:39 PM
Registered User
 
Join Date: Nov 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

the error says sql server error 4060. i am not using any code i am simply attempting to add the connection to the Northwind Database so i can follow the example code supplied in the beginning asp.net database. i am not sure why i am getting this. the instructions seem so easy and i am already frustrated.

 
Old November 16th, 2003, 01:53 PM
cjo cjo is offline
Authorized User
 
Join Date: Oct 2003
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Try this:

<%@ Page Language="C#" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.OleDb" %>
<script Language="C#" runat="server">
void Page_Load()
{
string strConnect;
OleDbConnection objConnect = null;

strConnect = @"Provider=Microsoft.Jet.OleDb.4.0;Data Source=C:\BegASPNET\Ch12\Northwind.mdb";

objConnect = new OleDbConnection(strConnect);
objConnect.Open();
}

</script>





Similar Threads
Thread Thread Starter Forum Replies Last Post
From SQL Server to Internet Explorer toddw607 ASP.NET 2.0 Basics 7 March 27th, 2007 03:57 PM
No 'New Stored Procedure" in server explorer jkusmanto VS.NET 2002/2003 0 May 3rd, 2006 03:24 PM
Don't see Server Controls at my explorer Dango24 BOOK: Beginning ASP.NET 1.0 6 August 25th, 2005 09:30 AM
Connecting to Northwind - HELP !!! eberly BOOK: Professional C#, 2nd and 3rd Editions 11 August 14th, 2005 12:45 AM





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