473,748 Members | 11,145 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Urgent code needed for connecting to a remote sql server

5 New Member
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 2172
nmsreddi
366 Contributor
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
gabrielvarun
5 New Member
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
NinethSense
9 New Member
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 Contributor
hello

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


datasource=IP of the server if you are using internet

or

datasource=serv er 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 Recognized Expert Contributor
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
gabrielvarun
5 New Member
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
1489
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 Public Sub New()
3
3254
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 DB2NODE variable to a different value then the coordinator node is the only way I am aware for a remote application to do this so I am making the assumption that is how this application connects. What I am more interested in is that after logging...
7
2451
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 firing. I have double-checked everything (and rechecked) and I haven't found anything that would explain why the Application is not starting. Here is what I have done so far to troubleshoot this: In IIS Manager I have ensured that there is a...
5
2381
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. I drap my SQLDataAdapter on to the form and set up a new connection at the wizard. I am putting the IP address of my server under server name and entering my login and password. I get an access denied. Sql Server Error: 17.
4
1640
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 mean i keep getting the error "SQL Server or Access denied" To rectify this i have used 'n' number of diff combinations of the conenction string with the SQLConnection methos, please let me know if they
5
24015
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
14
7041
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...
2
2434
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 web.config file but has not been fruitful. I would be thankful if the following questions were answered: a)has the write permissions on files and folders have to do something with it? b)what role does asp_client folder play? c) What other...
3
5747
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 use of the login control. Everything upgraded fine and the site is working on my local machine. It seems that my site is trying to connect to a local database. I need it to attach to a remote database. I added a connection string to
0
9537
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...
0
9367
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9319
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
8241
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6795
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
4599
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4869
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3309
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
2213
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.