Click here to Skip to main content
15,894,740 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i have a problem on showing the Arabic language on crystal report it's show as "??????"
and i am using the SQL as database ...
note that the Arabic language is shown well on SQL and the visual studio 2017

What I have tried:

when i tried to change the type from varchar50 to nvarchar50 it's give me this massage when i order to save
"saving changes is not permitted . the changes you have made require the following tables to be dropped and re-created. you have either made changes to a table that can't be re-created or enabled the option prevent saving changes that require the table to be re-created "
Posted
Updated 15-Apr-18 11:46am

1 solution

SQL will not allow you to change the data type in SSMS using Design mode of a Table - you will get the message as above.
You can change the datatype using TRANSACT though - specifically using Alter Table, Alter Column.
For instance, the following does work without loss of data and without dropping and recreating the table;
SQL
 -- Create a demo table
CREATE TABLE [dbo].[VToNVTest]
(
	[RecordId] INT IDENTITY(1,1) NOT NULL,
	[DemoText] VARCHAR(50) NULL,
	CONSTRAINT [PK_VToNVTest] PRIMARY KEY CLUSTERED
	(
		[RecordId] ASC
	)
	WITH
	(
		PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF,
		IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON
	) ON [PRIMARY]
) ON [PRIMARY]
GO
-- insert 2 records
INSERT INTO [dbo].[VToNVTest]
([DemoText])
VALUES
('Test A'), ('Test B')
GO
-- view data
SELECT * FROM [VToNVTest]

-- Change column type to NVARCHAR
ALTER TABLE [dbo].[VToNVTest]
	ALTER COLUMN [DemoText] NVARCHAR(50)
GO
-- view data
SELECT * FROM [VToNVTest]


For Crystal to display the data correctly you will need to change the column type & set the font correctly & you may need to change the collation of the database

Kind Regards
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900