Click here to Skip to main content
15,886,788 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralRe: Why stick to just one database? Pin
AlexCode19-Jun-13 20:23
professionalAlexCode19-Jun-13 20:23 
GeneralRe: Why stick to just one database? Pin
Adriaan Davel19-Jun-13 21:55
Adriaan Davel19-Jun-13 21:55 
AnswerRe: Why stick to just one database? Pin
Gaston Verelst19-Jun-13 20:28
Gaston Verelst19-Jun-13 20:28 
GeneralRe: Why stick to just one database? Pin
cjb11019-Jun-13 21:15
cjb11019-Jun-13 21:15 
GeneralRe: Why stick to just one database? Pin
johnsyd25-Jun-13 15:01
johnsyd25-Jun-13 15:01 
GeneralRe: Why stick to just one database? Pin
Adriaan Davel19-Jun-13 21:59
Adriaan Davel19-Jun-13 21:59 
GeneralRe: Why stick to just one database? Pin
Richard Deeming20-Jun-13 1:30
mveRichard Deeming20-Jun-13 1:30 
GeneralRe: Why stick to just one database? Pin
jim lahey20-Jun-13 2:04
jim lahey20-Jun-13 2:04 
I've seen a system spec written up that required the developer to use SMO to create user-specific tables for each new user in a SQL database, e.g.

[dbo].[JohnSmith_Orders]

[dbo].[JohnSmith_Profile]

[dbo].[JohnSmith_Settings]

I think you get the idea. The reasoning behind it?

"Each user gets their own sub-schema so that no user data leaks into another user"

Surely the best way of preventing this would be to have a separate app for each user?

There are people out there who should not be trusted with crayons. stuff like this is proof that yes, you really can get your dick caught in a ceiling fan. you just need to try hard enough.
GeneralRe: Why stick to just one database? Pin
NeverJustHere20-Jun-13 19:29
NeverJustHere20-Jun-13 19:29 
GeneralRe: Why stick to just one database? Pin
johnsyd25-Jun-13 15:15
johnsyd25-Jun-13 15:15 
GeneralRe: Why stick to just one database? Pin
johnsyd25-Jun-13 15:10
johnsyd25-Jun-13 15:10 
GeneralHow To Use Session Variables Pin
AnalogNerd18-Jun-13 3:43
AnalogNerd18-Jun-13 3:43 
GeneralRe: How To Use Session Variables PinPopular
OriginalGriff18-Jun-13 5:04
mveOriginalGriff18-Jun-13 5:04 
GeneralRe: How To Use Session Variables Pin
imagiro19-Jun-13 7:53
imagiro19-Jun-13 7:53 
GeneralRe: How To Use Session Variables Pin
AnalogNerd19-Jun-13 7:56
AnalogNerd19-Jun-13 7:56 
GeneralRe: How To Use Session Variables Pin
imagiro19-Jun-13 21:55
imagiro19-Jun-13 21:55 
GeneralRe: How To Use Session Variables Pin
ClockMeister20-Jun-13 2:03
professionalClockMeister20-Jun-13 2:03 
GeneralRe: How To Use Session Variables Pin
BrainiacV20-Jun-13 5:44
BrainiacV20-Jun-13 5:44 
GeneralRe: How To Use Session Variables Pin
jcmaida20-Jun-13 6:10
jcmaida20-Jun-13 6:10 
GeneralRe: How To Use Session Variables Pin
Bob100020-Jun-13 4:44
professionalBob100020-Jun-13 4:44 
GeneralRe: How To Use Session Variables Pin
User 483504720-Jun-13 3:25
User 483504720-Jun-13 3:25 
GeneralRe: How To Use Session Variables Pin
RafagaX20-Jun-13 4:44
professionalRafagaX20-Jun-13 4:44 
GeneralRe: How To Use Session Variables Pin
Member 882490521-Jun-13 3:28
Member 882490521-Jun-13 3:28 
GeneralRe: How To Use Session Variables Pin
AnalogNerd21-Jun-13 4:01
AnalogNerd21-Jun-13 4:01 
GeneralA Brilliant Replacement of float.toFixed(2) Pin
TNCaver17-Jun-13 9:25
TNCaver17-Jun-13 9:25 

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.