Sql 2005 and User Defined Data types

  • Thread starter Thread starter Steve B.
  • Start date Start date
S

Steve B.

Hi,

I've a sql 2005 db with one column of a user defined type (a custom CLR
type).

How can I deal with UDT in DataSets ?
VS throw an error when trying to design a DS with the custom type... is
there any best practice concerning udt ?

Thanks,
Steve
 
There are a litany of issues associated with UDTs--too many to list here.
See Chapter 15. Yes, you should be able to reference UDTs from a VS-hosted
application, but you'll probably have to establish a reference to the UDT in
the project.

--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
INETA Speaker
www.betav.com/blog/billva
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
Visit www.hitchhikerguides.net to get more information on my latest book:
Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition)
and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook)
 
My question concerned essentially about dealing with dataset and udt.
I'm use to use strongly typed dataset and WebServices that return such
datasets. With UDT ds designer can't be used.

Steve
 
Again, did you register the UDT in your project? I've been able to use UDTs
in the VS designer but not until they are registered.

--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
INETA Speaker
www.betav.com/blog/billva
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
Visit www.hitchhikerguides.net to get more information on my latest book:
Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition)
and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook)
-----------------------------------------------------------------------------------------------------------------------
 
When I add a datatable that have one of its colum o MyType, i get this error
: "User-defined datatypes (UDTs) are not supported in the dataset designer.

Even if I add the reference to the assembly that hosts the sql type.
What did mean with "registered" in visual studio ?

Steve
 
Back
Top