Reply to Re: MS-SQL Related

Your name:

Reply:


Posted by Dot Net Daddy on 08/05/06 11:49

Great. It has done it. I was using nvarchar(MAX) as you told.

Now it is ok.

Thank you very much for your help guys.


Erland Sommarskog wrote:
> Dot Net Daddy (cagriandac@gmail.com) writes:
> > What is uniqueidentifier as a data type?
>
> A uniqueidentifier is a 128-bit value, which is generated in such a way
> that it is guaranteed to be unique in the whole universe. (Well, at least
> this planet.) They are not specific to SQL Server, but Windows has them
> all over the place, but calls them GUIDs.
>
> > Also what is the data type for setting unique STRINGS ((nchar,
> > nvarchar), for example to be used for emails and user names in a user
> > registration system).
> >
> > SQL Server does not allow me set primary keys for columns where data
> > types are not INT.
>
> Huh? You can use almost any data type for primary keys. Since a primary
> key is an index, the total key size may not execeed 900 bytes, so you
> cannot use things like text or nvarchar(MAX).
>
>
> --
> Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se
>
> Books Online for SQL Server 2005 at
> http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
> Books Online for SQL Server 2000 at
> http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация