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

Urgent code needed for connecting to a remote sql server

Hello everybody,
Thanks for everybody who tries to help me out. I need code for connecting to a remote database(Sql server2000) through the vb.net 2003. The sql server will be placed remotely outside the lan. Please help me.

Yours Faith fully,
Varun.
sd/-
Sep 18 '06 #1
6 2147
nmsreddi
366 256MB
hello

what actually your problem you are saying remote server is out of lan what it indicates ,is there no physical connectionm existing

can you be more specific
Sep 19 '06 #2
I am going to do a project in which i have to connect to a remote database. Its not in a computer in my local area network. That system will be situated remotely in some places. We have to connect to the system and retrive data from the sql2000 database. So i want help to get connection to the system in which ever ways possible.
Sep 19 '06 #3
Inside LAN or outside LAN or outside WORLD!!!... connection string remains same.

Expand|Select|Wrap|Line Numbers
  1. "Data Source=ipaddress;Initial Catalog=db;User Id=username;Password=apassword;"
:)

But internet connectivity is a must.
Sep 19 '06 #4
nmsreddi
366 256MB
hello

Dont bother where ever the server may reside in your connection string you just change datasource(server) field


datasource=IP of the server if you are using internet

or

datasource=server name iof you are using local server

connection never changes but make sure that user id and password are correct
Sep 20 '06 #5
radcaesar
759 Expert 512MB
Use that particular DB Server Name or IP and Uname and Password. But You must have rights to connect to that DB. Don't had a thought of whether its inside your office or outside.
Sep 20 '06 #6
Thank you my Brothers,
For all the help u have done. I expect more from you please help me like this to get a bright career. Thanks again.
Nov 8 '06 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Henrik Nordgren | last post by:
Im trying to build a simple chat app... here is the code: server visual basic code:-------------------------------------------------------------------------------- Public Class ChatServer ...
3
by: stabbert | last post by:
We are running DB2 UDB 8.1.6 in a partitioned environment where we have 8 physical nodes. We have a process that remotely connects to each individual node and loads some data. By setting the...
7
by: Gordon Smith | last post by:
I have four (4) ASP.NET Web applications/Web sites on a IIS/6 - Windows Server 2003 production server. 3 of them work fine. I just installed the 4th one and it's Application_Start event is not...
5
by: bill | last post by:
I am having difficulties connecting to a remote Sql server database in VB.net. Lets say my remote server is found at 255.255.255.255 and its name is MyServer. The database is called MyDatabase....
4
by: Zalak Dedhia via DotNetMonster.com | last post by:
Hello Guys, I need some help urgently regarding the code to connect to the SQl Server on a remote machine and possible configurations to make, or chanegs in the connection string or so. I...
5
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...
2
by: Preetam Pattanashetty | last post by:
Hi I am learning ASP.NET using C#. I am able to run .aspx files on local system, but when I load them to the server, I get the "Server Error in '/' Application" error. I have tried to configure the...
3
by: Me LK | last post by:
I did a search but could not find an aswer that worked so here it goes. I just did an upgrade from 2003 to vs 2005 express. I am using a remote sql server 2000. I specifically upgrade to make...
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:
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...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.