473,386 Members | 1,798 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,386 software developers and data experts.

How to connect SQL Server from ASP.NET Page

Rik
Hello Experts,

I am new to ASP.NET, I already have hosted my Web site, which Open a SQL
Connection to my Static IP Address, But I can't make it happens.

My Connection Looks Like this.

Data Source = 120.xxx.xxx.xxxx,1444

And rest is the same, it work locallay but not when I launch it on web?

Can any body guide me please.......

Thanks ia Advance.

Rik
Nov 19 '05 #1
5 1446
Data Source = 120.xxx.xxx.xxxx,1444
Rik is that only ur connection?
how can that connect ..
And pls ask the Admin where u are hosting ur website whats the database
server name u are connecting to and ur password and username.
And tthen use the string below to connect:-
"Data Source=DatabaseServerName;Initial Catalog=DatabaseName;User
Id=;Password=;"
Hope it helps.
PAtrick


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #2
Rik
Patrick,

I really appriciate you response.

strCmd = "user id=sa;password=testserver;initial catalog=TestDatabase;data
source=210.xxx.xxx.146,1444;Connect Timeout=30"

The IP Address is our Static IP Address, which is linked with my system, and
My System have SQL Server running on it.

I generated a ASP.NET page, and Launched it on the free trial Web Hosting
web site "Webmatrixhosting.net"

Now when I want to connect to the my Static IP Address, It raised an Error,
SQL Server Does not exit.

Waiting for further help please....

rik



"Patrick Olurotimi Ige" <ig*@iprimus.com.au> wrote in message
news:OG**************@TK2MSFTNGP12.phx.gbl...
Data Source = 120.xxx.xxx.xxxx,1444
Rik is that only ur connection?
how can that connect ..
And pls ask the Admin where u are hosting ur website whats the database
server name u are connecting to and ur password and username.
And tthen use the string below to connect:-
"Data Source=DatabaseServerName;Initial Catalog=DatabaseName;User
Id=;Password=;"
Hope it helps.
PAtrick


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 19 '05 #3
Rik,

offhand, why are you using port 1444 ?
The usual port is 1433.

Did you change SQL Server's port ?

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
=====================

"Rik" <ri********@yahoo.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Patrick,

I really appriciate you response.

strCmd = "user id=sa;password=testserver;initial catalog=TestDatabase;data
source=210.xxx.xxx.146,1444;Connect Timeout=30"

The IP Address is our Static IP Address, which is linked with my system,
and My System have SQL Server running on it.

I generated a ASP.NET page, and Launched it on the free trial Web Hosting
web site "Webmatrixhosting.net"

Now when I want to connect to the my Static IP Address, It raised an
Error, SQL Server Does not exit.

Waiting for further help please....

rik "Patrick Olurotimi Ige" <ig*@iprimus.com.au> wrote in message
news:OG**************@TK2MSFTNGP12.phx.gbl...
Data Source = 120.xxx.xxx.xxxx,1444
Rik is that only ur connection?
how can that connect ..
And pls ask the Admin where u are hosting ur website whats the database
server name u are connecting to and ur password and username.
And tthen use the string below to connect:-
"Data Source=DatabaseServerName;Initial Catalog=DatabaseName;User
Id=;Password=;"
Hope it helps.
PAtrick

Nov 19 '05 #4
Rik
Yes I did change the Port Setting of Sql server, as I came to know that mist
of the ISP are blocking the 1433 port. So I changed it from 1433 TO 1444.

Thanks for your Reply,

Any more clues?
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:Oq**************@tk2msftngp13.phx.gbl...
Rik,

offhand, why are you using port 1444 ?
The usual port is 1433.

Did you change SQL Server's port ?

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
=====================

"Rik" <ri********@yahoo.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Patrick,

I really appriciate you response.

strCmd = "user id=sa;password=testserver;initial
catalog=TestDatabase;data source=210.xxx.xxx.146,1444;Connect Timeout=30"

The IP Address is our Static IP Address, which is linked with my system,
and My System have SQL Server running on it.

I generated a ASP.NET page, and Launched it on the free trial Web Hosting
web site "Webmatrixhosting.net"

Now when I want to connect to the my Static IP Address, It raised an
Error, SQL Server Does not exit.

Waiting for further help please....

rik

"Patrick Olurotimi Ige" <ig*@iprimus.com.au> wrote in message
news:OG**************@TK2MSFTNGP12.phx.gbl...
Data Source = 120.xxx.xxx.xxxx,1444
Rik is that only ur connection?
how can that connect ..
And pls ask the Admin where u are hosting ur website whats the database
server name u are connecting to and ur password and username.
And tthen use the string below to connect:-
"Data Source=DatabaseServerName;Initial Catalog=DatabaseName;User
Id=;Password=;"
Hope it helps.
PAtrick


Nov 19 '05 #5
Rik so the problem is u are hosting ur site at webmatrixhosting and u
can't connect to there Database?
If thats the case trying going to :-

http://support.webmatrixhosting.net/..._TSSQL&lang=en

its the WebMatrixHosting.net Support Center

Or is that u are trying to connect to SQLServer DB on your own PC?

Elaborate more

Hope it helps
PAtrick
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #6

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

Similar topics

0
by: Kevin Sage | last post by:
For anyone who is having this problem and want to know the solution. Add this line of code before your connect method call. It loads up some config file that the code behind the scenes needs...
33
by: Savas Ates | last post by:
in asp page im getting this error how can i solve it.. yesterday the codes work but i setup visual studio 6.0 now it doesnt works..
0
by: Ryan Stewart | last post by:
I'm running MySQL server on a WinXP box at home. I have a cable modem/router. I've set up port forwarding on port 3306 to the machine running MySQL. I can connect locally just fine, but when I try...
1
by: lytung | last post by:
Hi All, I have been struggling with this problem for quite some time. Basically i have an asp page (on the ISP server) that I want to connect to a sql server on another machine (on my server)...
11
by: Marcus | last post by:
Hello! I'm trying to write a VB.NET program that connects to a AS/400 Server. I've tried almost everything, but it will not connect. I've tried to set up a DSN using the Client Access...
4
by: d3vkit | last post by:
Okay so I am at a loss here. I have a website that I've previously had no trouble connecting to the mysql DB on. I have an include to a connect file with the relevant connection info, and it was...
5
by: Nathan Sokalski | last post by:
I am attempting to send an email using ASP.NET 1.1's Mail.SmtpMail.Send() method. My code contains all of the following: Dim mailmsg As New Mail.MailMessage Mail.SmtpMail.SmtpServer =...
6
by: xx75vulcan | last post by:
Hi, I have two seperate production machines that I'm trying to get to play nicely together. This setup has worked for years before - until recently bother machines were reformatted, and...
7
by: RN1 | last post by:
Is it possible to connect to my local SQL Server 2005 database from a remote web server? If yes, what ConnectionString do I use? Thanks, Ron
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.