Wrong forum there, this is Java not VB. However, the answer to your question has nothing to do with VB or Java:
To get to SQL server from any client program, you have to set up an Odbc data source from your control panel, on your client machine, based on the SQL Server driver.
You quote the name of the server when setting up Odbc.
BUT to get it working over IP, you have to have first run the SQL Server Client Network Utility on your machine, and specified there that you want to connect to SQL server over IP.
If you've done that, and the server is running, and you type the server name in the ODBC control panel, and you set up the parameters you should be able to get a test connection.
NOTE You never need to know the IP address of the server. You DO need to know the Port Number that SQL server is listening on.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.