Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
| Search | Today's Posts | Mark Forums Read
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 23rd, 2006, 03:07 AM
Friend of Wrox
 
Join Date: Feb 2006
Location: noida, UP, India.
Posts: 133
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to gaurav_jain2403
Default Database at different location

Hello,
Is there any way in .NET that we can access the database from the computer at different location(say in different city) connected only through internet. If it is possible, What do I need to do. What is the syntax? What will be the connection string?

Gaurav Jain.
__________________
Gaurav
 
Old May 23rd, 2006, 04:34 AM
Friend of Wrox
Points: 410, Level: 7
Points: 410, Level: 7 Points: 410, Level: 7 Points: 410, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2004
Location: New Delhi, India.
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anubhav.kumar
Default

hi,
 You have to put the public ip of the remote system in data source and username pwd as well in connection string

Anubhav Kumar
 
Old May 23rd, 2006, 04:58 AM
Friend of Wrox
 
Join Date: Feb 2006
Location: noida, UP, India.
Posts: 133
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to gaurav_jain2403
Default

So, this means I can write as below:
dim sqlstr as sqlconnection = new sqlconnection("server=101.103.11.22,database="pubs ",uid="sa",pwd=")
I wonder if this really work. In this manner anyone who knows the database name and public IP can access its database..........
 
Old May 24th, 2006, 07:01 AM
Friend of Wrox
 
Join Date: Feb 2006
Location: noida, UP, India.
Posts: 133
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to gaurav_jain2403
Default

Can anyone help me. Please tell me exactly how can I do this if possible....
 
Old May 29th, 2006, 12:50 AM
Friend of Wrox
Points: 410, Level: 7
Points: 410, Level: 7 Points: 410, Level: 7 Points: 410, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2004
Location: New Delhi, India.
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anubhav.kumar
Default

hi,

Any one who knows public Ip does not know user name and password. Moreover increase secuiry by using integrated windows security instead




Similar Threads
Thread Thread Starter Forum Replies Last Post
Database Location Makepeace1 Classic ASP Databases 2 May 20th, 2008 07:51 AM
Subreport with database location issue dantetang BOOK: Professional Crystal Reports for VS.NET 0 September 4th, 2005 11:09 PM
Changing Database Location in Runtime jstokes8447 Crystal Reports 0 December 28th, 2004 06:37 PM
Set Database Location dazzer Crystal Reports 1 July 26th, 2004 09:33 AM
Database Location egerdj BOOK: Beginning ASP 3.0 1 February 20th, 2004 04:27 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.