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

Moving Windows app to a LAN

I have been using SQL Server 2000 on my stand-alone machine as a back-end to
a VS.net application. It is time to switch environments and take the
application to the customer. I need to install SQL Server 2000 on the
server of the client's local area network, which is a Windows 2000 machine.
I am
concerned about doing this right. On my own machine I did the install
incorrectly at first and had to re-install. I had a very hard time getting
things reset and back to normal. I would like to not make the same kind of
mistakes
here.

It is not clear to me just where to tell SQL Server to install when
installing on the Server. I suppose, though I am not sure, and this is why
I'm asking, I should do the following:

Let SQL Server install the program files to it's default location on the
server of C:\Program Files\ Microsoft SQL Server, and install the system
databases etc., to a public directory. The C drive of the server is not
seen by the client machines on the network. However, I have a a public
drive letter on the server called F which is seen by the clients. This is
really C:\Data. My intent is to tell SQL Server to install the database
system files to a sub directory under F called SQL. I will also place my
custom database there.

Question:

Is this all I need to do in order for my Visual Studio .net application to
be able to acces my custom database? If the above is correct, it is not
clear to me where I go from here. I suppose, in Visual Studio, I can click
on Server Explorer, select Add Connection, and in the connection dialog I
will somehow be able to see or navigate to the server name on the LAN
Server. Is this right?

Any other thoughts or suggestions are appreciated.



Nov 20 '05 #1
6 1443
You can install the SQL server anywhere you want on you're customers machine
provided that you apply some common sense to the location. IE ensure that
the A.) The disk has enough space to put your program and datafiles now and
in the future. B.) The users cannot get access to it ( It should not really
be used as a file server and an SQL server anyway. C.) Keep things tidy and
allow it to suggest the correct directory.

OHM
Woody Splawn wrote:
I have been using SQL Server 2000 on my stand-alone machine as a
back-end to a VS.net application. It is time to switch environments
and take the application to the customer. I need to install SQL
Server 2000 on the server of the client's local area network, which
is a Windows 2000 machine. I am
concerned about doing this right. On my own machine I did the install
incorrectly at first and had to re-install. I had a very hard time
getting things reset and back to normal. I would like to not make
the same kind of mistakes
here.

It is not clear to me just where to tell SQL Server to install when
installing on the Server. I suppose, though I am not sure, and this
is why I'm asking, I should do the following:

Let SQL Server install the program files to it's default location on
the server of C:\Program Files\ Microsoft SQL Server, and install the
system databases etc., to a public directory. The C drive of the
server is not seen by the client machines on the network. However, I
have a a public drive letter on the server called F which is seen by
the clients. This is really C:\Data. My intent is to tell SQL
Server to install the database system files to a sub directory under
F called SQL. I will also place my custom database there.

Question:

Is this all I need to do in order for my Visual Studio .net
application to be able to acces my custom database? If the above is
correct, it is not clear to me where I go from here. I suppose, in
Visual Studio, I can click on Server Explorer, select Add Connection,
and in the connection dialog I will somehow be able to see or
navigate to the server name on the LAN Server. Is this right?

Any other thoughts or suggestions are appreciated.

Nov 20 '05 #2
Hi Woody,

Your assumptions are by and large correct, but I would suggest installing
directly into c:\data. Also, you will have to get the name of the data
source (machine name) of the server to connect to it properly in your
connection strings - eg,
Dim oconn As New SqlConnection("data source=d5z0071;database=imc;integrated
security=sspi;")

supposes that the machine name is d5z0071, but it will change now that sql
server is on a different machine.

I have installed a couple of enterprise apps written in .net, but none have
yet used sql server. I have been working on a major job for the last 15
months or so, ready to deploy in about 1.5 months, so I face some of these
questions myself. I tell you this because I strongly recommend you post
your question to the microsoft sqlserver.server ng - they're more
knowledgeable there than I am about this and I'm sure they can recommend the
best approach.

HTH,

Bernie

"Woody Splawn" <wo***@splawns.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
I have been using SQL Server 2000 on my stand-alone machine as a back-end to a VS.net application. It is time to switch environments and take the
application to the customer. I need to install SQL Server 2000 on the
server of the client's local area network, which is a Windows 2000 machine. I am
concerned about doing this right. On my own machine I did the install
incorrectly at first and had to re-install. I had a very hard time getting things reset and back to normal. I would like to not make the same kind of mistakes
here.

It is not clear to me just where to tell SQL Server to install when
installing on the Server. I suppose, though I am not sure, and this is why I'm asking, I should do the following:

Let SQL Server install the program files to it's default location on the
server of C:\Program Files\ Microsoft SQL Server, and install the system
databases etc., to a public directory. The C drive of the server is not
seen by the client machines on the network. However, I have a a public
drive letter on the server called F which is seen by the clients. This is
really C:\Data. My intent is to tell SQL Server to install the database
system files to a sub directory under F called SQL. I will also place my
custom database there.

Question:

Is this all I need to do in order for my Visual Studio .net application to
be able to acces my custom database? If the above is correct, it is not
clear to me where I go from here. I suppose, in Visual Studio, I can click on Server Explorer, select Add Connection, and in the connection dialog I
will somehow be able to see or navigate to the server name on the LAN
Server. Is this right?

Any other thoughts or suggestions are appreciated.


Nov 20 '05 #3
Thank you for responding.
I strongly recommend you post
your question to the microsoft sqlserver.server ng - they're more
knowledgeable there than I am about this and I'm sure they can recommend the best approach.
Actually I did this and got "some" good advice. The problem, however, is
one that I run into frequently. SQL Server people know their area but not
VS and vica versa. After asking my install questions there I realized it
was not likely that any of them would know about how VS handles
SQLConnections on it's side. So, I posted here.

Things I thought they wouldn't know about are like this (quoted in my first
message).
If the above is correct, it is not
clear to me where I go from here. I suppose, in Visual Studio, I can

click
on Server Explorer, select Add Connection, and in the connection dialog I will somehow be able to see or navigate to the server name on the LAN
Server. Is this right?


Your assumptions are by and large correct, but I would suggest installing
directly into c:\data


Well, lets see, if I do that then I will need to make the data directory
public, correct? Not a problem, I just need to know what to do. I suppose
I could make a Z drive = C:\Program Files\Microsoft SQL Server\MSSQL\Data.
Are there other directories of the server installation of SQL server that
need to be public as well? Will I be able to access my custom database if
these directories are not public?

Nov 20 '05 #4
Thank you for your help.
You can install the SQL server anywhere you want on you're customers machine provided that you apply some common sense to the location
When you say "you're customers machine" you do mean the server right? What
about access rights that the client machines will need? How do I address
that? I thought perhaps you might say something about whether the install
directory should be public or not.
You can install the SQL server anywhere you want... provided that ...
The users cannot get access to it. It should not really
be used as a file server and an SQL server anyway.


I do not understand what you're saying here. Did you mean provided that the
users *Can* get access to it? This is a small 10 user local area network
with a server that has plenty of horse power. This is a VS Windows
application, not an Internet application. Guess I don't understand why you
say, "It should not really be used as a file server and an SQL server
anyway".


Nov 20 '05 #5
Hi Woody,

What is the kind of your custom database.

If it is a sql database, you may try to move database by following the link
below. And if you are to use SQL server, you can connect to it (wherever
the SQL server is, and you do not need to share the Data directly) by using
the connect string as what you said in your post.
224071 INF: Moving SQL Server Databases to a New Location with Detach/Attach
http://support.microsoft.com/?id=224071
314546 HOW TO: Move Databases Between Computers That Are Running SQL Server
http://support.microsoft.com/?id=314546

If it is an Access, you may connect to it by using VS.NET directly or you
can Convert the Aceess Database to the SQL servce database.
285829 How to Use Data Transformation Services (DTS) to Export Data from a
http://support.microsoft.com/?id=285829
237980 HOW TO: Convert an Access Database to SQL Server
http://support.microsoft.com/?id=237980

If you have any concern on this issue,please post here.

Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
--------------------
From: "Woody Splawn" <wo***@splawns.com>
Subject: Moving Windows app to a LAN
Date: Mon, 24 Nov 2003 11:02:08 -0800
Lines: 41
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <#x**************@TK2MSFTNGP12.phx.gbl>
Newsgroups: microsoft.public.dotnet.languages.vb
NNTP-Posting-Host: 168.158-60-66-fuji-dsl.static.surewest.net 66.60.158.168
Path: cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!cpmsftng xa09.phx.gbl!TK2MSFTNGP08.
phx.gbl!TK2MSFTNGP12.phx.gblXref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.languages.vb:158731
X-Tomcat-NG: microsoft.public.dotnet.languages.vb

I have been using SQL Server 2000 on my stand-alone machine as a back-end toa VS.net application. It is time to switch environments and take the
application to the customer. I need to install SQL Server 2000 on the
server of the client's local area network, which is a Windows 2000 machine.
I am
concerned about doing this right. On my own machine I did the install
incorrectly at first and had to re-install. I had a very hard time getting
things reset and back to normal. I would like to not make the same kind of
mistakes
here.

It is not clear to me just where to tell SQL Server to install when
installing on the Server. I suppose, though I am not sure, and this is why
I'm asking, I should do the following:

Let SQL Server install the program files to it's default location on the
server of C:\Program Files\ Microsoft SQL Server, and install the system
databases etc., to a public directory. The C drive of the server is not
seen by the client machines on the network. However, I have a a public
drive letter on the server called F which is seen by the clients. This is
really C:\Data. My intent is to tell SQL Server to install the database
system files to a sub directory under F called SQL. I will also place my
custom database there.

Question:

Is this all I need to do in order for my Visual Studio .net application to
be able to acces my custom database? If the above is correct, it is not
clear to me where I go from here. I suppose, in Visual Studio, I can click
on Server Explorer, select Add Connection, and in the connection dialog I
will somehow be able to see or navigate to the server name on the LAN
Server. Is this right?

Any other thoughts or suggestions are appreciated.




Nov 20 '05 #6
Hi Woody,
Well, lets see, if I do that then I will need to make the data directory
public, correct? Not a problem, I just need to know what to do. I suppose
I could make a Z drive = C:\Program Files\Microsoft SQL Server\MSSQL\Data.
Are there other directories of the server installation of SQL server that
need to be public as well? Will I be able to access my custom database if
these directories are not public?


As to my first post, what kind of database are you using?
Is it an Access Database(MDB) or a SQL Database?

If it is an Access Database, and you want to access it using the JET
provider, then you need to share the mdb file.

If it is a SQL database, you do not need to share the directory where you
install the SQL database. You may need to start the SQL server service and
connect to the SQL server from the database client(i.e. you r VS.NET).

Also, if you want to move the database from one server to another, you may
refer to my another post. You can import an access database(mdb) into the
SQL server or move an SQL server database from one server to another. If
you just want to move a MDB file from one machine to another, and access it
by using the JET provider, you may need to share the file.

If you have any concern on this question, please feel free to post here.

Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 20 '05 #7

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

Similar topics

2
by: KalleD | last post by:
Why can I not move the windows taskbar with the SHAppBarMessage function? I am able to use the function for hiding it and other things, but not moving it (I have unchecked the lock). The code is...
4
by: Ron Mexico | last post by:
Hi, Currently have an app that maintain that is written in VB6 and uses an access db (backend db only used as a data store not writing to the db). This app is a client app not server multi-teir...
0
by: Michael Johnson Sr. | last post by:
I have an application which I developed in C# ASP.NET. It uses SQL Server which is on a Virtual PC using Virtual PC 2004. It works great, no problems. I moved the user controls, aspx files,...
3
by: Just Me | last post by:
If I move the mouse cursor over a control and stop moving I get a MouseHover event. If I then move the cursor while staying within the control and then stop moving I do not get another...
2
by: Carl Gilbert | last post by:
Hi I have a math kinda problem where I'm trying to split some lines when two or more lines connect two shapes. The reason I am doing this is to make it clear that there are multiple lines...
2
by: 63q2o4i02 | last post by:
Hi, I'm using python 2.4 and windows XP. I have two packages in the windows version of python in site-packages. They are PyVisa and ctypes, and both live in c:\python24\lib\site-packages ...
7
by: =?Utf-8?B?TW9iaWxlTWFu?= | last post by:
Hello everyone: I am looking for everyone's thoughts on moving large amounts (actually, not very large, but large enough that I'm throwing exceptions using the default configurations). We're...
1
by: rsteph | last post by:
I bought a book to help me learn to use DirectX with windows programming. It's first trying to walk me through some basic windows programming and graphics before getting into DirectX. I'm trying to...
0
by: Studlyami | last post by:
I am trying to find how windows translate the input from a HID device to an actual windows message; specifically, the mouse. I am trying to figure out how when the mouse moves the process windows...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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...
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...
0
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,...
0
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...

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.