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

database problem

hi i m mohsin....
i m making a project on hospital management using c# at front end and
sql server 2005 at backend.............
my project is almost complete but now i m facing a problem........
since i going to run the project on other systems also i m not able to
copy the the databases to any otherr folder which i made for the
project
the databases are in c drive where i installed sql server 2005 but
whenever i try o copy the databases it shows cannot copy city hospital
database to another folder.. it is being used by another folder..
plz help mee............
Aug 23 '08 #1
3 1458
On Sat, 23 Aug 2008 09:43:32 -0700 (PDT), "mo/-/sin"
<Ri*******@gmail.comwrote:

I'm assuming you tried to copy the .mdf file. It is in use by SQL
Server. It's also not the recommended way to copy databases around.
Rather you should make a backup, and restore it on the other system.

-Tom.
Microsoft Access MVP

>hi i m mohsin....
i m making a project on hospital management using c# at front end and
sql server 2005 at backend.............
my project is almost complete but now i m facing a problem........
since i going to run the project on other systems also i m not able to
copy the the databases to any otherr folder which i made for the
project
the databases are in c drive where i installed sql server 2005 but
whenever i try o copy the databases it shows cannot copy city hospital
database to another folder.. it is being used by another folder..
plz help mee............
Aug 23 '08 #2
On Aug 23, 9:58*pm, Tom van Stiphout <no.spam.tom7...@cox.netwrote:
On Sat, 23 Aug 2008 09:43:32 -0700 (PDT), "mo/-/sin"

<Ri.moh...@gmail.comwrote:

I'm assuming you tried to copy the .mdf file. It is in use by SQL
Server. It's also not the recommended way to copy databases around.
Rather you should make a backup, and restore it on the other system.

-Tom.
Microsoft Access MVP
hi i m mohsin....
i m making a project on hospital management using c# at front end and
sql server 2005 at backend.............
my project is almost complete but now i m facing a problem........
since i going to run the project on other systems also i m not able to
copy the the databases to any otherr folder which i made for the
project
the databases are in c drive where i installed sql server 2005 but
whenever i try o copy the databases it shows cannot copy city hospital
database to another folder.. it is being used by another folder..
plz help mee............
how i can make a backup............
Aug 24 '08 #3
mo/-/sin (Ri*******@gmail.com) writes:
how i can make a backup............
BACKUP DATABASE db TO DISK = '<somepath>' WITH INIT

To restore in the other environment:

RESTORE DATABASE db FROM DISK = '<somepath>'
WITH MOVE 'datadev' TO 'filepath1.mdf',
MOVE 'logdev' TO 'filepath2.ldf',
REPLACE

"datadev" and "logdev" are the logical name for the database files. You
can see these with sp_helpdb in the first or second column. Filepath1
and filepath2 are simply the location for the database files on the
new server.
--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx

Aug 24 '08 #4

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

Similar topics

5
by: lkrubner | last post by:
I have a webserver through Rackspace. I create a domain. I create an FTP user. I upload some files. I create a database called testOfSetupScript and then I create a database user named setup. I...
7
by: Graham Taylor | last post by:
I've tried posting this in the 'microsoft.public.access' but I will post it here also, as I think it might be the webserver which is causing my problem. --------- I have an Access 2003 database...
2
by: Robert McGregor | last post by:
Hi all, I've got a Front End / Back End database that was working just fine. One day i opened the FE to find that if I tried to open one of the linked tables from the database window, nothing...
19
by: adirat | last post by:
I have read a lot on this subject on newsgroups and other access related websites on data corruption, but since we are still not able to isolate the problem – I am posting this detailed explanation...
15
by: philip | last post by:
On a form, I have a datagridview. This datagridview is constructed on a dataset filled by a tableadapter. The table adapter do very well what it must do when filling dataset. Insertions,...
9
by: Wayne Smith | last post by:
I've come up against a major headache that I can't seem to find a solution for but I'm sure there must be a workaround and I would really be grateful of any help. I'm currently building a web...
18
by: surfrat_ | last post by:
Hi, I am having the following problems in getting Microsoft Visual Studio 2005 Professional to link to an Access .mdb database. Please help me to sort this out. Problem 1: The Microsoft...
6
by: xeqister | last post by:
Greetings, We are having a situation here whereby one of our staff created a very huge 32K buffer pool in a production database and caused the database to go down. When we try to reconnect to the...
12
by: Steve | last post by:
I have a database that raises an error when you try to open it and it doesn't open. Trying to open the database with the OpenDatabase method raises the same error. Trying to import any objects...
4
by: raidvvan | last post by:
Hi there, We have been looking for some time now for a database system that can fit a large distributed computing project, but we haven't been able to find one. I was hoping that someone can...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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: 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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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...

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.