Click here to Skip to main content
15,790,440 members
Home / Discussions / Database
   

Database

 
QuestionCopying the Headers of Result Set of Select statement Pin
indian14324-Apr-18 10:05
indian14324-Apr-18 10:05 
AnswerRe: Copying the Headers of Result Set of Select statement Pin
JChrisCompton24-Apr-18 12:42
JChrisCompton24-Apr-18 12:42 
AnswerRe: Copying the Headers of Result Set of Select statement Pin
Mycroft Holmes24-Apr-18 13:53
professionalMycroft Holmes24-Apr-18 13:53 
GeneralRe: Copying the Headers of Result Set of Select statement Pin
indian14324-Apr-18 15:09
indian14324-Apr-18 15:09 
GeneralRe: Copying the Headers of Result Set of Select statement Pin
Mycroft Holmes24-Apr-18 15:32
professionalMycroft Holmes24-Apr-18 15:32 
GeneralRe: Copying the Headers of Result Set of Select statement Pin
indian14325-Apr-18 10:48
indian14325-Apr-18 10:48 
QuestionNaming my clustered index column which isn't the PK (and is a non-PK clustered Identity a good idea?) Pin
JChrisCompton20-Apr-18 12:55
JChrisCompton20-Apr-18 12:55 
AnswerRe: Naming my clustered index column which isn't the PK (and is a non-PK clustered Identity a good idea?) Pin
Victor Nijegorodov21-Apr-18 4:34
Victor Nijegorodov21-Apr-18 4:34 
JChrisCompton wrote:
SQL
CREATE TABLE [dbo].[table_name](
    [need_a_good_name_here] [int] IDENTITY(-1,-1) NOT NULL,  -- Adding this field
    [guid] [char](36) NOT NULL PRIMARY KEY NONCLUSTERED,
    ...
) ON [PRIMARY]

May I ask why you are using char rather than uniqueidentifier type?
GeneralRe: Naming my clustered index column which isn't the PK (and is a non-PK clustered Identity a good idea?) Pin
JChrisCompton23-Apr-18 4:00
JChrisCompton23-Apr-18 4:00 
AnswerRe: Naming my clustered index column which isn't the PK (and is a non-PK clustered Identity a good idea?) Pin
Eddy Vluggen23-Apr-18 6:19
professionalEddy Vluggen23-Apr-18 6:19 
AnswerRe: Naming my clustered index column which isn't the PK (and is a non-PK clustered Identity a good idea?) Pin
Jörgen Andersson23-Apr-18 22:58
professionalJörgen Andersson23-Apr-18 22:58 
GeneralRe: Naming my clustered index column which isn't the PK (and is a non-PK clustered Identity a good idea?) Pin
JChrisCompton24-Apr-18 12:21
JChrisCompton24-Apr-18 12:21 
GeneralRe: Naming my clustered index column which isn't the PK (and is a non-PK clustered Identity a good idea?) Pin
Eddy Vluggen25-Apr-18 1:41
professionalEddy Vluggen25-Apr-18 1:41 
GeneralRe: Naming my clustered index column which isn't the PK (and is a non-PK clustered Identity a good idea?) Pin
JChrisCompton25-Apr-18 5:40
JChrisCompton25-Apr-18 5:40 
GeneralRe: Naming my clustered index column which isn't the PK (and is a non-PK clustered Identity a good idea?) Pin
Eddy Vluggen25-Apr-18 6:33
professionalEddy Vluggen25-Apr-18 6:33 
GeneralRe: Naming my clustered index column which isn't the PK (and is a non-PK clustered Identity a good idea?) Pin
JChrisCompton30-Apr-18 6:30
JChrisCompton30-Apr-18 6:30 
GeneralRe: Naming my clustered index column which isn't the PK (and is a non-PK clustered Identity a good idea?) Pin
Eddy Vluggen30-Apr-18 6:58
professionalEddy Vluggen30-Apr-18 6:58 
GeneralRe: Naming my clustered index column which isn't the PK (and is a non-PK clustered Identity a good idea?) Pin
JChrisCompton30-Apr-18 8:35
JChrisCompton30-Apr-18 8:35 
GeneralRe: Naming my clustered index column which isn't the PK (and is a non-PK clustered Identity a good idea?) Pin
Eddy Vluggen30-Apr-18 9:13
professionalEddy Vluggen30-Apr-18 9:13 
GeneralRe: Naming my clustered index column which isn't the PK (and is a non-PK clustered Identity a good idea?) Pin
Jörgen Andersson25-Apr-18 3:15
professionalJörgen Andersson25-Apr-18 3:15 
GeneralRe: Naming my clustered index column which isn't the PK (and is a non-PK clustered Identity a good idea?) Pin
JChrisCompton25-Apr-18 6:47
JChrisCompton25-Apr-18 6:47 
GeneralRe: Naming my clustered index column which isn't the PK (and is a non-PK clustered Identity a good idea?) Pin
Jörgen Andersson25-Apr-18 11:49
professionalJörgen Andersson25-Apr-18 11:49 
PraiseRe: Naming my clustered index column which isn't the PK (and is a non-PK clustered Identity a good idea?) Pin
JChrisCompton26-Apr-18 5:17
JChrisCompton26-Apr-18 5:17 
QuestionEXCEPTIONS INTO Equivalent for SQL Server Pin
User 1205041720-Apr-18 5:59
User 1205041720-Apr-18 5:59 
AnswerRe: EXCEPTIONS INTO Equivalent for SQL Server Pin
Eddy Vluggen23-Apr-18 6:21
professionalEddy Vluggen23-Apr-18 6:21 

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.