Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unique Nullable values??
Message
From
04/09/2002 09:40:33
 
 
To
04/09/2002 08:26:25
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
00696335
Message ID:
00696580
Views:
11
>Thank you for your response. I have encluded a stored proc segment to show how the table is being created.
>
>CREATE TABLE Customers(
> CustomerID INT PRIMARY KEY IDENTITY (1,1) NOT NULL,
> SalesOrder INT UNIQUE NULL,
> FirstName VARCHAR(26) NOT NULL,
> MI CHAR(1) NULL,
> LastName VARCHAR(30) NULL,
> SSN BIGINT UNIQUE NULL,
> PSSN BIGINT UNIQUE NULL,
> DLN VARCHAR(20) UNIQUE NULL,
> ...
>
>Is there anything else I should be doing??
>
>Thanks
>
>Rollin

Try to add a SET ANSI_NULLS ON GO above this and recreate it. See if that makes a difference.

See, when ANSI_NULLS is ON null = null returns null, with ansi nulls off then null = null returns true, which may be why your server sees them as non-unique values.

BOb
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform