Click here to Skip to main content
15,887,135 members

The Insider News

   

The Insider News is for breaking IT and Software development news. Post your news, your alerts and your inside scoops. This is an IT news-only forum - all off-topic, non-news posts will be removed. If you wish to ask a programming question please post it here.

Get The Daily Insider direct to your mailbox every day. Subscribe now!

 
NewsedX - Education of the future Pin
Alexander DiMauro3-May-12 4:45
Alexander DiMauro3-May-12 4:45 
NewsMicrosoft opens New York research lab, hires mainly Yahoo researchers Pin
atbennett3-May-12 4:07
atbennett3-May-12 4:07 
NewsA Coder Interview With Matthew Brand Pin
Terrence Dorsey2-May-12 10:37
sitebuilderTerrence Dorsey2-May-12 10:37 
NewsThree things you should never put in your database Pin
Terrence Dorsey2-May-12 10:36
sitebuilderTerrence Dorsey2-May-12 10:36 
GeneralRe: Three things you should never put in your database Pin
PIEBALDconsult2-May-12 12:17
mvePIEBALDconsult2-May-12 12:17 
GeneralRe: Three things you should never put in your database Pin
AspDotNetDev2-May-12 17:26
protectorAspDotNetDev2-May-12 17:26 
GeneralRe: Three things you should never put in your database Pin
PIEBALDconsult3-May-12 3:22
mvePIEBALDconsult3-May-12 3:22 
GeneralRe: Three things you should never put in your database Pin
AspDotNetDev3-May-12 7:48
protectorAspDotNetDev3-May-12 7:48 
That is a good situation a queue would be good for. In the event that logging fails, the queue could keep the logged item and retry later. Or it could write to an alternate medium, such as the file system, email, or the Windows event log. However, logging is not always that essential and not many people put that much effort into it, so it seems like it'd be acceptable to just drop the log event as it'd probably obvious when a connection to the database cannot be made.

Another useful reason to store to a database is when there are multiple servers, such as in a load balanced scenario. Rather than having to remote into each computer, which requires developers be given access to those machines, they can just query a single database. Another situation where logging to the file system would be less than ideal is Azure, as I'm not even sure if you can inspect the file system without writing code to do so and Azure makes no assurance that files will be retained (if the machine goes kaput, the deploy package will be sent to a new machine).

And regarding order, that can be maintained using an identity field.

GeneralRe: Three things you should never put in your database Pin
PIEBALDconsult4-May-12 8:41
mvePIEBALDconsult4-May-12 8:41 
GeneralRe: Three things you should never put in your database Pin
AspDotNetDev4-May-12 8:52
protectorAspDotNetDev4-May-12 8:52 
GeneralRe: Three things you should never put in your database Pin
Not Active3-May-12 2:03
mentorNot Active3-May-12 2:03 
GeneralDon't take it seriously... Pin
Dave Kerr2-May-12 22:57
mentorDave Kerr2-May-12 22:57 
GeneralI'm right. I'm always right. For every situation. Pin
Chris Maunder3-May-12 7:16
cofounderChris Maunder3-May-12 7:16 
GeneralRe: I'm right. I'm always right. For every situation. Pin
AspDotNetDev3-May-12 7:36
protectorAspDotNetDev3-May-12 7:36 
NewsBest Practices Exist for a Reason Pin
Terrence Dorsey2-May-12 10:36
sitebuilderTerrence Dorsey2-May-12 10:36 
GeneralRe: Best Practices Exist for a Reason Pin
PIEBALDconsult2-May-12 12:06
mvePIEBALDconsult2-May-12 12:06 
GeneralRe: Best Practices Exist for a Reason Pin
AspDotNetDev2-May-12 17:38
protectorAspDotNetDev2-May-12 17:38 
GeneralRe: Best Practices Exist for a Reason Pin
Not Active3-May-12 2:09
mentorNot Active3-May-12 2:09 
GeneralRe: Best Practices Exist for a Reason Pin
chuckforest3-May-12 2:35
chuckforest3-May-12 2:35 
NewsCSS: The Good Parts Pin
Terrence Dorsey2-May-12 10:35
sitebuilderTerrence Dorsey2-May-12 10:35 
NewsMy Coding Style and Guidelines Pin
Terrence Dorsey2-May-12 10:34
sitebuilderTerrence Dorsey2-May-12 10:34 
NewsViewport Sized Typography Pin
Terrence Dorsey2-May-12 10:33
sitebuilderTerrence Dorsey2-May-12 10:33 
NewsFinally, a Shark With a Laser Pin
Terrence Dorsey2-May-12 10:33
sitebuilderTerrence Dorsey2-May-12 10:33 
NewsAndroid fans: pay for your apps, please Pin
Terrence Dorsey2-May-12 10:32
sitebuilderTerrence Dorsey2-May-12 10:32 
NewsRIM To Developers: We’ll Make Sure Your App Earns At Least $10K In Its First Year Pin
Terrence Dorsey2-May-12 10:32
sitebuilderTerrence Dorsey2-May-12 10:32 

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.