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 September 19th, 2005, 07:09 AM
Registered User
 
Join Date: Sep 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default ASP.NET connectivity with SQL server

i am working in asp.net web application and for connectivity with sql server i am using the statement in the pageload event as

Dim sqlcon as SqlConnection

I have added the references

System.dll
System.data.dll

and in the codebehind code I have used the following import statements

<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="System.data" %
<%@ Import Namespace="System.data.sqlclient" %>

but when i compile i m getting the error as type 'sqlconnection' not defined.same is with sqldataadapter and sqlcommandbuilder.i m getting the error of type not defined





Similar Threads
Thread Thread Starter Forum Replies Last Post
connectivity with sql server 2005. tanzi ASP.NET 1.0 and 1.1 Basics 1 September 25th, 2007 04:00 AM
sql connectivity using stored procedure in asp.net krishna kumari Classic ASP Databases 2 January 17th, 2007 02:45 PM
connectivity of c++ to sql server 2000 nigam.samir C++ Programming 0 August 12th, 2006 08:01 AM
ADO.NET connectivity problem with SQL Server !!! virajp ADO.NET 2 December 5th, 2005 11:51 PM
SQl Server Connectivity a_saravgi VB.NET 2002/2003 Basics 2 January 6th, 2005 12:14 AM





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