MS SQL Server
  Home arrow MS SQL Server arrow Page 7 - Transferring a Database Using the SSIS Des...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Dedicated Servers 
Moblin 
JMSL Numerical Library 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
MS SQL SERVER

Transferring a Database Using the SSIS Designer
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 8
    2006-10-17

    Table of Contents:
  • Transferring a Database Using the SSIS Designer
  • The Source and Destination Servers and Databases
  • Creating a Business Intelligence Project
  • Creating a New Package
  • Configuring Connections
  • Configuring the Source Database
  • Troubleshooting

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Transferring a Database Using the SSIS Designer - Troubleshooting


    (Page 7 of 7 )

    After encountering the same error message, attempt was made to verify whether the IDE did what it is supposed to do. The first thing checked was to verify if any permission was violated. Finally it was decided to look at the Database files for the source and the destination.

    Source

    "TestBase.mdf","C:Program FilesMicrosoft SQL ServerMSSQL.1MSSQL
    DATA",""; "TestBase_log.ldf","C:Program FilesMicrosoft SQL ServerMSSQL.1MSSQL
    DATA",""
    Destination

    "TestBase.mdf","C:Program FilesMicrosoft SQL ServerMSSQL.1MSSQL
    DATA",""; "TestBase_log.ldf","C:Program FilesMicrosoft SQL ServerMSSQL.1MSSQL
    DATA",""

    Do you see the problem with this automated wizard? It is trying to copy from SQL 2005 to itself, although it was explicitly told to copy it to the SQL Express. To remedy the situation, change the destination file string to the following:

    "TestBase.mdf","C:Program FilesMicrosoft SQL ServerMSSQL.4MSSQL
    DATA",""; "TestBase_log.ldf","C:Program FilesMicrosoft SQL ServerMSSQL.4MSSQL DATA",""

    Now click OK to the Editor screen and execute the package one more time. The progress now shows the following displayed.

    The output of the debug window shows that  the package exited with code 0(0x0), a success.

    Final check on SQL Express

    If you now go back to SQL Express Server and expand the databases node, you should find the TestBase database. This is indeed true as shown here. The TestBase database has been copied over to the SQL Express Server.

    Summary

    The package design using the SSIS Designer for transferring a database is very easy. The automatic configuring of the destination created a problem which was rectified by associating the proper destination file with the proper server. It was interesting to note that it took over 12 seconds to transfer a near empty database (total data + log = 5 MB) with just two user tables with both servers on the same machine. The error message produced when the task failed was not very helpful.


    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

       · SSIS is well integrated with the Visual Studio 2005. In SQL 2000 server it was a...
       · Good tutorial. However, what do you do when you get the error below because one or...
     

    MS SQL SERVER ARTICLES

    - Completing the Introduction to Transact-SQL
    - A Brief Introduction to Transact-SQL
    - Lookups and Blocking Bad Data
    - Field Validation Rules for Blocking Bad Data
    - Using Masks to Block Bad Data
    - Blocking Bad Data
    - Using @@ROWCOUNT and TABLE Variables for Dat...
    - How to Use Variables, IF and CASE in Databas...
    - Creating Important Aspects of Notification S...
    - Working wth Variables in Database Interactio...
    - Delving Deeper into Notification Services
    - Notification Services
    - Building a Multi-table Report with SQL 2005 ...
    - A Secure Way of Building Connection Strings
    - Transferring a Database Using the SSIS Desig...





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway