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 February 24th, 2006, 07:00 AM
Registered User
 
Join Date: May 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Error while accessing SQL data from ASP.NET

I am using SQL Server 2000 from a LAN. When Create windows application and access MS SQL data it work properly, but when used run same queries through ASP.NET, browser show an error "SQL Server does not exist or access deny". Please help me.

 
Old February 24th, 2006, 12:21 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

What is the code you are using ?

Jim

 
Old February 26th, 2006, 03:18 AM
Registered User
 
Join Date: Jan 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi,
     this error is due to the connection string. I think you have check the connection string.

 the DataSource;DataBase;UID;PWD;

"userid=username;password=password;server=serverur lTrusted_Connection=yes;database=database;connecti on timeout=30"

I think please check the connection string properly

bye
happy programming






Similar Threads
Thread Thread Starter Forum Replies Last Post
Error reading data from excel to sql using ASP m_soni21 Classic ASP Professional 1 June 17th, 2008 12:40 AM
asp.net 2 accessing sql database code problem... minstrel ASP.NET 2.0 Basics 1 August 31st, 2006 11:40 PM
Insert data in SQL ASP .NET 2.0. alexsaiz82 ASP.NET 2.0 Basics 0 January 3rd, 2006 03:28 PM
Accessing .asp cookie from ASP.net ksams General .NET 4 July 7th, 2004 02:34 AM





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