MSSQL 2005 System refresh

Hello All ,
I am trying to do system refresh from PRD to QAS , Windows 2003 / MSSQL 2005 database, need to know step by step procedure, DB restroe , recovery and rename SID , how to do all these. main I need to know DB activities.
Thanks
Atul

Hi,
Refer [SAP Note 151603 - Copying an SQL Server database|https://service.sap.com/sap/support/notes/151603] to get step by step information about your requirement.
Regards,
Bhavik G. Shroff

Similar Messages

  • System refresh in MSSQL

    Hi Folks,
        We are planning to do a refresh from "AA" system to "BB" system.But "AA" system consist of only two drive like  C drive consits fo USR data and D drive consists of AAdata1,AAdata2,AAdata3,AAlog.
    Now "BB" System consists of 4 drives which is E,F,G,H.
    Now I have to map C drive USR data to E drive and D drive AAdata1..n to F drive, D drive AAlog1 data to G drive in "BB"system.
    I know how to detach and attach the database in MSSQL but I dont know how to map the USR data to E drive.
    Can anyone please guide me.
    Thanks
    regards,
    Ral

    Hi Ral,
    A system refresh usually means refreshing the contents of the DB only.... basically you should have a "BB" system running... during the system refresh the contents of the /usr/sap forlder are not replaced.
    If you want to do is a System copy then follow the steps on the Homogeneous system copy guide (available on SAP Marketplace) and it will let you choose the location.
    Regards
    Juan

  • Connection via UD Connect in BI system to external MSSQL 2005

    Hello experts,
    I want to configure connection from BI (SAP_BW 7.01) system on SAP EHP 1 for SAP NetWeaver 7.0 to MSSQL 2005 and AIX via UD Connect. I want to setup connection according to guide "How to u2026Configure UDConnect on the J2EE Server for JDBC Access to External Databases (SAP NW 04 - SAP BW 3.5)". I have problem with create RFC destination under "JCo RFC Provider" in Visual Administrator. I don't known where I can add new RFC destination as is write in this guide.
    Thank you very much for your help.
    Best regards
    Capek Martin

    > I have problem with create RFC destination under "JCo RFC Provider" in Visual Administrator. I don't known where I can add new RFC destination as is write in this guide.
    You're searching for the "new" button, right? I was searching that too.
    Just select one RFC destination, change the name and press on "save" - this will add a new one. Not very intuitive but it works.
    Markus

  • MSSQL 2005 user database now shows up in system database folder

    While attempting to set up sql replication in MSSQL 2005 one of my user databases is now in the systems database folder.  I need to move it back to the user databases folder.  Any help would be greatly appreciated.

    I'm still at the point where if I run
    sp_detach_db 'dbname'
    I get
    Msg 3724, Level 16, State 1, Line 1
    Cannot drop the database 'dbname' because it is being used for replication.
    If I right click on the replication folder I have no disbributor properties
    Somehow I need to remvoe the replication flag from the db that I have accidentally gotten it stuck on.
    Any ideas?
    Hello dsams,
    Are you a member of "sysadmin" fixed server role ? If not you will not be able to configure replication.
    Once you are a member of "sysadmin" then you can try the below sql or go to replication and right click on it, you will get "Disable publishing & distribution".
    use master
    go
    alter database distribution set offline;
    drop database distribution;
    Regards, RSingh

  • How to do a system copy in MSSQL 2005

    Hi,
    Pls let me know how to do a System Copy for ECC6 in MSSQL 2005
    Regards,
    Manjunath B

    Hi Maria / Manjunath, you can follow the instruction at http://service.sap.com/msplatforms -> SQL Server -> Upgrade to and Installation of SQL Server 2005.
    Also you can go to http://service.sap.com/instguides -> SAP Netweaver 7.0 -> Installation -> System Copy for SAP Systems Based on NW 7.0 SR1 ABAP or System Copy for SAP Systems Based on NW 7.0 SR2 ABAP
    If you have any other question, please post it.
    Regards,
    Darwin Castillo
    SAP Netweaver System Administrator
    Edited by: Darwin Castillo on Mar 9, 2008 11:49 AM

  • System refresh with different abap patch stacks

    Hi gurus
    I have a scenario that  as of my  ECC 6.0 PRD  system has ABAP stack patch level at SP13. where my QAS system at stack level 17.
    Now i have to refresh the QAS system with the PRD data.
    My query is, is it possible to copy the PRD system to QAS( previously i did it successfully while both PRD & QAS was in the same stack 13, currenty i upgrade the QAS's  SP stack to 17).
    let me know whether  is it possible to take a system copy from PRD?.... or any alternates..
    environment is  ECC 6.0           O/S: WIN2003 Server        DB:MSSQL 2005
    Thanks in advance.
    Balaji nampally

    Yes, it is possible to take a system copy from PRD.
    But patch level is stored in the database, and so it will be copied.
    Your QAS system will be at patch level 13 afterwards, like PRD.
    If you want patch level 17 for QAS, you may either wait till PRD will be at 17, or you may repeat patching in QAS.
    hope this helps

  • Oracle 9i & 10g replicated to MSSQL 2005 Enterprise: Problem !

    Hi,
    I have been doing some oracle 9i and 10g Replication to MSSQL 2005 Enterprise Database using the SQL 2005 Server Enterprise replication tool. This is working great, however, we recentrly had some problems on the Oracle side getting errors on new connection for both 9i and 10g servers. Only restarting the server has solved the problem so far....
    The complete procedure to to this setup is available on Microsoft Technet:
    http://www.microsoft.com/technet/prodtechnol/sql/2005/technologies/repl_quickstart_for_oracle.mspx
    If anyone could help me regarding the problem on new connections problem I would appreciate
    Here are the errors we are getting:
    10g Agent connection Error on the Database 10g:
    Timestamp=Jul 4, 2008 2:29:03 PM EDT
    Severity=Critical
    Message=Failed to connect to database instance: ORA-12518: TNS:listener could not hand off client connection (DBD ERROR: OCIServerAttach).
    10g Agent connection Error on the Database 9i:
    Timestamp=Jul 10, 2008 10:51:16 AM EDT
    Severity=Critical
    Message=Failed to connect to database instance: ORA-04031: unable to allocate %s bytes of shared memory ("%s","%s","%s","%s") (DBD ERROR: OCISessionBegin).
    Notification Rule Name=Send Email For Database Event
    Notification Rule Owner=SYSMAN
    Notification Count=1
    The clients applications are having similar errors when trying to connect. This seems to be happening after replication has been running for a while (1 -2 weeks) on the SQL server 2005 side...
    We are using Snapshot Replication for the 10g database (every 20 minutes)
    and transactional replication on the 9i database...
    We are replicating 28 tables from the 10g database (500Mb Via Snapshot Replication)
    And 171 Tables for the 9i databases (Near 3Gb Via Transactional Replication)
    Thanks for the help !

    Here is an error from the 9i database Client: (this seems to be correct %s values)
    ORA-04031: Unable to allocate 20236 bytes of shared memory("shared pool", "unknown object", "sga heap(1,0)", "session param values");
    Here is the 9i database Init.ora:
    # Copyright (c) 1991, 2001, 2002 by Oracle Corporation
    # Cache and I/O
    db_block_size=8192
    db_cache_size=25165824
    db_file_multiblock_read_count=16
    # Cursors and Library Cache
    open_cursors=300
    # Database Identification
    db_domain=Something.com
    db_name=Something
    # Diagnostics and Statistics
    background_dump_dest=C:\oracle\admin\Something\bdump
    core_dump_dest=C:\oracle\admin\Something\cdump
    timed_statistics=TRUE
    user_dump_dest=C:\oracle\admin\Something\udump
    # File Configuration
    control_files=("D:\oracle\oradata\Something\CONTROL01.CTL", "D:\oracle\oradata\Something\CONTROL02.CTL", "D:\oracle\oradata\Something\CONTROL03.CTL")
    # Instance Identification
    instance_name=Something
    # Job Queues
    job_queue_processes=10
    # MTS
    dispatchers="(PROTOCOL=TCP) (SERVICE=SomethingXDB)"
    # Miscellaneous
    aq_tm_processes=1
    compatible=9.2.0.0.0
    # Optimizer
    hash_join_enabled=TRUE
    query_rewrite_enabled=FALSE
    star_transformation_enabled=FALSE
    # Pools
    java_pool_size=33554432
    large_pool_size=8388608
    shared_pool_size=50331648
    # Processes and Sessions
    processes=150
    # Redo Log and Recovery
    fast_start_mttr_target=300
    # Security and Auditing
    remote_login_passwordfile=EXCLUSIVE
    # Sort, Hash Joins, Bitmap Indexes
    pga_aggregate_target=25165824
    sort_area_size=524288
    # System Managed Undo and Rollback Segments
    undo_management=AUTO
    undo_retention=10800
    undo_tablespace=UNDOTBS1
    Here is the Database 10g init.ora:
    SomeDB.__db_cache_size=1216348160
    SomeDB.__java_pool_size=8388608
    SomeDB.__large_pool_size=8388608
    SomeDB.__shared_pool_size=343932928
    SomeDB.__streams_pool_size=0
    *.audit_file_dest='D:\oracle\product\10.2.0\admin\SomeDB\adump'
    *.background_dump_dest='D:\oracle\product\10.2.0\admin\SomeDB\bdump'
    *.compatible='10.2.0.3.0'
    *.control_files='D:\oracle\product\10.2.0\oradata\SomeDB\control01.ctl','D:\oracle\product\10.2.0\oradata\SomeDB\control02.ctl','D:\oracle\product\10.2.0\oradata\SomeDB\control03.ctl'
    *.core_dump_dest='D:\oracle\product\10.2.0\admin\SomeDB\cdump'
    *.db_block_size=8192
    *.db_domain=''
    *.db_file_multiblock_read_count=16
    *.db_name='SomeDB
    *.job_queue_processes=10
    *.log_archive_dest='D:\Backup\SomeDB\Archives'
    *.log_archive_start='true'
    *.open_cursors=300
    *.pga_aggregate_target=525336576
    *.processes=150
    *.remote_login_passwordfile='EXCLUSIVE'
    *.sga_target=1578106880
    *.undo_management='AUTO'
    *.undo_tablespace='RBS'
    *.user_dump_dest='D:\oracle\product\10.2.0\admin\SomeDB\udump'
    On the 10g database we get the error: ORA-12518: TNS:listener could not hand off client connection (DBD ERROR: OCIServerAttach).
    The application for the Database 10g Is web based and uses Tomcat, I seems to get similar errors in the tomcat log:
    java.sql.SQLException: ORA-04030: out of process memory when trying to allocate 1046552 bytes

  • System Refresh SAPINST.exe error ExeProcs was executed with status Error

    Hi Everyone,
                         As part of system refresh, our QA ECC is restored with Production Data backup. In this process, sapinst.exe is executed to perform homogeneous system copy steps. This process is being terminated with error at the step *"Create SAP stored procedures"*.
    The error being displayed is as follows:
    An error occurred while processing option SAP Toools for MS SQL Server > Database Copy Completion( Last error reported by the step: Errors when executing sql command: [Microsoft][ODBC SQL Server Driver][SQL Server]The specified @job_name ('SAP CCMS_qpe_QPE_Update_Tabstats') does not exist.
    SOLUTION: If this message is displayed as a warning, you can ignore it. If this is an error, contact SAP support.
    ). You can now:
    Choose Retry to repeat the current step.
    Choose View Log to get more information about the error.
    Stop the option and continue with it later.
    Log files are written to C:\Program Files/sapinst_instdir/MSS/CPY.
    sapinst.log file contains following information:
    INFO 2010-11-06 17:40:30
    Copied file 'C:/Program Files/sapinst_instdir/ERP/LM/COPY/MSS/SYSTEM/DISTRIBUTED/AS-ABAP/DB/inifile.xml' to 'C:/Program Files/sapinst_instdir/ERP/LM/COPY/MSS/SYSTEM/DISTRIBUTED/AS-ABAP/DB/inifile.4.xml'.
    INFO 2010-11-06 17:40:30
    Copied file 'C:/Program Files/sapinst_instdir/ERP/LM/COPY/MSS/SYSTEM/DISTRIBUTED/AS-ABAP/DB/inifile.xml' to 'C:/Program Files/sapinst_instdir/ERP/LM/COPY/MSS/SYSTEM/DISTRIBUTED/AS-ABAP/DB/inifile.5.xml'.
    INFO 2010-11-06 17:40:31
    Execute step
    Component  W2K_ServicePack_Check|ind|ind|ind|ind
    Preprocess  of component |NW_ABAP_DB|ind|ind|ind|ind|0|0|NW_First_Steps|ind|ind|ind|ind|0|0|W2K_ServicePack_Check|ind|ind|ind|ind|2|0.
    INFO 2010-11-06 17:40:41
    Copied file 'C:/Program Files/sapinst_instdir/ERP/LM/COPY/MSS/SYSTEM/DISTRIBUTED/AS-ABAP/DB/keydb.xml' to 'C:/Program Files/sapinst_instdir/ERP/LM/COPY/MSS/SYSTEM/DISTRIBUTED/AS-ABAP/DB/keydb.3.xml'.
    INFO 2010-11-06 17:40:41
    Execute step ExeProcs of component |NW_ABAP_DB|ind|ind|ind|ind|0|0|NW_CreateDBandLoad|ind|ind|ind|ind|8|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_MSS_DB|ind|ind|ind|ind|2|0|MssSysCopy|ind|ind|ind|ind|10|0|MssProcs|ind|ind|ind|ind|4|0.
    ERROR 2010-11-06 17:40:58
    FCO-00011  The step ExeProcs with step key |NW_ABAP_DB|ind|ind|ind|ind|0|0|NW_CreateDBandLoad|ind|ind|ind|ind|8|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_MSS_DB|ind|ind|ind|ind|2|0|MssSysCopy|ind|ind|ind|ind|10|0|MssProcs|ind|ind|ind|ind|4|0|ExeProcs was executed with status ERROR .
    Our Environment details:
    SAP Version : ECC6
    OS                 : Microsoft windows server 2003
    DB                 : Microsoft SQL Server         2005.
    Can some please guide me in debugging this issue. Your help is highly appreciated.
    Thanks a lot in advance.
    Kind Regards,
    Bharani.

    Hi Satya,
                 Thank you for the reply. QA in our landsacpe was in use since 2008. Serveral times system refresh is carried out on our QA with production data but never came accross this issue.
                 Usually if the SAPINST.exe run is successfull, temperory licence will be installed and we will be allowed to login into the sytem with our user names normally and carry out post installation steps.
                 As the SAPISNT.exe is being terminated, temperory license is not being installed and we got to work around by including parameter to allow default sap* userid and password to login and install license and carry on with the post installation steps. To be frank this issue is not really a show stopper, but there seems to be an issue that is to be resolved.
    Thank you,
    Kind Regards,
    Bharani.

  • Post System Refresh Activity

    Hi All,
    I did system refresh ( from PRD to QAS , platform Windows 2008 R2 and MSsql) the system was up and running fine. The system was absolutely fine  for one day and the day after the DB crashed , not sure what happened, is there a way i can find the logs through which i can come to know what exactly happened. Also post refresh when i was trying to run BDLS , the job was getting cancelled , the job log showed there is another conversion already running , when i checked the tables the conversion had already happened . Please tell me can running BDLS which cancelled many times could be the cause for the DB crash, if yes where can i find the logs for this , if not what else could have happened that the DB crashed . Thanks for your responses in advance.
    Regards
    Mrigank Aditya

    Hi Nainesh,
    Thanks for the message , yes system is up and running fine , the DB team did a restore of Production data  on Quality again , and i did the post refresh activities again , the issue what had happened last time was we were doing simultaneous refresh of two systems at a time , BI prod to BI qas and ECC prd to ECC qas , we had found a list of tables in BDLS which gets updated when we run BDLS and we run those tables only , unfortunately the files got exchanged , the ECC tables should have run on ECC machine and BI tables should have run on BI machine which didn't happen and it happened the other way round BI tables where run on ECC machine , due to which BDLS failed and the job got cancelled many times, which impacted the whole system conversion and logical update , which crashed the DB( i exactly don't know the reason what happened internally , still searching for it ) . At present the machine is up and running fine.
    Regards
    Mrigank Aditya

  • How to reset ddic password for client 000 in MSSQL 2005 database

    SAP = ECC6
    DB = MSSQL 2005
    client = 000
    1. SAP* account was removed from the DB, can't be found in USR02 table.
    2. Only left ddic account and was locked. How can i reset ddic password?
    3. How can i unlock and reset my own password from the MSSQL database?

    You can unlock and reset passwords for DDIC and for your own user id in the following way:
    Please execute the below queries at your database level:
    To unlock user ids:
    SQL>update SAP<SID>.usr02 set flag=0 where bname="*user id*" and mandt=client number;
    SQL>commit;
    To reset the passwords:
    SQL>update SAP<SID>.usr02 set bcode="encrypted password" where bname="*user id*" and mandt=client number;
    SQL>commit;
    Then log into the system and execute /$sync
    hope this will help you.
    Regards,
    FAisal

  • Errors during backup of MSSQL 2005 using DB13

    Hi,
    I have an ECC 5.0 system, and when I try to perform any kind of backup of a MSSQL 2005 database using DB13 I get an error like this:
    Modified:  2006-12-05 11:43:55.                                   
    Command:    pc1.sap_backup_databases                              
                 @dblist="PC1,master,msdb",@r3db="PC1",@bdev="PC1     
               _v2",@unload=0,@jobname= "SAP CCMS Full DB Backup      
               of PC1,master,msdb [20061205114354]"                   
    Descript: SAP CCMS JOB                                                                               
    *********** Task history information ***********                  
    For run:   20061205 23:00:00                                      
    Status:    0          (failure)   (see DB error log)              
    Message:   3013                                                   
    Severity:  16                                                     
    Duration:  0 hours, 0 minutes, 0 seconds                          
    Last msg:  Executed as user: NT AUTHORITYSYSTEM. DBCC execut     
               ion completed. If DBCC printed error messages, con     
               tact your system administrator. [SQLSTATE 01000] (     
               Message 2528)  The user-specified MEDIANAME "ID05S     
               " does not match the MEDIANAME "ID29S" of the devi     
               ce "PC1_v2(D:BackupPC1_2.bak)". [SQLSTATE 42000]     
                (Error 4037)  BACKUP DATABASE is terminating abno     
               rmally. [SQLSTATE 42000] (Error 3013).  The step 
               failed.                                                
    The strange thing is that if I create a new backup device in MS SQL Server Management Studio, and assign a backup job to use this backup device, the backup is successfull... but only the first time I schedule the backup. Following backup attempts to same device fails with the error message above.
    Any ideas, anyone?
    Regards,
    Thomas

    Hi Kan,
    So your suggestion is that I should run a backup with the format media option selected? I believe I have tried that, but I will nevertheless give it another go.
    Will keep this thread open in the mean time.
    Thomas

  • Is MSSQL 2005 supported ?

    is MSSQL 2005 supported by the 6.0 portal? For an existing portal(with sql2000 database), moving the database on a sql2005 server isOk? Any experience regarding this procedure?
    Thanks!
    Val

    Hi Jacques,
    The Express Edition is not listed in the "Supported platforms" list:
    http://service.sap.com/~form/sapnet?_SHORTKEY=01100035870000654575&_SCENARIO=01100035870000000183&_ADDINC=&_OBJECT=011000358700001241092005E.htm
    If I remember correctly Microsoft does not want the Express Edition to be used for productive systems...
    ...or at least the agreement regarding B1 is of such kind.
    For a more detailled discussion or a formal answer please open a message to SAP Support on SAP Servicemarketplace.
    HTH,
    Frank

  • Strange Date format in SM21 log in ERP 2005 system

    Hi,
    We have upgraded to ERP 2005 from 4.6C. In the system log (SM21), when I look, the date format (yyyy/mm/dd) the year is showing as some strange number 0112 . Not sure if it is a bug or has some fix.
    I had installed a new ERP 2005 system in which I have the same problem.
    Has anyone encountered the same problem?
    Both are in HP-UX and MSSQL.
    Thanks & Regards,
    P. Kumaravel.

    HI Daniel,
    Further more I get the below message in SAP market place:
    Error Message - Access denied (R/3)
    What happened?
    You do not have permission to access this Object
    What can you do?
    Please contact a consulting adminstrative
    Error code: WEBSMP109-20070115061813-0015
    Error details: CE1D7E-702/1A00C/3162-7324CFB9-3CB9265-29AB5B
    Service Name: SAPIDB
    Service Server: PWDF1737
    Process-ID: 5224
    Thread-ID: 5792
    Sorry for any inconvenience.
    Your SAP Service Marketplace Team
    Thanks & Regards,
    P. Kumaravel.

  • Can SBO-COMMON database be re-attached after Reinstalling MSSQL 2005

    Hi All,
    I encountered collation issue. The MSSQL Server Collation is incorrectly indicated when upgrade from 2005B to 8.8 was performed. (the correct one should be SQL_Latin1_General_CP1_CI_AS instead of Latin1_General_CI_AS. But my various company databases are correctly stated as SQL_Latin1_General_CP850_CI_AS (as required by SAP B1).
    Now, I am considering creating a new SQL Instance with the correct collation, then use the SBO Upgrade Server to create the SBO-COMMON and re-direct the License Server to the new instance. But all my AddOns requires for re-installation.
    My next alternative is to uninstall MSSQL 2005 and re-install with the correct collation. But I am wondering if the backup SBO-COMMON can be used. Also, will the installed AddOns prompts for re-installation?
    I have checked against SAP Note 987436. is this the only lifeline?
    These solutions will required certain amount of downtime from the customer. Is there a cleaner way out of this?
    Please help.
    Regards
    Jessie Ng

    Hi,
    Some of our B1 customers have encountered the wrong collation settings. Here are the problems they've got :
    1. When trying to use any functionality of Drag & Relate, the following error message will be displayed: 'No matching record found'.
    2. When runing "Sales\Purchase analysis report" for Business Partner, the report might not retrieve any results eventhough it should.
    Here is the solution from SAP note:
    Collation Settings of MSSQL Server 2005 or 2008
    Symptom
    When defining the wrong collation during manual installation of MSSQL Server 2005 or MSSQL 2008, in certain situations it might cause functional problems. Examples:
    1. When trying to use any functionality of Drag & Relate, the following error message will be displayed: 'No matching record found'.
    2. When runing "Sales\Purchase analysis report" for Business Partner, the report might not retrieve any results eventhough it should.
    Other terms
    MSSQL 2005, MSSQL 2008, SQL server, documentation, collation, Drag & relate, drag and relate, collation settings, collation setting, SQL 2005, SQL 2008
    Reason and Prerequisites
    Consulting Note
    Solution
    The latest version of any documentation can be found at http://service.sap.com/smb/sbo/documentation.
    Please make sure to choose collation setting of: SQL_Latin1_General_CP1_CI_AS
    when installing MSSQL 2005 / 2008 Server.
    In order to check what the collation is set to in your server, please run the following query:
    Collation of your Server:
    select SERVERPROPERTY ('collation')
    (This query gets the collation settings of MSSQL Server's System Database "Master")
    Expected answer : SQL_Latin1_General_CP1_CI_AS
    In case you have already installed the MSSQL 2005 or 2008 Server with any collation other than SQL_Latin1_General_CP1_CI_AS, please follow the steps below:
    Change your server collation to SQL_Latin1_General_CP1_CI_AS.
    You can find Microsoft's instructions for changing an SQL server collation here:
    http://msdn2.microsoft.com/en-us/library/ms179254.aspx
    Please note that collation settings of Database "Master" needs to be changed only. All SAP Business One Databases must not be changed! These must remain on SQL_Latin1_General_CP850_CI_AS.
    If you need any clarifications with this process please refer to an Expert Empowerment Session "SQL 2005 Server Collation settings" at https://websmp203.sap-ag.de/~sapidb/011000358700000050892007E/ or http://service.sap.com/smb/sbo/support -> Archive: Empowerment Sessions.
    If you have any Servicepack for MSSQL Server installed, but the Servicepack is not included into your DVD MSSQL Server, do as follows:
    1. Deinstall Servcicepack
    2. Change Collation Settings as per Expert Empowerment Session
    3. Install Servicepack again
    JimM

  • How to reduce allocated Space to DB in mssql 2005

    Hi ,
    We are using SAP with Mssql2005 on Windows 2008r2.server.
    One week back we provided 400 GB space to My database files (for each 100GB), But right now we don't want that much space for My system.We are planing to use that extra space for another system.
    I want to know below points.
    1)How to reduce my database free space from Mssql 2005 management studio.
    2)What is the Procedure.
    3)Is it possible to reduce the Database free size once added to SQL Database files.
    Please suggest the procedure, its urgent requirement.

    Hi Rao
    1.  You can perform the Database shrink. During this process keep an eye on transaction log & do it during off peak time. Just go through the Microsoft blog Shrink a File
    2. If your are migrating  the database to MS Sql 2008 R2 you can get the database compression feature it may reduce your disk space more than 40%,
    Regards
      Sriram

Maybe you are looking for