What are user defined datatypes and when you should go for
them?

Answer Posted / swapna

User defined datatypes let you extend the base SQL Server
datatypes by providing a descriptive name, and format to
the database. Take for example, in your database, there is
a column called Flight_Num which appears in many tables. In
all these tables it should be varchar(8).

In this case you could create a user defined datatype
called Flight_num_type of varchar(8) and use it across all
your tables.

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is there any difference between primary key and unique with the not null condition?

531


What is the purpose of the tempdb database?

576


How to insert new line characters into strings?

564


What are the advantages of using third-party tools?

556


What is sql view?

545






What are the different SQL Server Versions you have worked on?

561


How many types of functions are there in sql server?

469


What does nvl stand for?

562


What are the general features of sql server management studio? : sql server management studio

601


Is INSTEAD OF trigger directly applicable to Table ?

576


can we have a nested transaction? : Sql server database administration

509


What is an indice?

577


What happens to a statement batch if there is a compilation error?

514


How do you start single user mode in clustered installations?

527


What is the function of sql server agent windows service?

539