Click here to Skip to main content
15,913,722 members
Home / Discussions / Database
   

Database

 
GeneralRe: Lookups Pin
Wendelius28-Jan-09 2:53
mentorWendelius28-Jan-09 2:53 
GeneralRe: Lookups Pin
Mustafa Ismail Mustafa28-Jan-09 2:55
Mustafa Ismail Mustafa28-Jan-09 2:55 
GeneralRe: Lookups Pin
Luc Pattyn28-Jan-09 5:06
sitebuilderLuc Pattyn28-Jan-09 5:06 
GeneralRe: Lookups Pin
Wendelius28-Jan-09 5:35
mentorWendelius28-Jan-09 5:35 
QuestionTo get the current value for SORT_IN_TEMPDB Pin
Arun Abraham Jose27-Jan-09 18:59
Arun Abraham Jose27-Jan-09 18:59 
AnswerRe: To get the current value for SORT_IN_TEMPDB Pin
Wendelius27-Jan-09 19:42
mentorWendelius27-Jan-09 19:42 
GeneralRe: To get the current value for SORT_IN_TEMPDB Pin
Arun Abraham Jose30-Jan-09 0:33
Arun Abraham Jose30-Jan-09 0:33 
GeneralRe: To get the current value for SORT_IN_TEMPDB Pin
Wendelius30-Jan-09 7:27
mentorWendelius30-Jan-09 7:27 
Arun Abraham Jose wrote:
Then how do we know what is the value for this flag


I don't think it's possible to say afterwards if an index is created with SORT_IN_TEMPDB On or Off. Since this option affects only when the index is created, it isn't necessary information for SQL Server when index is used.

Arun Abraham Jose wrote:
I want to set it on in our database now but I am not sure whether the people who created or maintained this database before were already set it or not


Since this isn't found in the system tables the only thing that comes in mind is that you create a standard that you add an extended property to your indexes. In this property you can document what option was used when the index was created.

Property can be set for example like this:
EXEC sys.sp_addextendedproperty 
       @name=N'SORT_IN_TEMPDB', 
       @value=N'True' , 
       @level0type=N'SCHEMA',
       @level0name=N'DatabaseName', 
       @level1type=N'TABLE',
       @level1name=N'TableName', 
       @level2type=N'INDEX',
       @level2name='IndexName'

After adding this property you can see it's value in system tables and in Management Studio.

Arun Abraham Jose wrote:
Another doubt regarding setting this flag is that, will it cause any issues in the future w.r.t. Size or performance and w.r.t. Tempdb as well?


SORT_IN_TEMPDB affects only index creation. It does not affect how the index behaves after creation so it's creation time option only.

The need to optimize rises from a bad design.My articles[^]

GeneralAutoincrement per field Pin
Mustafa Ismail Mustafa27-Jan-09 18:56
Mustafa Ismail Mustafa27-Jan-09 18:56 
GeneralRe: Autoincrement per field Pin
Wendelius27-Jan-09 19:35
mentorWendelius27-Jan-09 19:35 
GeneralRe: Autoincrement per field Pin
Mustafa Ismail Mustafa27-Jan-09 20:51
Mustafa Ismail Mustafa27-Jan-09 20:51 
GeneralRe: Autoincrement per field Pin
Wendelius27-Jan-09 20:53
mentorWendelius27-Jan-09 20:53 
GeneralRe: Autoincrement per field [edit] [modified] Pin
Mustafa Ismail Mustafa27-Jan-09 21:15
Mustafa Ismail Mustafa27-Jan-09 21:15 
GeneralRe: Autoincrement per field Pin
Wendelius27-Jan-09 21:49
mentorWendelius27-Jan-09 21:49 
GeneralRe: Autoincrement per field Pin
Mustafa Ismail Mustafa28-Jan-09 1:16
Mustafa Ismail Mustafa28-Jan-09 1:16 
GeneralRe: Autoincrement per field Pin
Wendelius28-Jan-09 1:24
mentorWendelius28-Jan-09 1:24 
GeneralRe: Autoincrement per field Pin
Mustafa Ismail Mustafa28-Jan-09 1:28
Mustafa Ismail Mustafa28-Jan-09 1:28 
GeneralRe: Autoincrement per field Pin
Wendelius28-Jan-09 1:43
mentorWendelius28-Jan-09 1:43 
Questionhow the oracle packages are implemeted in the sql server Pin
lakshmichawala27-Jan-09 17:33
lakshmichawala27-Jan-09 17:33 
AnswerRe: how the oracle packages are implemeted in the sql server Pin
Wendelius27-Jan-09 19:44
mentorWendelius27-Jan-09 19:44 
GeneralRe: how the oracle packages are implemeted in the sql server Pin
lakshmichawala27-Jan-09 20:21
lakshmichawala27-Jan-09 20:21 
GeneralRe: how the oracle packages are implemeted in the sql server Pin
Wendelius27-Jan-09 20:33
mentorWendelius27-Jan-09 20:33 
QuestionSimultaneous access to MS Access Pin
Member 382292227-Jan-09 12:20
Member 382292227-Jan-09 12:20 
AnswerRe: Simultaneous access to MS Access Pin
Wendelius27-Jan-09 12:46
mentorWendelius27-Jan-09 12:46 
GeneralRe: Simultaneous access to MS Access Pin
Member 38229225-Feb-09 13:48
Member 38229225-Feb-09 13:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.