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

SQL Server Connection with IP

Hi,

I have to connect SQL Server. In local SQL server my connection string is;
strConn = "Data Source=NTMS-2005;Initial Catalog=DBANK;Integrated
Security=SSPI;"

and I can connect very easily.

My problem is how to connect the Server PC that has the SQL Server. I used
following string but I failed. It says cannot find the SQL Server.

strConn = "Data Source=190.168.0.97,1433;Network Library=DBMSSOCN;Initial
Catalog=DBANK;User ID=myID;Password=myPASSWORD;"

I will be glad if someone will point me the right direction.

Thanks.

Rgds,
GC
Sep 28 '05 #1
2 1579
Hello Niyazi,

There is everything ok with your connection string.
Have u ever tried to turn off firewall, or to connect to your remote DB through
EnterpriseManager?

N> I have to connect SQL Server. In local SQL server my connection
N> string is;
N> strConn = "Data Source=NTMS-2005;Initial Catalog=DBANK;Integrated
N> Security=SSPI;"
N> and I can connect very easily.
N> My problem is how to connect the Server PC that has the SQL Server. I
N> used following string but I failed. It says cannot find the SQL
N> Server.
N>
N> strConn = "Data Source=190.168.0.97,1433;Network
N> Library=DBMSSOCN;Initial Catalog=DBANK;User
N> ID=myID;Password=myPASSWORD;"

---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/members/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Sep 28 '05 #2
Hi Michael,

I cannot turn off the firewall because of the restriction use of local LAN.
But the port 1433 is open from Network Administrator.

I createb the employee database using my (local) SQL Server and now they
want me to put the SQL server into Application server and the 5 user
(Management) can use the client application to view the Employee detail. It
is a 3 Tire application.

I had another PC with me which connected to my local switch and I will going
to try tomorrow.

By the way do you know how to attache SQL Server Database using VB.NET?
Also do you know how to back-up SQL Server with VB.NET. Or should I use SQL
Server for itself to do the backing up operation?

Thank you.

Rgds,
GC
"Michael Nemtsev" wrote:
Hello Niyazi,

There is everything ok with your connection string.
Have u ever tried to turn off firewall, or to connect to your remote DB through
EnterpriseManager?

N> I have to connect SQL Server. In local SQL server my connection
N> string is;
N> strConn = "Data Source=NTMS-2005;Initial Catalog=DBANK;Integrated
N> Security=SSPI;"
N> and I can connect very easily.
N> My problem is how to connect the Server PC that has the SQL Server. I
N> used following string but I failed. It says cannot find the SQL
N> Server.
N>
N> strConn = "Data Source=190.168.0.97,1433;Network
N> Library=DBMSSOCN;Initial Catalog=DBANK;User
N> ID=myID;Password=myPASSWORD;"

---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/members/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche

Sep 28 '05 #3

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

Similar topics

13
by: Fortepianissimo | last post by:
Here is the situation: I want my server started up upon connection. When the first connection comes in, the server is not running. The client realizes the fact, and then starts up the server and...
2
by: Dicky Cheng | last post by:
Hi, I am using .net remoting technology. I set up a .net remoting client and server in IIS. When the client calls the server, the server will run a long duration method (30-60seconds). I have a...
5
by: Fred Zuckerman | last post by:
Hello All, After reading in this group about the preference for connecting to a SQL Server using a connection string instead of a DSN file, I have done just that. BUT, I cannot update my data....
12
by: RKay | last post by:
I have a Win2k server running SQL Server 2000. On that box I built a working web service that pulls data from the database. One of the services available simply accepts an ado.net connection string...
0
by: Suresh | last post by:
Hi Guys I have Db2 server installed on remote server. i am connecting to that remote server by using VPN. I want to connect that remote DB2 server instance using my local machine DB2...
14
by: Marcus | last post by:
I have a function that simply returns TRUE if it can connect to a particular Sql Server 2005 express, or FALSE if it cannot. I am getting some strange error codes returned when the computer that...
25
by: _DD | last post by:
I'd like to include a 'Test Connection' button in an app, for testing validity of a SQL connection string. I'd prefer to keep the timeout low. What is the conventional way of doing this?
17
by: Anil Gupte | last post by:
I am using the following to try to connect to the database, but it does not seem to be working. Dim sConnString sConnString = "Provider=SQLNCLI.1;Integrated Security=SSPI;Persist Security...
39
by: alex | last post by:
I've converted a latin1 database I have to utf8. The process has been: # mysqldump -u root -p --default-character-set=latin1 -c --insert-ignore --skip-set-charset mydb mydb.sql # iconv -f...
5
by: Cirene | last post by:
I just deployed my new ASP.NET (3.5 FW) site to the hosting company I'm using, webhost4life. NOTE: I HAVE deployed other SQL Server sites to the same account with no issues. Now I'm getting...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: 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...
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
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...

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.