Click here to Skip to main content
15,892,965 members
Home / Discussions / Database
   

Database

 
Questionunable to connect to sql-server [modified] Pin
Tom Deketelaere24-Jun-08 4:09
professionalTom Deketelaere24-Jun-08 4:09 
Questionhow to use FBExport Command tool Pin
avvaru.murali24-Jun-08 3:02
avvaru.murali24-Jun-08 3:02 
RantRe: how to use FBExport Command tool Pin
Ashfield24-Jun-08 3:42
Ashfield24-Jun-08 3:42 
QuestionSql Server Registration Pin
harish.k1223-Jun-08 22:46
harish.k1223-Jun-08 22:46 
AnswerRe: Sql Server Registration Pin
Ashfield24-Jun-08 1:12
Ashfield24-Jun-08 1:12 
QuestionHow to use FBExport tool. Pin
avvaru.murali23-Jun-08 20:45
avvaru.murali23-Jun-08 20:45 
AnswerRe: How to use FBExport tool. Pin
Ashfield23-Jun-08 21:38
Ashfield23-Jun-08 21:38 
QuestionAnother DB design question: Pin
alex3_1423-Jun-08 3:50
alex3_1423-Jun-08 3:50 
If I had three tables (the 3T) called Building, Floor, and Room (the data is what you'd probably expect) and I wanted to be able to manage inactive periods (or permanent shut-downs) of any one record in any of those tables, what would be the best way to do it?

My first thought (which doesn't seem elegant) was to create an inactiveId field in the 3T, referencing an Inactive table which would store the beginDate, endDate (if any), and inactivityReason. Now consider a floor is scheduled to undergo renovations from January 10th to February 10th and one of the rooms of that same floor is scheduled for a permanent installation of WiFi and AC outlets for every desk from January 2nd to January 29th.

Should I store the fields buildingId, floorId, and roomId in the Inactive table or is the inactiveId in the 3T enough? Should I create a trigger (or a scheduled function) to remove any "expired" inactiveId from the 3T (i.e. the affected room would have a null inactiveId on January 30th and the affected floor would follow suit on February 11th)?

If the above is completely wrongheaded, please let me know. I'm not a dba, just a lowly programmer. And, since I want to design it to be easy to use for future programmers, I don't need everything to be strictly normalized if there's a usability payoff for the end user (although my instincts are to usually go up to 3NF and 2NF).

Alex

AnswerRe: Another DB design question: Pin
Ennis Ray Lynch, Jr.23-Jun-08 3:53
Ennis Ray Lynch, Jr.23-Jun-08 3:53 
AnswerRe: Another DB design question: Pin
Michael Potter23-Jun-08 9:02
Michael Potter23-Jun-08 9:02 
AnswerRe: Another DB design question: Pin
Mycroft Holmes27-Jun-08 3:59
professionalMycroft Holmes27-Jun-08 3:59 
QuestionPerformance question Pin
Ennis Ray Lynch, Jr.23-Jun-08 3:27
Ennis Ray Lynch, Jr.23-Jun-08 3:27 
AnswerRe: Performance question Pin
Mike Dimmick23-Jun-08 4:24
Mike Dimmick23-Jun-08 4:24 
GeneralRe: Performance question Pin
Ennis Ray Lynch, Jr.23-Jun-08 4:35
Ennis Ray Lynch, Jr.23-Jun-08 4:35 
GeneralRe: Performance question Pin
Andy Brummer26-Jun-08 11:03
sitebuilderAndy Brummer26-Jun-08 11:03 
GeneralRe: Performance question Pin
Ennis Ray Lynch, Jr.26-Jun-08 11:18
Ennis Ray Lynch, Jr.26-Jun-08 11:18 
GeneralRe: Performance question Pin
Andy Brummer26-Jun-08 11:34
sitebuilderAndy Brummer26-Jun-08 11:34 
GeneralRe: Performance question Pin
Ennis Ray Lynch, Jr.26-Jun-08 11:40
Ennis Ray Lynch, Jr.26-Jun-08 11:40 
GeneralRe: Performance question Pin
Andy Brummer26-Jun-08 12:11
sitebuilderAndy Brummer26-Jun-08 12:11 
GeneralRe: Performance question Pin
Ennis Ray Lynch, Jr.26-Jun-08 12:21
Ennis Ray Lynch, Jr.26-Jun-08 12:21 
GeneralRe: Performance question Pin
Andy Brummer27-Jun-08 2:44
sitebuilderAndy Brummer27-Jun-08 2:44 
Questiondatetime query in SQL server Pin
laziale22-Jun-08 23:27
laziale22-Jun-08 23:27 
AnswerRe: datetime query in SQL server Pin
r aa j23-Jun-08 0:01
r aa j23-Jun-08 0:01 
AnswerRe: datetime query in SQL server Pin
Ashfield23-Jun-08 0:08
Ashfield23-Jun-08 0:08 
GeneralRe: datetime query in SQL server Pin
laziale23-Jun-08 0:19
laziale23-Jun-08 0:19 

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.