473,378 Members | 1,078 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

ASP.NET C# web application to connect to SQL SERVER 2000 database

Hi,

I have a problem with database connection to SQL server 2000 from ASP.NET. When I try to connect, it give me the errors.
But, When I try to connect to SQL SERVER 2005. It works fine.

Any ideas what the problems might be?

Thanks.
Jason.
Feb 26 '08 #1
8 3990
Plater
7,872 Expert 4TB
Your connection string?
http://www.connectionstrings.com/

Or maybe the permissions set up on the sql2000 don't allow for you to connect to it.

What error(s) are you getting?
Feb 26 '08 #2
Your connection string?
http://www.connectionstrings.com/

Or maybe the permissions set up on the sql2000 don't allow for you to connect to it.

What error(s) are you getting?

The errors I am getting is:
An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: TCP Provider, error: 0 - No connection could be made because the target machine actively refused it.)
Feb 26 '08 #3
Plater
7,872 Expert 4TB
Sounds like the settings of the SQL server don't allow remote connections.
You should go through all those permissions and set up everything.
Feb 26 '08 #4
Sounds like the settings of the SQL server don't allow remote connections.
You should go through all those permissions and set up everything.
I tried all the permission setting, but it still won't work.

Is this the reason two database servers (2000 & 2005) installed on the same server?
My OS is Window Server 2003 Enterprise x64 Edition.
MS SQL SERVER 2005 is 64 bit version and MS SQL SERVER 2000 is 32 bit standard edition.

Any ideas what wrong with this setting?

Thanks.
Feb 26 '08 #5
Shashi Sadasivan
1,435 Expert 1GB
two different databases will have two different instances.

You may need to go to the surface area configuration and change settings to allow Tcp IP connections too

The database might not allow windows authentication, and you may be trying to use that in the connection string.
Feb 27 '08 #6
two different databases will have two different instances.

You may need to go to the surface area configuration and change settings to allow Tcp IP connections too

The database might not allow windows authentication, and you may be trying to use that in the connection string.

I used sql authentication. But there is no surface area configuration in SQL server 2000. Instead, I found server network utility and client network utility.

Actually, I used mostly sql server 2005, and i never used sql server 2000 before.
I change some of the setting in server network utility such as adding TCP/IP, Name Pipes and setting the port number to 1433 because i found that the default port number is set to 0.
Feb 27 '08 #7
Shashi Sadasivan
1,435 Expert 1GB
I am Not sure of the settings in Sql Server.

However since this topic is regarding the setings with Sql Server I will move the topic to the Sql Server Group where experts there will be able to help you better.

-MODERATOR
Feb 27 '08 #8
I am Not sure of the settings in Sql Server.

However since this topic is regarding the setings with Sql Server I will move the topic to the Sql Server Group where experts there will be able to help you better.

-MODERATOR
Thanks a lot.

-Jason
Feb 27 '08 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Vaap | last post by:
I did lot of googling to see if I can solve the SQL server not found problem while trying to run ASP.Net community starter kit from an XP machine to Windows 2003 server hosting SQL server 2000...
13
by: Edward Mitchell | last post by:
I have a problem that involves the error I receive when attempting to complete the asp.net web application example (Walkthrough: Creating a Web Application Using a Third-Party Business Object). ...
6
by: B B | last post by:
Okay, here is what's happening: I have a reasonably fast laptop (1.4 GHz Mobile M, so comparable to 2.5GHz P4) doing .net development. Running Windows XP pro, SP2 IIS is installed and running...
4
by: Vince Varallo | last post by:
Hello, I do not have SQL Server 2005 installed on my computer and will not be able to based on company policy. However I do have SQL Server 2000. I want to create the application service...
1
by: bitchanger | last post by:
I have installed an SQL Server 2000 Developer Edition (SP4) on a computer that has Windows Server 2003 on it.The server is connected to the workgroup "WORK" and has no Active Directory. Now I...
4
by: traceable1 | last post by:
I have a couple new servers - Windows 2003 R2 - with SQL Server 2000 SP4 installed. They are all Active/Active clustered instances (my first ones). I am trying to create database links to other...
1
by: Schalley Ben | last post by:
Hi First of all, this is my first post on a newsgroup so don't shoot me if I ask this in the wrong place. Here is the situation. I'm developing an asp.net application with access to a SQL...
0
by: tamayi | last post by:
I have a problem (like most others posting issues on this forum :) ) I have a remote server running Windows XP SP2, with both SQL Server 2005 Express with Advanced Features and SQL 2000...
3
by: =?Utf-8?B?ZGF2aWQ=?= | last post by:
Last week I asked a question about connection to database from client machine (developer machine). I have changed the database security setup for "SQL Server and Windows" under (local)Windows NT...
2
navanova
by: navanova | last post by:
Hi Guys, I've developed a C# application and managed to install it on the client PC Successfully. The application uses SQL server 2000 database. The application is installed on the client PC without...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.