473,471 Members | 1,858 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Sql Connection String Problem

Hi All,

I have an ASP.NET application on my machine, and the sql server database on
another machine.
We just purchase a DSL connection and our hub is now have DSL for internet
connection.
Before installing DSL on the LAN. my application runs fine. But after that I
am unable to connect to the Sql server database via application.
Sql server connection through Enterprise manager is fine.

All the PCs now have fixed IP address declared by DSL modem.
Previously IP address for the machines are dynamically assign by a server.

What should be the problem.

I am using SqlClient for the application.

Regards
Ather Ali Shaikh

Nov 18 '05 #1
3 1031
I would suspect a problem with host name resolution - can you ping the
server by name?

(or try putting the IP address in the connect string)

"Ather Ali Shaikh" <at*******@eintelligencesoft.com> wrote in message
news:uA**************@TK2MSFTNGP12.phx.gbl...
Hi All,

I have an ASP.NET application on my machine, and the sql server database on another machine.
We just purchase a DSL connection and our hub is now have DSL for internet
connection.
Before installing DSL on the LAN. my application runs fine. But after that I am unable to connect to the Sql server database via application.
Sql server connection through Enterprise manager is fine.

All the PCs now have fixed IP address declared by DSL modem.
Previously IP address for the machines are dynamically assign by a server.

What should be the problem.

I am using SqlClient for the application.

Regards
Ather Ali Shaikh

Nov 18 '05 #2
I have tried to use IP address but not successful.
Also ping is working fine.

Regards
Ather Ali Shaikh
"Andy Fish" <aj****@blueyonder.co.uk> wrote in message
news:Oi**************@TK2MSFTNGP11.phx.gbl...
I would suspect a problem with host name resolution - can you ping the
server by name?

(or try putting the IP address in the connect string)

"Ather Ali Shaikh" <at*******@eintelligencesoft.com> wrote in message
news:uA**************@TK2MSFTNGP12.phx.gbl...
Hi All,

I have an ASP.NET application on my machine, and the sql server database
on
another machine.
We just purchase a DSL connection and our hub is now have DSL for
internet connection.
Before installing DSL on the LAN. my application runs fine. But after that I
am unable to connect to the Sql server database via application.
Sql server connection through Enterprise manager is fine.

All the PCs now have fixed IP address declared by DSL modem.
Previously IP address for the machines are dynamically assign by a

server.
What should be the problem.

I am using SqlClient for the application.

Regards
Ather Ali Shaikh


Nov 18 '05 #3
JMC

Hi
I have a simular problem.
It could be that the asp.net account does not have networks rights.
That means that you won't be able to access any network resourses including
sqlserver.
What you need to do is to change the user that running your application.
I don't have the correct code availible, but I know this question has been
posted before.
But there's your problem... no rights to the network resources.
Perhaps that will help you alittle?

/Jimmy
"Ather Ali Shaikh" <at*******@eintelligencesoft.com> wrote:
I have tried to use IP address but not successful.
Also ping is working fine.

Regards
Ather Ali Shaikh
"Andy Fish" <aj****@blueyonder.co.uk> wrote in message
news:Oi**************@TK2MSFTNGP11.phx.gbl...
I would suspect a problem with host name resolution - can you ping the
server by name?

(or try putting the IP address in the connect string)

"Ather Ali Shaikh" <at*******@eintelligencesoft.com> wrote in message
news:uA**************@TK2MSFTNGP12.phx.gbl...
> Hi All,
>
> I have an ASP.NET application on my machine, and the sql serverdatabase
on
> another machine.
> We just purchase a DSL connection and our hub is now have DSL for

internet > connection.
> Before installing DSL on the LAN. my application runs fine. But afterthat
I
> am unable to connect to the Sql server database via application.
> Sql server connection through Enterprise manager is fine.
>
> All the PCs now have fixed IP address declared by DSL modem.
> Previously IP address for the machines are dynamically assign by a

server. >
> What should be the problem.
>
> I am using SqlClient for the application.
>
> Regards
> Ather Ali Shaikh
>
>
>




----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Paul Robinson | last post by:
I am developing a website in ASP that connects to a Sybase database. However, when I try to open a connection to the database the page will not load. The script does not timeout, nor the...
17
by: AMC | last post by:
Hi, I'm using an include file to store the connection string to a database. Whenever I try to reference that string to open a connection in the page that includes the file I get the error 'empy...
0
by: Bob | last post by:
I have an ASP.NET web application that has been running without any problems for a while. I recently transferred the site to shared hosting and had multiple users start to use the site. The problem...
4
by: Rahul Anand | last post by:
Getting SQL Exception when trying to implement Connection based Trasaction using SQL Helper class. I am using the follwing function to execute my stored procs: -=-=-=- ExecuteScalar(ByVal...
6
by: Bala Nagarajan | last post by:
Hello, I am using Oracle 9i in my application and facing a problem with the connection string. In the datasource attribute of the connection string i had to specify an entry in "tnsnames.ora"...
14
by: WebMatrix | last post by:
Hello, I have developed a web application that connects to 2 different database servers. The connection strings with db username + password are stored in web.config file. After a code review,...
2
by: RyoSaeba | last post by:
Hello, I have a problem with the session state set to Sql Server (AspNet 1.1, Windows Server 2003 on an Application Center cluster, Sql Server 2000 on another server). Sometimes, when many user...
20
by: fniles | last post by:
I am using VS2003 and connecting to MS Access database. When using a connection pooling (every time I open the OLEDBCONNECTION I use the exact matching connection string), 1. how can I know how...
3
by: Harry Strybos | last post by:
Hi All I have a really strange problem occurring in my application. When I read in the application settings for connection strings the following happens: Here are my connection string settings...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.