How to migrate from SQL Compact Edition (sdf file) to SQL Server 2012 Express

I have written a script to migrate the sdf file to SQL.