Click here to Skip to main content
15,917,481 members
Home / Discussions / Database
   

Database

 
QuestionSql String Pin
sonicsqwirl2-Mar-06 7:47
sonicsqwirl2-Mar-06 7:47 
AnswerRe: Sql String Pin
Colin Angus Mackay2-Mar-06 8:16
Colin Angus Mackay2-Mar-06 8:16 
Questionusing an MDB file on a system that does not have Microsoft Access Pin
pmglick2-Mar-06 7:06
pmglick2-Mar-06 7:06 
AnswerRe: using an MDB file on a system that does not have Microsoft Access Pin
Rob Graham2-Mar-06 7:29
Rob Graham2-Mar-06 7:29 
QuestionC# SqlServer Stored Procedure Pin
sonicsqwirl2-Mar-06 6:50
sonicsqwirl2-Mar-06 6:50 
AnswerRe: C# SqlServer Stored Procedure Pin
Jon Sagara2-Mar-06 8:16
Jon Sagara2-Mar-06 8:16 
QuestionSQL storage of same string repeated many times Pin
Brian Perrin2-Mar-06 6:28
Brian Perrin2-Mar-06 6:28 
AnswerRe: SQL storage of same string repeated many times Pin
Colin Angus Mackay2-Mar-06 8:23
Colin Angus Mackay2-Mar-06 8:23 
Brian Perrin wrote:
Does SQL do some smart things storing the same few strings many times?


Nope.


Brian Perrin wrote:
Or should I suck it up and store the enum as a tinyint?


Yes. And welcome to the 5th normal form (If I remember my Database lectures)

Actually, saying "Yes" is not necessarily the correct answer. While your enum table is likely to be small and will probably only take one SQL Server page* which means its access will be very efficient, you may find that in certain situations this can slow down your application. For example in reporting situations it is normally better to have a slightly denormalised data model. The real answer lies in how you intend to use the data. Having said all that, in general the more normalised your data the better.

* SQL Server stores data in pages of 8K each. Well, you get a little less than that and SQL Server takes the rest for its own uses. Each page is one of 8 in an extent (total 64K in an extent) and it in those chunks that SQL Server accesses data from the disk

ColinMackay.net
Scottish Developers are looking for speakers for user group sessions over the next few months. Do you want to know more?

Questionhow to get latest usage time per pc Pin
batmanAgen2-Mar-06 3:47
batmanAgen2-Mar-06 3:47 
AnswerRe: how to get latest usage time per pc Pin
kageorge2-Mar-06 23:38
kageorge2-Mar-06 23:38 
GeneralRe: how to get latest usage time per pc Pin
batmanAgen3-Mar-06 0:00
batmanAgen3-Mar-06 0:00 
QuestionQuery About NULL Pin
Subramaniam s.V.2-Mar-06 1:06
Subramaniam s.V.2-Mar-06 1:06 
AnswerRe: Query About NULL Pin
Dave Mavin2-Mar-06 1:33
Dave Mavin2-Mar-06 1:33 
AnswerRe: Query About NULL Pin
Dave Mavin2-Mar-06 1:52
Dave Mavin2-Mar-06 1:52 
QuestionTo pass parameters in Data Access Application Block.. Pin
MudkiSekhon2-Mar-06 1:02
MudkiSekhon2-Mar-06 1:02 
QuestionTier Development : DataSets Pin
Dave Mavin1-Mar-06 23:52
Dave Mavin1-Mar-06 23:52 
AnswerRe: Tier Development : DataSets Pin
cbhkenshin_home2-Mar-06 8:06
cbhkenshin_home2-Mar-06 8:06 
GeneralRe: Tier Development : DataSets Pin
Dave Mavin3-Mar-06 0:21
Dave Mavin3-Mar-06 0:21 
GeneralRe: Tier Development : DataSets Pin
Dave Mavin3-Mar-06 3:51
Dave Mavin3-Mar-06 3:51 
QuestionJoin SELECT statements? Pin
myNameIsRon1-Mar-06 20:41
myNameIsRon1-Mar-06 20:41 
AnswerRe: Join SELECT statements? Pin
Colin Angus Mackay1-Mar-06 21:04
Colin Angus Mackay1-Mar-06 21:04 
GeneralRe: Join SELECT statements? Pin
myNameIsRon3-Mar-06 5:33
myNameIsRon3-Mar-06 5:33 
QuestionCreate index using ADO.NET??? Pin
wasife1-Mar-06 17:16
wasife1-Mar-06 17:16 
AnswerRe: Create index using ADO.NET??? Pin
Colin Angus Mackay1-Mar-06 20:43
Colin Angus Mackay1-Mar-06 20:43 
GeneralRe: Create index using ADO.NET??? Pin
Paul Conrad2-Mar-06 5:35
professionalPaul Conrad2-Mar-06 5:35 

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.