|
I am playing with tabletypes and it seems you can only use this for passing tabledata to a stored procedure. It would be nice if a tabletype can be used as a template for tables like: However this gives an error. Am I missing something? If this would work, SQL will become a little more object-oriented :)
(comments are locked)
|
|
You can use the type to declare a table variable though. And then use that to make a table using SELECT INTO... Yes, I know, but this is for in memory operations. What confuses me is that this statement is working: create type SSN_type from varchar(11) go create table person(name varchar(32), SSN SSN_type) go While my previous example is not working
May 03 '12 at 11:50 AM
Wilfred van Dijk
(comments are locked)
|


Yeah, but it isn't.