Choose your database:
AnySQL
MySQL
MS SQL Server
PostgreSQL
SQLite
Firebird
Oracle
SQL Anywhere
DB2
MaxDB

Subscribe to our news:
Partners
Testimonials
Albert Rognan: "Thank you for this quick reply. I must say I am impressed of the number of functions that is available within this tool".
Jim Salmons: "That is excellent news! I will look forward to a future update with these features. It will be attention to such details that further distinguishes your excellent products from the competition.

As always, I appreciate your great products and your demonstrated customer service is equal to the high quality of your products".

More

Add your opinion

MS SQL Maestro online Help

Prev Return to chapter overview Next

UDTs

SQL Server 2005 adds support for user-defined types (UDTs) implemented with the Microsoft .NET Framework common language runtime (CLR). The CLR is integrated into SQL Server, and this new mechanism enables you to extend the type system of the database. UDTs provide user extensibility of the SQL Server data type system, and also the ability to define complex structured types.
 

 

New UDTs are created within Create UDT Wizard. In order to run the wizard you should either

 

select the Object | Create Database Object... main menu item;
select the UDT icon in the Create Database Object dialog

or

select the UDTs list or any object from that list in the explorer tree;
select the Create New UDT... item from the popup menu

or

open Schema Editor and the UDTs tab there;
press the Insert key or select the Create New UDT item from the popup menu (alternatively, you may use the corresponding link of the Navigation Bar).

       

To create a new UDT with the same properties as one of the existing UDTs has:

 

select the Object | Duplicate Database Object... main menu item;
follow the instructions of Duplicate Object Wizard.

 

 

 

UDTs can be edited within UDT Editor. In order to run the editor you should either

 

select the UDT for editing in the explorer tree (type the first letters of the UDT name for quick search);
select the Edit UDT... item from the popup menu

or

open Schema Editor and the UDTs tab there;
select the UDT to edit;
press the Enter key or select the Edit UDT item from the popup menu (alternatively, you may use the corresponding link of the Navigation Bar).

 

You can change the name of the UDT using the Rename UDT dialog. To open the dialog you should either

 

select the UDT to rename in the explorer tree;
select the Rename UDT item from the popup menu

or

open Schema Editor and the UDTs tab there;
select the UDT to rename;
select the Rename UDT item from the popup menu (alternatively, you may use the corresponding link of the Navigation Bar).

 

 

 

To drop a UDT:

 

select the UDT to drop in the explorer tree;
select the Drop UDT item from the popup menu

or

open Schema Editor and the UDTs tab there;
select the UDT to drop;
press the Delete key or select the Drop UDT item from the popup menu (alternatively, you may use the corresponding link of the Navigation Bar)

 

and confirm dropping in the dialog window.

 



Prev Return to chapter overview Next