May 12, 2008 at 6:40 pm
I have created a table variable
DECLARE @tblDataLogTraceRawDataTemp TABLE(
[DataLoggerTraceID] [bigint] NOT NULL,
[ReadingDateTime] [datetime] NOT NULL,
[TonneRate] [decimal](18, 5) NULL,
[Tonnes] [decimal](18, 0) NULL,
[LoadID] [bigint] NULL
)
How do i place an index on the DataLoggerTraceID and ReadingDateTime columns?
May 12, 2008 at 9:01 pm
The only index you can put on a table variable, is a Primary Key.
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply