I am having trouble declaring a Table. By using the following code (SQL server)
DECLARE @dates TABLE date;
I get the error
SQL Error [103010] [S0001]: Parse error at line: 1, column: 16: Incorrect syntax near 'TABLE'.
Can someone explain what the problem might be?