April 22, 2012

Export data from MySQL to SQL Server

Problem
Many people want to create a customized migration process using SQL Server Integration Services (SSIS), but it is hard to start working with heterogeneous databases like MySQL, Postgres, DB2, etc. Check out this tip to learn about how to import data from heterogeneous databases like MySQL to SQL Server.

Solution
In this example, the database used to import data from is the Test Database in MySQL which is installed by default. We will import data from MySQL to SQL Server using SQL Server Integration Services.

MCTS Training, MCITP Trainnig

Best Microsoft MCTS Certification, Microsoft MCITP Training
at certkingdom.com

MySQL Prerequisites

To follow the steps in this tip it is necessary to have the following software installed:

The MySQL database
The MySQL Connector Installed, this will install a MySQL ODBC driver

Let's create a table in MySQL called myTable with a column called myColumn then insert some data in the table:

use MySQL;
create table myTable(myColumn varchar(20));
insert into myTable(myColumn) values("John");
insert into myTable(myColumn) values("Jane");
insert into myTable(myColumn) values("Arnold");
insert into myTable(myColumn) values("Jessica");

Using SQL Server Integration Services to import data from MySQL to SQL Server

Here are the steps to create the SSIS project:

Start SQL Server Business Intelligence Development Studio and start an Integration Service Project.

Create a new project and select Integration Services Project.

In the toolbox drag and drop the Data flow task onto the design surface of the Control Flow tab.

Double click in the Data Flow task in the Design pane.

In the Data Flow tab, drag and drop the ADO.NET Source and ADO.NET Destination to the design pane, join both tasks with the green arrow.

Go to Windows start menu | Administrative tools | Data Sources (ODBC) and click the Add button.

Select the MySQL ODBC driver and press Finish. Please note this driver is installed with the connector specified in the prerequisites section above.

Specify the Data Source Name. e.g. "MySQL conn".

Specify the TCP/IP Server. It can be the IP or the localhost if the machine used is the local machine.

Specify the user, in this case root and the password. Ask to the MySQL administrator if you do not know the user database password).

Select the MySQL database.

Congratulations! You have a ODBC connection. Now let's use it in SSIS and return to the SSIS project.

Double click in the ADO Net Source and press the new button.

Press the new button again to add a connection.

This is important, in the provider, select the .NET Providers\ODBC Data Provider. The ODBC connection will be displayed. Select the connection created in step 8 and press OK.

In the ADO.NET source editor, in Data access mode, select SQL Command.

In the SQL command test, write "select * from myTable" and press OK. In this step you are writing the query to access to MySQL table created at the beginning.

Double click in the ADO.NET Destination task and in the Connection manager press New.

In the Configure ADO.NET Connection Manager press new again.

In the connection manager specify the SQL Server instance name (in this example the localhost is a dot) and select a Database where you want to import the MySQL Database and press OK. In this example the Adventureworks database is used, but any database can be used instead.

In the ADO.NET Destination Editor, click new in the Use a table or view option.

In the Create Table box, use this code:

CREATE TABLE "myTable" (
"myColumn" nvarchar(20)
)

In the ADO.NET Destination Editor, click the Mapping page and press OK.

We are ready. Press the Start Debugging icon as shown below.

You will see the tasks in green which means the tasks were completed successfully with the associated row count.

Last, but not least, open the Microsoft SQL Server Management Studio and verify in the instance and database used that the new table myTable was created and also that it contains the data specified.

Next Steps
SSIS enables you import and export data from multiple sources. With the providers help, it is possible to interact not only with MySQL, but with just about any data source.
Review the following tips and other resources: ."

MCTS Training, MCITP Trainnig

Best Microsoft MCTS Certification, Microsoft MCITP Training
at certkingdom.com

April 19, 2012

Microsoft remains mum on Windows 8 upgrades from Vista, XP

Limits upgrade path confirmation to 2009's Windows 7

Computerworld - Microsoft today declined to confirm whether users of Windows XP and Vista will be able to upgrade their PCs to Windows 8 when the latter launches later this year.

On Monday, Microsoft spelled out the editions it would offer customers working with 32- and 64-bit Intel and AMD processor-powered PCs and tablets.

In that blog post, the company also noted the upgrade paths to Windows 8 for existing machines, saying that people now running Windows 7 Starter, Home Basic or Home Premium could upgrade to the consumer-oriented Windows 8. Systems running Windows 7 Professional or Ultimate will be upgradable to Windows 8 Pro.

MCTS Training, MCITP Trainnig

Best Microsoft MCTS Certification, Microsoft MCITP Training
at certkingdom.com


Although Microsoft did not specify the upgrade path for customers currently running Windows 7 Enterprise, the assumption is that they will be able to upgrade to Windows 8 Enterprise, which, like its predecessor, will be distributed only to companies with Software Assurance upgrade agreements.

The omission of the problem-plagued Vista and the nearly 11-year-old XP from Microsoft's explicit upgrade path seemed odd: In February, the company used an FAQ to plainly state that users of those OSes could upgrade to Windows 8's beta, tagged "Consumer Preview."

"You can upgrade to Windows 8 Consumer Preview from Windows Developer Preview, Windows 7, Windows Vista, or Windows XP," the FAQ stated, "but you might not be able to keep all of your files, programs and settings."

Developer Preview was Microsoft's name for the first public sneak peak at Windows 8 as a work-in-progress, and was issued last September.

In the FAQ, Microsoft said that Vista users who upgraded would retain user accounts and files, as well as Windows settings. XP-to-Windows 8 upgrades would only preserve user accounts and files. Windows 7-to-Windows 8 upgrades, meanwhile, conserved not only user accounts, data files and Windows settings, but also already-installed applications in the move.

Ironically, migrating from Windows 7 is more thorough than from Windows 8's own Developer Preview, which will retain only as much information as an XP-to-Windows 8 transfer.

When asked today whether Vista and XP users would be able to upgrade to Windows 8 RTM, or "release to manufacturing" -- the label used to designate the final code -- as they were allowed in the Consumer Preview, a Microsoft spokeswoman declined to comment. "[We have] no information to share outside of what's in the blog," she said in an email.

It's possible Microsoft was using a narrow definition of "upgrade" in the Monday blog that confirmed only Windows 7-to-Windows 8 paths, one that included application migration as well as that for files and settings.

Previously, that kind of upgrade has been called "in-place," or one that leaves everything undisturbed as it swaps out the old OS for the new.

If Vista and XP get the cold shoulder, it wouldn't be the first time.

Three years ago, Microsoft offered an in-place upgrade to Windows 7 to users running Vista, but gave XP customers only the option of what it called a "custom" install -- others pegged it as a "clean" install -- that deleted all data on the hard drive before installing the then-new operating system.

It may seem foolish to exclude XP users from a possible Windows 8 upgrade since that 2001 edition powered 51% of all Windows PCs that went online last month, according to metrics company Net Applications. Vista accounted for another 8% of all Windows editions.

But the aged hardware running XP may be the hurdle Windows 8 can't jump: Microsoft has repeatedly said that PCs able to run Windows 7 will be able to run the new OS, but the system requirements it outlined for the Consumer Preview -- a 1GHz processor, 1GB of memory and a graphics card able to handle DirectX 9 or later -- may preclude many older machines.

Microsoft has not yet revealed the pricing for Windows 8's upgrades, or described how they will be distributed.

While Windows 7's upgrade in 2009 was handled much the same as always, Microsoft debuted a new strategy with Office 2010 when it dropped upgrade pricing -- a move that effectively raised costs for users of earlier editions of the suite -- and launched single-license "key cards" that carried only an activation code.

According to one analyst, Microsoft is unlikely to follow Apple's lead and offer Windows 8 upgrades only through its online channels, which could include Windows Store, the software market designed for Windows 8. Microsoft has not said whether Windows 7 users will be able to access that e-store.

MCTS Training, MCITP Trainnig

Best Microsoft MCTS Certification, Microsoft MCITP Training
at certkingdom.com

April 17, 2012

Microsoft: Six versions of Windows 7 for sake of PC makers, users

Analyst differs, saying it has more to do with improving profit margins in developed countries

Computerworld - While it plans to focus on marketing two versions of Windows 7, Microsoft Corp. will offer six editions of its next operating system to better satisfy PC makers and end users, an executive said Tuesday.

"We did a lot of research and talked to a lot of [hardware] partners and customers," Mike Ybarra, general manager for Windows, told Computerworld following the versions announcement today.

"Our biggest challenge is that we have over 1 billion customers," Ybarra said. "It's hard to satisfy all of them [with a single version]. There are vocal customers who want every feature, and more regular consumers who say 'I want a version that can grow with me.'"

Microsoft said today that it will aim Windows 7 Home Premium at the majority of consumers and Windows 7 Professional at businesses. That harks back to Windows XP, which had two main SKUs: Home and Professional.

MCTS Training, MCITP Trainnig

Best Microsoft MCTS Certification, Microsoft MCITP Training
at certkingdom.com

However, Microsoft will maintain all of the four other versions it offered with Vista, including the controversial Home Basic, the Starter Edition that was until now restricted to developing countries, Enterprise and Ultimate. That "SKU proliferation" confused many consumers and corporate customers.

Meanwhile, Apple Inc. releases a single version of Mac OS X with every new release. It does have far fewer users than Windows, with some estimates claiming between 30 million to 50 million users worldwide today.

Matt Rosoff, an analyst at the independent firm Directions on Microsoft, said that keeping the number of versions high is all part of Microsoft's attempt to segment the market and "maintain the average-price-per-unit of Windows sales in developed countries to counteract the effects of price pressure in developing countries, where most growth is happening."

Rosoff thinks Microsoft's rejiggered lineup is "simpler" for consumers, but remains too complicated for businesses, which will have to "check the feature list carefully" in order to choose between Professional, Enterprise and Ultimate.

Microsoft did consider cutting Ultimate, a pricy, fully loaded version that in Windows Vista was aimed at gamers and enthusiasts.

"We're keeping it because a lot of top [PC makers] wanted it in order to let them differentiate their own hardware," Ybarra said.

Windows 7 Ultimate won't have any unique multimedia features, but it will share the same advanced networking and security features as Windows 7 Enterprise, which is available to large corporations through volume licensing, Ybarra said.

Rosoff expects Ultimate to be embraced by businesses rather than enthusiasts, because they will seek to avoid locking themselves into a multiyear license agreement as is required by the Enterprise version.

Rather than cutting Home Basic altogether, Microsoft chose to sell it only in developing markets, where very cheap PCs are in demand, Ybarra said. "[PC makers] need to hit multiple price points: good, better and best," he said.

Windows 7 Starter Edition is even more limited than Home Basic, allowing users to open only a maximum of three applications at any given time. "We felt that was the right way to go," Ybarra said, as this version will be aimed at new PC users.

While Microsoft is making Windows 7 Starter Edition available for netbooks worldwide, Ybarra expects the majority of PC makers to pre-install Windows 7 Home Premium anyway.

Rosoff agrees, saying that PCs shipped with Windows 7 Home Premium will likely cost about $50 more than those with Starter.

"On a $500 PC, I don't think customers will balk at paying an extra $50 for not having limitations such as the ability to open only three apps simultaneously," Rosoff said. "On a $200 PC (should such a thing ever emerge), that $50 might be a harder sell," Rosoff said in an e-mail.

Ybarra declined to disclose prices for any of the versions. He also declined to say how many "N" versions of Windows 7, which lack Windows Media Player as per European Union rules, Microsoft will release in Europe.

He promised that users would be able to perform Windows Anytime Upgrades even more quickly with Windows 7 than with Vista. In Vista, users would pay at Microsoft's Web site to get a license key and then re-insert their Vista DVD to physically install the upgrade on the hard drive.

With Windows 7, all versions are already installed on the user's PC hard drive, meaning he pays and then "simply unlocks the features," Ybarra said. Total upgrade time should be between seven and 10 minutes, he added.

Except for Starter, which will come in 32-bit only, all flavors of Windows 7 will ship in both 32-bit and 64-bit editions, Ybarra said.

He added that Microsoft has no plans to release any more versions of Windows 7 after its initial release, as occurred with XP.

MCTS Training, MCITP Trainnig

Best Microsoft MCTS Certification, Microsoft MCITP Training
at certkingdom.com

Bookmark and Share