| SQL Server Data Access Components | support@devart.com |
| UDT Demo Readme |
This demo project demonstrates SDAC abilities for working with CLR User-defined Types (UDT) of SQL Server 2005. You can read about UDT in MSDN.
It is required some additional settings to be made for this demo:
CREATE ASSEMBLY Square
FROM '< Path to the assembly on the SQL Server computer >\Square.dll'
WITH PERMISSION_SET = SAFE;
CREATE TYPE dbo.Square EXTERNAL NAME Square.[Square];
CREATE TABLE Squares(
[uid] [int] IDENTITY (1, 1) NOT NULL ,
c_square Square)
GO
ALTER TABLE [dbo].[Squares] WITH NOCHECK ADD
CONSTRAINT [PK_Squares] PRIMARY KEY CLUSTERED
(
[uid]
) ON [PRIMARY]
GO
INSERT INTO [Squares](c_square) VALUES(CONVERT(Square, '0, 0, 100'))
INSERT INTO [Squares](c_square) VALUES(CONVERT(Square, '100, 100, 150'))
INSERT INTO [Squares](c_square) VALUES(CONVERT(Square, '100, 200, 200'))
INSERT INTO [Squares](c_square) VALUES(CONVERT(Square, '200, 100, 250'))
INSERT INTO [Squares](c_square) VALUES(CONVERT(Square, '200, 150, 300'))
© 1997-2025 Devart. All rights reserved.