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

What is the definition for sql server 2000?

788


How to use linked server?

782


Explain the truncate command?

676


How to update muliple row in single query?

798


Where can you find the error log information? : sql server database administration

742






How to check status of stored procedure in sql server?

654


What is candidate key with example?

707


You have developed an application which uses many stored procedures and triggers to update various tables users ocassionally get locking problems which tool is best suited to help you diagnose the problem?

765


What is a covering index?

721


Can two tables share a primary key?

715


What is the concept of optimization?

776


What are the differences between having and where clause.

709


Write a query to find 5th highest amount paid from the customer table.

701


What are filegroups in sql server?

776


What are different types of roles provided by ssrs?

128