Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. sql server 2005 User defined datatype and PrimaryKey

sql server 2005 User defined datatype and PrimaryKey

Scheduled Pinned Locked Moved Database
databasesql-serversysadminquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Asim N
    wrote on last edited by
    #1

    Hello, I was exploring user defined datatypes in sql server 2005. I tried making this type, a primary key but I am afraid that option is disabled. Now is this not possible or are there any properties that needs to be set first ? Looking for reply.

    Regards, Aims

    A 1 Reply Last reply
    0
    • A Asim N

      Hello, I was exploring user defined datatypes in sql server 2005. I tried making this type, a primary key but I am afraid that option is disabled. Now is this not possible or are there any properties that needs to be set first ? Looking for reply.

      Regards, Aims

      A Offline
      A Offline
      andyharman
      wrote on last edited by
      #2

      I found the following on MSDN: In SQL Server 2005 SP1, UDT fields must use native serialization or be persisted in order to be indexed. and You can create indexes on CLR user-defined type columns if the type supports binary ordering. I don't really think that UDTs are really meant to be primary keys.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups