I\'m trying to create a table variable with primary key. What is the difference between these two statements? Why the first one does not work?
--This does not wo
Looks like this behavior is well documented in BOL. Look at the syntax definitions for DECLARE TABLE Variable vs CREATE TABLE.