Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

SSMA to migrate data from oracle to sqlserver Expand / Collapse
Author
Message
Posted Tuesday, April 29, 2014 11:00 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, July 11, 2014 12:32 AM
Points: 7, Visits: 28
We migrated data from oracle to sqlserver using SSMA but when we see data of sqlserver on .NET GUI, formatting is different than oracle data display on .NET GUI.

For an example

we are able to see data of oracle on .NET GUI of a spectific column of grid :

Hello

How are you ?

But in sql server all data is displaying in single line like :

Hello How are you ?
We executed below command on sql server but still able to see data in single row :


update table_name set column_name =replace(column_name,'',char(13)+char(10))

Can you please provide us solution as soon as possible ?
Post #1566058
Posted Tuesday, April 29, 2014 11:12 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 7:44 AM
Points: 12,910, Visits: 32,015
in the SSMS grid, in order to force visibility of the data , for display purposes only,Carriage Returns and Line Feeds are turned into spaces; however the data truly still contains the original CrLf;
if you click Control+T (test mode) and rerun your query, you'll see the formatting.

SSMS is a utility,and not a real reporting tool;
the data exported to raw text, like delimited CV, would have your formatting; excel might show the CrLf, or it might hid eit as well; excel likes to format data it thinks it recognizes.


Lowell

--There is no spoon, and there's no default ORDER BY in sql server either.
Actually, Common Sense is so rare, it should be considered a Superpower. --my son
Post #1566064
Posted Tuesday, April 29, 2014 9:19 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, July 11, 2014 12:32 AM
Points: 7, Visits: 28
we are not displaying data into SSMS grid.we are displaying data into .net gridview.

I had already checked , it is not an application issue.

we are using collation as Latin1_General_Bin in sqlserver. Is it the cause ?

When we run query of oracle in sql developer and paste the output of specific column in notepad++, it shows the LF character but

same out put of sqlserver does not show LF character in notepad++.

Still I am not able to find out the root cause why LF character is not shown in sqlserver, we migrated the data using SSMA from oracle to sqlserver .

Will we have to do some setting change in SSMA while migrating data of varchar column ?
Post #1566203
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse