473,385 Members | 1,337 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.

2 computers (1-MsSQL, 2-VB.NET application) - doesn't work :-(

I have problem.
I have application which is connected to MS SQL base on my computer.
It works perfectly.

I tried to move application on other computer and it says that server
doesn't exist or acces denied :-(

http://img259.echo.cx/my.php?image=baza4qk.jpg

What is the best method to connect to SQL base with VB.NET Windows
Application using IP?
Nov 21 '05 #1
5 1975
Chreo,

Have a look at the top of this page SQLClient using IP
http://www.connectionstrings.com/

I hope this helps,

Cor
Nov 21 '05 #2
Great page!
but...
Still the same....server doesn't exist or access denied.

When I open Query analyzer it works when I give IP addres as SQL Serwer,
LOGIN and PASSWORD.

The same values are used in application:
Me.SqlConnection1.ConnectionString = "Data Source=62.179.xx.xx, 1433;
Network Library=DBMSSOCN; Initial Catalog=market; User ID=market;
Password=market;"

I don't know where is the problem - in database or application?
But database opens when I give that values...
So maybe something more to add in connection string?
Użytkownik "Cor Ligthert" <no************@planet.nl> napisał w wiadomości
news:eh*************@TK2MSFTNGP15.phx.gbl...
Chreo,

Have a look at the top of this page SQLClient using IP
http://www.connectionstrings.com/

I hope this helps,

Cor

Nov 21 '05 #3
Is it possible that i don't have DBMSSOCN.DLL?
I can't find It on my disc...
Is it part of MS SQL or .NET?
Where can I find it? :)
Użytkownik "chreo" <ch***@gazeta.pl> napisał w wiadomości
news:d5**********@inews.gazeta.pl...
Great page!
but...
Still the same....server doesn't exist or access denied.

When I open Query analyzer it works when I give IP addres as SQL Serwer,
LOGIN and PASSWORD.

The same values are used in application:
Me.SqlConnection1.ConnectionString = "Data Source=62.179.xx.xx, 1433;
Network Library=DBMSSOCN; Initial Catalog=market; User ID=market;
Password=market;"

I don't know where is the problem - in database or application?
But database opens when I give that values...
So maybe something more to add in connection string?
Użytkownik "Cor Ligthert" <no************@planet.nl> napisał w wiadomości
news:eh*************@TK2MSFTNGP15.phx.gbl...
Chreo,

Have a look at the top of this page SQLClient using IP
http://www.connectionstrings.com/

I hope this helps,

Cor


Nov 21 '05 #4
I found something:

Everywhere I see that I should use
DBMSSOCN.dll

But I have MS SQL 2000 and it uses: DBNETLIB.dll to TCP IP connections.

But I can't set Network Library to : DBNETLIB in VB.NET because it is not
valid value :-(
Nov 21 '05 #5
what a strange connection string do you have

i use this

Private strMvarConnect As String =
"server=192.168.1.2;database=mydatabase;uid=john;p wd=doe;"

and this works flawless

in my situation ( SQL SERVER 2000 ENTERPRISE EDITION on a TCP network )

regards

the client only needs MDAC for this to function ( no sql tools or what so
ever )

M. Posseth [MCP Developer]




"chreo" <ch***@gazeta.pl> wrote in message
news:d5**********@inews.gazeta.pl...
I found something:

Everywhere I see that I should use
DBMSSOCN.dll

But I have MS SQL 2000 and it uses: DBNETLIB.dll to TCP IP connections.

But I can't set Network Library to : DBNETLIB in VB.NET because it is not
valid value :-(

Nov 21 '05 #6

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

Similar topics

7
by: x muzuo | last post by:
Hi guys, I have got a prob of javascript form validation which just doesnt work with my ASP code. Can any one help me out please. Here is the code: {////<<head> <title>IIBO Submit Page</title>...
1
by: Station Media | last post by:
Hi, here my problem, i use stored procedure in ACCESS database(latest version), and i would like to use this procedure but it doesnt work, do you know why ? Procedure: PARAMETERS MyField Text...
1
by: nousha | last post by:
hi everybody, i have a dropdownlist in web application but it doesnt work if anybody met this problem before plz help me
3
by: Clouds | last post by:
Hi ! How do I add the dynamic event handler for a dropdownlist present in the itemtemplate of a datalist !! I am doing it in the itemdatabound event of the datalist but it doesnt work... I am...
0
by: Juna | last post by:
I have been working in vs2003, but now started to work in vs2005 but the problem, I have simple web application not website, which work i mean open in browser when we press F5 or run the...
1
Digital Don
by: Digital Don | last post by:
I am writing a program for Peg solitaire... To check for no repetition of previous states I use a Set for storage of Board states.. The pronblem is when I declare the set as type char i.e. set...
3
by: jx2 | last post by:
hi guys i would appriciate your coments on this code - when i ran it for the very first time it doesnt see @last = LAST_INSERT_ID() but when i ran it next time it read it properly i need to know it...
3
by: thread | last post by:
hi all, i'm trying to hide by database with this code: Application.CurrentDb.TableDefs(CurrentDb.TableDefs(i).Name).Properties("Attributes").Value = dbhiddenobject from some reason it doesnt...
1
by: Dany13 | last post by:
hi all. i using some text box for input value and some localvarible for passing this data to dataset . give instance for correct row of dataset and data in data table . use one gird view for...
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: 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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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.