473,757 Members | 9,145 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SQL SERVER Connection Problem II

Hi,

I can connect using my PC local SQL Server Enterprise manager to Remote SQL
Server.
But I cannot connect using my Connection string?

strConn = "Data Source=190.168. 0.97,1433;Netwo rk Library=DBMSSOC N;Initial
Catalog=DBANK;U ser ID=myID;Passwor d=myPASSWORD;"

Does anyone knows any idea?

Thank you for reading this.

Rgds,
GC
Sep 30 '05 #1
9 6565
Hello,

What about:
strConn = "Data Source=190.168. 0.97:1433;Netwo rk
Library=DBMSSOC N;Initial Catalog=DBANK;U ser
ID=myID;Passwor d=myPASSWORD;"

Regards,

Mark
Hi,

I can connect using my PC local SQL Server Enterprise manager to
Remote SQL
Server.
But I cannot connect using my Connection string?
strConn = "Data Source=190.168. 0.97,1433;Netwo rk
Library=DBMSSOC N;Initial Catalog=DBANK;U ser
ID=myID;Passwor d=myPASSWORD;"

Does anyone knows any idea?

Thank you for reading this.

Rgds,
GC

Sep 30 '05 #2
Hello Niyazi,

I think everyting is rignt in your connection string.The port number you
have stated is default port.It might be possible that it is set other than
1433 in your case so check it.

if you still have problem let me know the error in details.

Thanks,

Bhavesh Patel.
Software Enggineer,
Ahmedabad.

"Niyazi" wrote:
Hi,

I can connect using my PC local SQL Server Enterprise manager to Remote SQL
Server.
But I cannot connect using my Connection string?

strConn = "Data Source=190.168. 0.97,1433;Netwo rk Library=DBMSSOC N;Initial
Catalog=DBANK;U ser ID=myID;Passwor d=myPASSWORD;"

Does anyone knows any idea?

Thank you for reading this.

Rgds,
GC

Sep 30 '05 #3
Hi,

I set the port number as correct ....:1433 but still I cannot connect. I
disable Windows XP firewall and now my Enterprise manager cannot see the
remote SQL Server.

When I set right connection to my application as you suggested I get an
error that says "Specified SQL Server not found: 192.168.0.90:14 33"

And when I try to connect to Remote SQL Server via Enterprice Manager in my
Local PC I get and access denied error.

Does anyone know how to set SQL Logings in Remote SQL Server so I can use my
connection string. I am guessing that I am having access problem.

Thank you.

Rgds,
GC

"Bhavesh Patel" wrote:
Hello Niyazi,

I think everyting is rignt in your connection string.The port number you
have stated is default port.It might be possible that it is set other than
1433 in your case so check it.

if you still have problem let me know the error in details.

Thanks,

Bhavesh Patel.
Software Enggineer,
Ahmedabad.

"Niyazi" wrote:
Hi,

I can connect using my PC local SQL Server Enterprise manager to Remote SQL
Server.
But I cannot connect using my Connection string?

strConn = "Data Source=190.168. 0.97,1433;Netwo rk Library=DBMSSOC N;Initial
Catalog=DBANK;U ser ID=myID;Passwor d=myPASSWORD;"

Does anyone knows any idea?

Thank you for reading this.

Rgds,
GC

Oct 3 '05 #4
Hi,

I try to create a DSN to remote SQL Server and I get an error as follows.
--------------------------------------------------------------------------------------------
Connection failed:
SQLState: '01000'
SQL Server Error: 1326
[Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnetionOpen (Connect()).
Connection failed:
SQLState: '08001'
SQL Server Error: 17
[Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or
access denied.
-----------------------------------------------------------------------------------------------

This morrning since 7am my local timne to 1pm I search the internet and I
only find that I should update my SQL Server with SP4.

Now I am nearly downloaded all the update and after lunch I will going to
try it.

But is the error is link the update or some other setting in my SQL Server
as well as my WinXP SP2 that reside the remote SQL Server setting has
something to do?

I will post my result this afternoon or tomorrow mornning.

Thank you.

Rgds,
GC
Oct 3 '05 #5
Hi,

After I install the SQL SERVER 2000 SP4 I try to connect using SQL SERVER
Enterprise manager and it was succesful. Then I test it using VS.NET 2003
Server Wizard Toolbox and created the connection. I copied the connection
string as:

Dim strConn As String
strConn = "Server=SQL_SER VER_TEST;Databa se=DBANK;User
ID=myid;Passwor d=mypassword;"

And it worked very well.

I hope thsi will help others if they encounter similar problem.

Thank you.

Rgds,
GC
Oct 5 '05 #6
Hi,

I forget to write my SQL SERVER was in WIN XP PRO machine. So I open the
Windows Firewall Exceptions Diolog and I add a PORT as:

Name: TCP-IP
Port number: 1433

That will help me to access the SQL SERVER using the connection string as:

Dim strConn As String
strConn = "Server=SQL_SER VER_TEST;Databa se=DBANK;User
ID=myid;Passwor d=mypassword;"

Thank you.

Rgds,
GC
Oct 5 '05 #7
Hi,

Also if anyone get an error as: "SQL Server does not exist or access denied. "

They should also check the microsft support article 839296
http://support.microsoft.com/kb/839269/

If the client mechine is the WIN XP SP2 then conecting remote SQL Server
might get the above error.

I red the article and I set the my client machine as it is as well as my SQL
Server Test that is in another WIN XP PRO SP2. When I set 2 machine evrything
worked fine.

Rgds,
GC


Oct 6 '05 #8
Lee
I use this all the time to connect to any sql server using a .NET
SQLConnection.. .

"Server=190.168 .0.97;Database= DBank;Trusted_C onnection=No;UI D=myuid;PWD=myp wd;"
Oct 6 '05 #9
Hi Lee,

My problem was the Service Pack for MS SQL SERVER 2000. After I update It
worked fine when SQL Server 2000 reside on Win XP SP2 machine. I use this
machine as test mechine.

So after I search I found that If you connect SQL Server that resides on WIN
XP Pro with SP2 that means the Firewall is on than you cannot connect. Unless
you turn WIN XP PRO SP2 firwall to off mode. Than it connected. Than I search
and find the article (I posted previously) that I should adjust the setting
of the 2 machine to connect to SQL Server while WIN XP PRO SP2 Firewall in
the ON mode.

Now everythings fine with me expect the problem having in log In section.

I posted my problem how to convert SQL Server Binary data type to string and
string to Binary data type that I can store in SQL Server back when admin
people can register the new user.

If I mange this I will try to write small article about Employee application
that will be secure to connect to SQL Server for a small scale companies.

Thank you.

Rgds,
GC

"Lee" wrote:
I use this all the time to connect to any sql server using a .NET
SQLConnection.. .

"Server=190.168 .0.97;Database= DBank;Trusted_C onnection=No;UI D=myuid;PWD=myp wd;"

Oct 7 '05 #10

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

Similar topics

13
2028
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 tries to connect again. This of course all happens on the same machine (local connection only). The connections can come in as fast as 30+/sec, so the server is threaded (using SocketServer.ThreadingTCPServer). Further, the server initialization...
2
3943
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 test on it that if the network broken at the time the client have already send the remoting request and waiting for the server, the client side will wait infinitely by default, even if i already set the executionTimeout to 90seconds in...
5
8748
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. I have gone back and forth between using a DSN file and a DSN-less connection string and I have found the following issue. When I utilize the DSN file to create the link, there is a step where it asks me to identify a unique key for the file. If I...
12
1314
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 to test if a connection can be made to the local server. I can call that web service from any box on my network, and with the correct connection string, I can establish a connection to the database. However, when I copy the exact same service...
0
3922
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 development client. Bur Its gives me following error message. I searched lots of things on net and tried on remote server but i didnt got suceess. Can any one tell me how to set TCP\IP connection protocol on server for particular instance. Becuase I think
14
7042
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 sql server resides on is not reachable. The error is different depending on the connection string that I use. If I use the following connection string: "server=192.1.1.1; Initial Catalog=master; uid=The_User; password=The_Password; Connect...
25
14503
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
2652
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 Info=False;Initial Catalog=MediaDB;Data Source=MEDIAMACHINE\SQLEXPRESS" Connection.Open sConnString Dim Recordset Set Recordset=Server.CreateObject("ADODB.Recordset")
39
5869
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 ISO-8859-1 -t UTF-8 mydb.sql mydb_utf8.sql mysqlCREATE DATABASE mydb_utf8 CHARACTER SET utf8 COLLATE utf8_general_ci;
5
3558
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 this error. Any idea why? Server Error in '/myuser4/MyWebApp' Application. --------------------------------------------------------------------------------
0
9489
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10072
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9885
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9737
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7286
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6562
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5329
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3829
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 we have to send another system
3
2698
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.