Click here to Skip to main content
15,911,132 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
i found in some example table datatype " Name:nvarchar(50) ".

how it is done.

thanks in advance
Posted

I am not sure I understand your question. If you are using the MS SQL designer, just choose nvarchar(50) for the data type for that column. In case you are hand-coding that still isn't an impossible task, for example:

SQL
CREATE TABLE [dbo].[Test](
    [ID] [int] NOT NULL,
    [Name] [nvarchar](50) NOT NULL
) ON [PRIMARY]


Pls. elaborate if this is not what you are looking for.
 
Share this answer
 
Name:nvarchar(50) means that declare a field named Name which would have variable length up to 50 characters and they should also be stored in unicode format.
 
Share this answer
 
Comments
ahmad zrein 20-Nov-11 6:19am    
this what i need, because i can define arabic unicode

can i have example

thanks again
Amir Mahfoozi 20-Nov-11 7:17am    
All of the works can be done in SQL Server Management Studio, so create your tables there and then if you wanted to see the SQL commands to create those tables then right click on the table name and select "Scrip Table As" > "Create To" > "New Query Editor Window". Good Luck

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