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

Problem - Using Visual Studio to connect to remote SQL server

Hi,

I am a newbie at all this, but here's what I want to do: We have a
very large database sitting on a SQL server that is on a remote
computer. I can access it through remote desktop and browse the
Enterprise Manager and the DB.

What I am trying to do is create a Visual Studio .Net program that
accesses the DB. Can I use a data adapter to connect to the DB? the
SQL server is on the local C drive of the remote computer so it is not
web based.
Otherwise I guess I'd have to install VS on the remote computer and
create the program there.... but I'm guessing, I really need some
advice here.
Jul 20 '05 #1
2 2516
Skye (ms***********@hotmail.com) writes:
I am a newbie at all this, but here's what I want to do: We have a
very large database sitting on a SQL server that is on a remote
computer. I can access it through remote desktop and browse the
Enterprise Manager and the DB.

What I am trying to do is create a Visual Studio .Net program that
accesses the DB. Can I use a data adapter to connect to the DB? the
SQL server is on the local C drive of the remote computer so it is not
web based.
Otherwise I guess I'd have to install VS on the remote computer and
create the program there.... but I'm guessing, I really need some
advice here.


Yes, you can access SQL Server from your remote computer, provided that
you are on the same network, and you have some login that has been
granted access to the server. Typically the connection string would
look like this:

Data Source=SERVER;Initial Catalog=Name of DB;Integrated Security=SSPI

Replace Integrated Security with User ID and Password if you are using
SQL Authentication.

(I am here assuming that you are using SqlClient.)

--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Jul 20 '05 #2
VS.NET is having problem connecting to DB and also there is a problem
with truncation of data when using VS.net.

I installed Sql 2k client and was able to connect.

Thank you
Raju

ms***********@hotmail.com (Skye) wrote in message news:<c4**************************@posting.google. com>...
Hi,

I am a newbie at all this, but here's what I want to do: We have a
very large database sitting on a SQL server that is on a remote
computer. I can access it through remote desktop and browse the
Enterprise Manager and the DB.

What I am trying to do is create a Visual Studio .Net program that
accesses the DB. Can I use a data adapter to connect to the DB? the
SQL server is on the local C drive of the remote computer so it is not
web based.
Otherwise I guess I'd have to install VS on the remote computer and
create the program there.... but I'm guessing, I really need some
advice here.

Jul 20 '05 #3

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

Similar topics

15
by: Ron L | last post by:
We are working on a distributed VB.Net application which will access a SQL database located on a known server. Each client will run on the user's local machine. To implement this, we are trying...
4
by: musosdev | last post by:
Hi peeps I've just moved my dev system to Win2k3 / VS2005 (from Win2k/VS2k3) and I'm having a problem. I've setup a new website in IIS, enabled .net, fpse, etc. From VS2005, if I choose...
9
by: RvGrah | last post by:
After much hair-pulling, I've finally found the answer to a problem that many are fighting with, difficulty connecting from Sql 2005 Server Management or VS2005 to a remote Sql Server running Sql...
0
by: acwomble | last post by:
I am working with a database on another system via a ssh tunnel using plink. We have setup an alias the local system for the remote database. I am able to connect and work from within Visual...
2
by: wph101larrya | last post by:
I have a developed service and client application running on a Vista machine in IIS7 in the Visual Studio 2008 beta 2 with .NET 3.5 framework. I am trying to deploy the service app to a test...
5
by: =?Utf-8?B?bXVzb3NkZXY=?= | last post by:
Hi, I wonder if someone could shed some light on this one for me. I have developed a web app in VS2005 with the built in server. It uses an sql database, everytihng works. I need to test it...
1
by: DR | last post by:
What ports do i need to unblock on client and server (running msvsmon.exe) to debug remotely from my client box with visual studio 2005 pro? When I attach to remote process a connection shows up...
0
by: Kristian Reukauff | last post by:
Hi I have a problem with the .Net-Securty-Functions. I've got a client and a server. When I try to register a channel at the server with this line: ChannelServices.RegisterChannel(chan, false);...
1
ram09
by: ram09 | last post by:
I'm trying to run our website on the visual studio of my pc using remote. I already open our website on my visual studio remotely. The problem now is that I cannot debug the application, everytime I...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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?
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...

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.