Aug 19, 2003 #1 lucyc Programmer Mar 1, 2002 62 US Is it possible to create a key or index on view??? If it is then how and what is the syntax. Thanks.
Aug 19, 2003 #2 pgtek Programmer Sep 28, 2001 1,180 CA hi here's the syntax CREATE [ UNIQUE ] [ CLUSTERED | NONCLUSTERED ] INDEX index_name ON { table | view } ( column [ ASC | DESC ] [ ,...n ] ) [ WITH < index_option > [ ,...n] ] [ ON filegroup ] < index_option > :: = { PAD_INDEX | FILLFACTOR = fillfactor | IGNORE_DUP_KEY | DROP_EXISTING | STATISTICS_NORECOMPUTE | SORT_IN_TEMPDB } cheers pgtek Upvote 0 Downvote
hi here's the syntax CREATE [ UNIQUE ] [ CLUSTERED | NONCLUSTERED ] INDEX index_name ON { table | view } ( column [ ASC | DESC ] [ ,...n ] ) [ WITH < index_option > [ ,...n] ] [ ON filegroup ] < index_option > :: = { PAD_INDEX | FILLFACTOR = fillfactor | IGNORE_DUP_KEY | DROP_EXISTING | STATISTICS_NORECOMPUTE | SORT_IN_TEMPDB } cheers pgtek
Aug 19, 2003 #3 JayKusch MIS Oct 30, 2001 3,199 US Here is a link to get you started! http://www.databasejournal.com/features/mssql/article.php/2119721 Thanks J. Kusch Upvote 0 Downvote
Here is a link to get you started! http://www.databasejournal.com/features/mssql/article.php/2119721 Thanks J. Kusch
Aug 19, 2003 Thread starter #4 lucyc Programmer Mar 1, 2002 62 US hi pgtek, Can you send me an example? Is it work on sql 7.0? Upvote 0 Downvote
Aug 19, 2003 Thread starter #5 lucyc Programmer Mar 1, 2002 62 US Hi Jay, The schemblinding does't work on SQL7.0 Upvote 0 Downvote
Aug 19, 2003 #6 pgtek Programmer Sep 28, 2001 1,180 CA hi check this link http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlref/ts_create_64l4.asp cheers pgtek Upvote 0 Downvote
hi check this link http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlref/ts_create_64l4.asp cheers pgtek
Aug 20, 2003 #7 JamesLean Programmer Dec 13, 2002 3,059 GB SQL 7 does not support indexed views at all. You need SQL 2000 to do this. --James Upvote 0 Downvote