March 22, 2014 at 2:02 pm
Comments posted to this topic are about the item Using Seqence Container instead of Identity
Regards,
Mitesh OSwal
+918698619998
March 23, 2014 at 10:08 pm
its a "SEQUENCE OBJECT" not a "SEQUENCE CONTAINER".
Leon
March 24, 2014 at 1:08 am
I got an error:
Type dbo.HVCIDdt is not a defined system type.
WHY?
March 24, 2014 at 4:35 am
I think [HVCIDdt] is a user data type (just like Int or BigInt), we are supposed to create, but the tsql in the post does not have.
If you change [HVCIDdt] for [BigInt], the script works.
See details here.
March 24, 2014 at 6:24 am
Or you could create the user type -
CREATE TYPE [dbo].[HVCIDdt]
FROM bigint NOT NULL ;
March 24, 2014 at 10:45 am
I don't think you need the TOP 1 in the existence tests. EXISTS (SELECT...) already has the optimization of stopping after the first row built in.
March 24, 2014 at 3:58 pm
This is a feature added in SQL Server 2012; that might be the problem for pawel.sowka.
June 8, 2015 at 3:28 pm
Brian J. Parker (3/24/2014)
This is a feature added in SQL Server 2012; that might be the problem for pawel.sowka.
Oh, that's why I don't know about it.
Viewing 8 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy