How to copy a database to another location in sqlserver 2008 express edition

Hi,
Please help for to copy a database to another location in sqlserver 2008 express edition
With many thanks
Pol
polachan

if you are using SQL Server 2008 express edition
you are NOT able to use Copy database wizard so the only option you have is to try as mentioned above 
a) Backup /Restore
Create a new DB to where you want the copy should go and
Make a Full Backup with .BAK of your original database and Restore the backup on other system and Right click on the the new DB you created and Restore by navigate to your .BAK and make sure MDF and LDF file match the new.
http://msdn.microsoft.com/en-us/library/ms190436.aspx
b) Detach/Attach
Detach the database and copy the database files to other system; and attach these database files.
I hope this is more informative for you and Good-luck
Please remember to click “Mark as Answer” on the post that has answered your question as it is very relevant to other community members dealing with same problem in seeking the right answer

Similar Messages

  • Copying Production Database to another location

    Hi,
    We are currently upgrading to a 11g and as part of the process I need to copy our production server 10g to our new hardware. I want to carry out a couple of dry runs to get timings and test the process. I will be keeping the same SID.
    Are there steps I can take to isolate the copied oracle database to ensure it does not try communicate with any other systems.
    I come from an SAP background and in SAP there are a number of steps to isolate a system. I'm looking for similar steps that would be used in oracle e.g.
    stop job scheduler
    stop all inbound and outbound communication
    Lock interactive users
    Stop outbound email
    etc...
    Thanks
    Jim

    osheajim wrote:
    Hi,
    We are currently upgrading to a 11g and as part of the process I need to copy our production server 10g to our new hardware. I want to carry out a couple of dry runs to get timings and test the process. I will be keeping the same SID.
    Are there steps I can take to isolate the copied oracle database to ensure it does not try communicate with any other systems.
    I come from an SAP background and in SAP there are a number of steps to isolate a system. I'm looking for similar steps that would be used in oracle e.g.
    stop job scheduler
    stop all inbound and outbound communication
    Lock interactive users
    Stop outbound email
    etc...
    Thanks
    Jim
    Somwhat dependent on your method of creating the new database on the new server, but if you don't start a listener on that server, no one that is not directly logged on to that server will be able to connect to the database. As for outbound connections from the database, you might have to get a bit creative, depending on where and how the outbound connections are defined.  I'd start by not haveing a working tnsnames.ora file.  Then check the defintions of any db links in the existing database.  If they hard-coded destinations, make sure those destinations are un-resolveable/unreachable from the new server.  I wouldn't worry about the job scheduler during the dry run.  As long as there is no outside communication from them, who cares if they run?  With the listener shut down, no outside users can connect, so no reason to lock user accounts.
    Perhaps you could cover all bases at once by simply configuring the firewall on the new server to disallow any communication at all ...

  • SQLServer 2008 Express Edition and Database Mail

    All,
    BOL says that "Database Mail is not available in SQL Server Express." is not supported.
    Though, the express edition does not have the UI to configure database mail, I was able
    to configure it by setting up a "Database Mail Account" and "Database Mail Profile". I
    was also able successfully send an email with the sp_send_dbmail.
    Is the BOL wrong or am I missing something?
    ms-help://MS.SQLCC.v10/MS.SQLSVR.v10.en/s10de_4deptrbl/html/14cbf88f-d9d1-41a5-994e-532e2973ac9e.htm
    Thanks,
    MS

    So MS, can you help me with the steps to make it available?  I executed   dbo.sysmail_start_sp received an error indicating database mail xp must be enabled.  Successfully ran.
    sp_configure 'show advanced options', 1;
    GO
    RECONFIGURE;
    GO
    sp_configure 'Database Mail XPs', 1;
    GO
    RECONFIGURE
    GO
    then the stored procedure was successful. Restarted SQL express and still I don't see in SSMS, under management  'database Mail' therefore can't setup an account and profile . (NO database WIZARD).
    Can you please tell me what I am missing?
    Thanks, Pat_c

  • How to move SQL database from one location to another location i.e. from C' drive to D' drive

    Hi, How to move SQL database from one location to another location i.e. from C' drive to D' drive ? please share some link.
    Thanks and Regards, Rangnath Mali

    Hi Rangnath,
    According to your description, my understanding is that you want to move databased from C drive to D drive.
    You can detach Database so that the files become independent, cut and paste the files from source to destination and attach again.
    There are two similar posts for your reference:
    http://mssqltalks.wordpress.com/2013/02/28/how-to-move-database-files-from-one-drive-to-another-or-from-one-location-to-another-in-sql-server/
    http://stackoverflow.com/questions/6584938/move-sql-server-2008-database-files-to-a-new-folder-location
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • How to copy one request to another request

    Hi all,
    How to copy one request to another new request?
    I have a released workbench request in which it has around 1200 Objects (including data elements, domains, programs and many more), now i need to copy all these objects into a new request.
    I can do this by SE03 (Include Objects in a Transport Request ) transaction, but it is a lengthy process.
    Is there any way to copy directly in one go.
    Plz help...
    Regards,
    Satish Reddy D.

    Hi,
    The thing is like this....
    i have a released request in which we have more than 1200 objects, in that i dont need 10 objects.
    so when i create it as copy of transport request, i just deleted those 10 objects and saved.
    Now, if i transport the new request how many objects will go? 1200 or 1190?
    in the new request i am getting the old request under Comment: Object List Included.
    is it necessary to transport the old request?
    i need to transport only 1190 objects.
    Regards,
    Satish Reddy.
    Edited by: Sathish Reddy on Jan 28, 2010 2:18 PM

  • How to move a database to another server

    Hi - I am new to Oracle and am used to SQL Server. In SQL Server there was a DETACH and ATTACH DATABASE command that would allow you to make a copy of a database and all structures including triggers, procedures, indexes etc. Make a copy and reattach the database on the new server. I assume that the same is possible in Oracle but I can't seem to find the equivilent command(s). So how does one move a database? I take it that the SQL Server equivilent to database is in Oracle called a schema? Other than creating a sql script for each object, is there a overall process to move my application?

    You could do one of the following:
    1) Create a full export, create a another database with a script or DBCA, create the appropriate sized tablespaces, import to the new database.
    2) If you are copying to the same OS you could shutdown the database, copy all the datafiles, logfiles, control files, etc. to the appropriate locations, rename the datafiles, control files, etc. as needed, and open the database.
    3) Use RMAN to duplicate the database if it has been backed up using the RMAN utility.
    4) If you already have a backup of all the datafiles, logfiles, control files, etc. from a backup you could copy those to the appropriate locations, rename the files as needed, and open the database.
    I would suggest changing the database name. I can go into more detail on any of these if needed.

  • How to copy a database to a new database on Windows 32bit?

    Hi Gurus,
    I have a production database 10g on Windows 32bit and I want to make a copy of this database as Test in same server ?
    Please help....
    Thanks,

    How big is your database?
    1)If database size is small, create a blank test db . Export from Production using expdp and impdp onto Test.
    2)If database size is hundreds of gb's use rman duplicate command. As you are restoring on to same host
    configure db_file_name_convert/log_file_name_convert in your pfile properly
    And also control_files parameter to new location in your new pfile.
    Refer: http://docs.oracle.com/cd/B19306_01/backup.102/b14191/rcmdupdb.htm#i1006859
    Edited by: vreddy on Sep 7, 2012 2:03 PM

  • Copy iBooks Database to Another Mac

    I have iBooks (PDFs only) and would like to copy/transfer my iBooks database to another mac.  Does anyone have suggestion on how to do this.  We all now that currently PDFs don't sync across devices unless hard sync via iTunes.
    Would appreciate direction on how to copy the iBooks database from one mac to another.  Thank you

    The best way to transfer apps is connecting the device to his Mac. It will ask you for authorize the computer

  • How to copy one schema into another

    I need to copy one schema into another. That means, all the tables, views, constraints, etc, and all the data as well.
    I have a dmp file of source-schema (created daily with expdp by our backup schedule).
    Can I use impdp to import this dmp file into dest-schema? I'm thinking about something like this:
    The dmp file was created with:
    expdp source-schema/pwd DIRECTORY=dmpdir DUMPFILE=myproject.dmp
    Create the copy on dest-schema with:
    impdp dest-schema/pwd DIRECTORY=dmpdir DUMPFILE=myproject.dmp
    (dest-schema is an existing schema on the same machine. I'll drop all the tables before executing the command. Is there anything else I should do first?)
    If this approach is not feasible, kindly suggest me an alternative.
    Thank you.
    Edited by: mgro on Apr 16, 2010 3:22 AM (changed 2nd command: expdp to impdp)

    Thank you both. Dean, I've made a note of your proposed command. May use it next time.
    In the end I used the following command and it worked for me. I added TABLE_EXISTS_ACTION=REPLACE since the destination was not empty.
    First I ran these command logged in as SYS
    GRANT Import Full Database TO dest-schema;
    GRANT Create Any Directory TO dest-schema;
    GRANT Unlimited Tablespace TO dest-schema;
    impdp
    dest-schema/pwd
    DIRECTORY=dmpdir
    DUMPFILE=myproject.dmp
    REMAP_SCHEMA=source-schema:dest-schema
    TABLE_EXISTS_ACTION=REPLACE
    LOGFILE=implog.log
    There were some errors though. The import process complained about constraints referencing non-existent primary keys.
    It turns out that the source schema has some constraints that are marked with status DISABLED. These constraints either:
    - are not part of the DUMP file
    or
    - are in the DUMP file but skipped during import
    Don't know if this is a bug or by design behavior.

  • How to copy exitsitng extracter into another new extracter?

    Hello,
    Please some one can tel me how to copy the existing  extracter into another new extracter.
    I have requirment as below
    Currect me if i am wrong ,need to enhance the existing extracter and add some new fields,and need to include some masterdata filds also to it.
    For master data i am going to do write routines at Transfermation so that no need to include in my exter for those filds to extracter.
    Please some one guide me in this scenario.
    Chrs

    Hi,
    you do not have to copy the extractor, you can enhance it with fields and fill them via enhancement coding --> rsa6.
    If you want to copy it, you need to check what kind of extractor you have. Is it a function module or just a table extractor.
    for fm: copy the function module via se37 and copy the extract structure via se11. Add your enhancements in the copied structures and coding. Create a new datasource with rso2.
    for table extractor: create a view adding the additionally needed fields. create a new ds with rso2. Surely you need to add some coding in the relevant enhancement.
    regards
    Siggi

  • Copy Master Database To Another Instance

    At our instasllation we have copied the Master database across instances with success. This makes migrations much easier and it has never caused any issues. However I am concerned whether this is officially supported and if there may be something we are
    not considering that may cause issues in the future. Of course the source and destination SQL Server instances are the same OS and SQL Server versions and the paths of all databases are the same.
    Thank you for your help
    Scott

    Hi,
    I think this method can be used when the backup restore method does not work because of the original database files were corrupted or missing.
    Some interesting articles for your reference:
    The Easiest Way To Rebuild The master Database:
    http://blogs.technet.com/b/fort_sql/archive/2011/02/01/the-easiest-way-to-rebuild-the-sql-server-master-database.aspx
    Restoring Master Database :
    http://msdn.microsoft.com/en-us/library/ms190679.aspx
    How to build system databases:
    http://msdn.microsoft.com/en-us/library/dd207003.aspx
    Hope the information helps.
    Tracy Cai
    TechNet Community Support

  • How to copy report properties into another report?

    I have created one updated list report and I wanted to create another updated list report with same report properties of first one but with different data objects so I don't have to redo properties settings.
    I copied first report to another name and I tried to change data objects but It didn't allow me to choose different data object. It says "Data object must contain at least the same fields as in the Original Data object".
    Do I have to create another report from scratch?

    You could edit the report xml.

  • How to copy tags preferences to another mac

    Hi I have spent some time setting up my preferences for "Tags" in Mavericks on a MacBook.
    Does anyone know a way I can copy this setup to another Mac without having to key in all the Tag names and assign Colours again?
    Thanks in advance

    Tags are metadata. So, if you copy a tagged file to another computer through a media "metadata aware", those informations are transferred transparently. Media is an abstraction for disk, network or whatever is used as a mean of transport.
    You can visualize tags associated to a file via the command line with the xattr command
    xattr -p com.apple.metadata:_kMDItemUserTags MyTaggedFile | xxd -r -p | plutil -convert xml1 - -o -
    Change MyTaggedFile with a filename you tagged to display the result.
    Or copy the tags assigned to file1 to a second file, file2
    xattr -wx com.apple.metadata:_kMDItemUserTags "$(xattr -px com.apple.metadata:_kMDItemUserTags file1)" file2;xattr -wx com.apple.FinderInfo "$(xattr -px com.apple.FinderInfo file1)" file2
    More on this here.

  • How to copy a file from one location to another ???

    Hi,
    I have a file ('D:/Pictures/1.jpg') and I want to copy this 1.jpg file to a location called 'D:/Folder1'. I tried the WebUtil_File.copy_file function, but it does not work. it returns false boolean.
    I am using windows xp and oracle 10g.
    The webutil configurations are also completed.
    This D: drive is the one which has oracle 10g application server installed.
    Am I doing anything wrong or missed?. I need to complete this urgently. but it does not work.
    Or any other way to copy a file from one place to given any path?. After this I have to renaming (may be using Rename_File function) the copied file. Please advice me.

    An alternative could be HOST command, that calls OS prompt to run a command in the server and then return the focus to the Forms:
    HOST ('copy D:/Pictures/1.jpg D:/Folder1/1.jpg');
    Edited by: Kleber M on Sep 9, 2011 12:38 PM

  • How to copy a page to another document?

    In earlier versions of Acrobat Professional I could copy pages from one PDF to another simply by dragging over the thumbnail of the page to the other document's thumbnails.... Couldn't have been easier! I'm now using Acrobat 8 Professional and the thumbnails have been eliminated. An awkward floating panel called "Pages" performs some of the same functions, but it won't let me drag a thumbnail from the "Pages" panel to another document and Acrobat won't let me view two documents "Pages" windows at the same time.
    The "Help" function is rather helpless in solving this problem and I have studied the menus hoping to see a magic "copy page" command somewhere, but no.
    Adobe, if you are listening, why on earth wouild you change such a simple and wonderful function? And if you somehow made copying pages from one document to another easier, at least make it obvious as to how I would go about doing this!
    Any help would be appreciated!
    Thanks,
    -Mark

    I've discovered that when "Pages" is a free floating window there is no way to copy a page from one document to another using drag and drop. The solution is to select "Show Navigation Pane" and dock the "Pages" window in the pane. Only then did it let me see the pages from two documents at once and allow me to drag and drop pages from one document to another.
    Thanks!
    -Mark

Maybe you are looking for