I can create PKs and Unique Clustered and Non-clustered indexes on multi line udf's
But I'd like to create a non-unique clustered index for the table that is returned as it is then joined to several other tables.
I can't do:
CREATE CLUSTERED INDEX ON tblOut (ColumnName)
it throw invalid use of CREATE INDEX in a function
and I can only add unique and primary key contraints to the table definition.
Is it therefore impossible?
Cheers,
Jim.
But I'd like to create a non-unique clustered index for the table that is returned as it is then joined to several other tables.
I can't do:
CREATE CLUSTERED INDEX ON tblOut (ColumnName)
it throw invalid use of CREATE INDEX in a function
and I can only add unique and primary key contraints to the table definition.
Is it therefore impossible?
Cheers,
Jim.