Click here to Skip to main content
       

Database

 
Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page  Show 
GeneralRe: Bug in SQLBulkCopy? Truncates decimal digits after 26 recordsmemberAllan Watkins14 Oct '12 - 19:36 
GeneralThe "bug" is actually in the Fill() methodmemberAllan Watkins16 Oct '12 - 16:09 
AnswerRe: Bug in SQLBulkCopy? Truncates decimal digits after 26 recordsmemberAadhar Joshi17 Oct '12 - 1:31 
QuestionConfigure SQL Server 2005 Remote Access [modified]memberKevin Marois11 Oct '12 - 11:35 
AnswerRe: Configure SQL Server 2005 Remote AccessmemberMarcus Kramer11 Oct '12 - 12:06 
AnswerRe: Configure SQL Server 2005 Remote AccessmemberEddy Vluggen11 Oct '12 - 12:37 
AnswerRe: Configure SQL Server 2005 Remote AccessmemberBernhard Hiller12 Oct '12 - 3:24 
QuestionGlobal Database Design for example to store AddressesmemberLiQuick10 Oct '12 - 21:38 
AnswerRe: Global Database Design for example to store Addresses [modified]memberJörgen Andersson10 Oct '12 - 22:59 
GeneralRe: Global Database Design for example to store AddressesmemberEddy Vluggen10 Oct '12 - 23:48 
GeneralRe: Global Database Design for example to store AddressesmemberJörgen Andersson11 Oct '12 - 0:16 
GeneralRe: Global Database Design for example to store AddressesmemberJ4amieC11 Oct '12 - 0:36 
AnswerRe: Global Database Design for example to store Addressesmemberihoecken10 Oct '12 - 23:04 
Well there are of course different ways. One way is to create a dynamic database:
 
Create a adress-table with fields: DataId INT, FieldName VARCHAR(X), FieldValue VARCHAR(Y) or BINARY
Index is (DataId, FieldName)
 
Instead of storing "New York" in a column "CITY" you store "City" in "FieldName" and "New York" in FieldValue".
 
You can also define Field-Groups: like "Adress" which my occur more than one time, by adding another column Line INT, that allows to store an Address 1, Adress 2, ..., Adress n and of course a Phone 1, Phone 2, ..., Phone n
 
If n isn't large enough you can even store x values Wink | ;)
 
This way ain't efficient for tables with a lot of complex queries, but I think you don't need to have comples queries here, so the responde-time should be good enough in this case.
------------------------------
Author of Primary ROleplaying SysTem
 
How do I take my coffee? Black as midnight on a moonless night.
War doesn't determine who's right. War determines who's left.

AnswerRe: Global Database Design for example to store AddressesmemberEddy Vluggen11 Oct '12 - 0:44 
GeneralRe: Global Database Design for example to store AddressesmemberJörgen Andersson11 Oct '12 - 1:36 
GeneralRe: Global Database Design for example to store AddressesmemberEddy Vluggen11 Oct '12 - 1:51 
GeneralRe: Global Database Design for example to store AddressesmemberJörgen Andersson11 Oct '12 - 1:59 
GeneralRe: Global Database Design for example to store AddressesmemberEddy Vluggen11 Oct '12 - 4:42 
GeneralRe: Global Database Design for example to store AddressesmemberJörgen Andersson11 Oct '12 - 8:24 
GeneralRe: Global Database Design for example to store AddressesmemberEddy Vluggen11 Oct '12 - 10:09 
AnswerRe: Global Database Design for example to store Addressesmemberjschell11 Oct '12 - 9:20 
AnswerTHX: Global Database Design for example to store AddressesmemberLiQuick12 Oct '12 - 4:21 
GeneralRe: THX: Global Database Design for example to store AddressesmemberEddy Vluggen12 Oct '12 - 5:37 
GeneralRe: THX: Global Database Design for example to store AddressesmemberJörgen Andersson12 Oct '12 - 8:15 
GeneralRe: THX: Global Database Design for example to store AddressesmemberEddy Vluggen12 Oct '12 - 10:54 
GeneralRe: THX: Global Database Design for example to store AddressesmemberJörgen Andersson12 Oct '12 - 11:34 
GeneralRe: THX: Global Database Design for example to store AddressesmemberEddy Vluggen12 Oct '12 - 13:38 
QuestionGet Filename and import fixed width filememberReallyDumbDudee10 Oct '12 - 10:15 
AnswerRe: Get Filename and import fixed width filememberEddy Vluggen11 Oct '12 - 12:51 
QuestionRe: Get Filename and import fixed width filememberReallyDumbDudee11 Oct '12 - 13:56 
AnswerRe: Get Filename and import fixed width filememberEddy Vluggen12 Oct '12 - 1:04 
Answer. [modified]memberSQL Ed10 Oct '12 - 8:21 
AnswerRe: tried to use a case when inside a WHERE clause but did not work. Need more efficient way to cover all IF ELSE scenarios.memberEddy Vluggen10 Oct '12 - 9:26 
GeneralRe: tried to use a case when inside a WHERE clause but did not work. Need more efficient way to cover all IF ELSE scenarios.memberSQL Ed10 Oct '12 - 13:15 
GeneralRe: tried to use a case when inside a WHERE clause but did not work. Need more efficient way to cover all IF ELSE scenarios.membermark merrens10 Oct '12 - 13:28 
GeneralRe: tried to use a case when inside a WHERE clause but did not work. Need more efficient way to cover all IF ELSE scenarios.memberJörgen Andersson10 Oct '12 - 22:26 
GeneralRe: tried to use a case when inside a WHERE clause but did not work. Need more efficient way to cover all IF ELSE scenarios.memberShameel11 Oct '12 - 0:27 
GeneralRe: tried to use a case when inside a WHERE clause but did not work. Need more efficient way to cover all IF ELSE scenarios.memberEddy Vluggen11 Oct '12 - 0:35 
QuestionHow to retrieve client IP address from sql server databasememberTridip Bhattacharjee9 Oct '12 - 20:53 
AnswerRe: How to retrieve client IP address from sql server databasememberdigimanus10 Oct '12 - 1:20 
QuestionMySQL code- Problems with cade when inside a WHERE clausememberSQL Ed9 Oct '12 - 11:31 
AnswerRe: MySQL code- Problems with cade when inside a WHERE clausememberJörgen Andersson9 Oct '12 - 11:47 
QuestionDatabase connectivity failure when using ODBCmemberbharath_ben9 Oct '12 - 3:16 
AnswerRe: Database connectivity failure when using ODBCmemberJochen Arndt9 Oct '12 - 3:43 
GeneralRe: Database connectivity failure when using ODBCmemberbharath_ben28 Nov '12 - 3:46 
QuestionSQL countingmemberQazzy648 Oct '12 - 8:27 
AnswerRe: SQL countingmemberscottgp8 Oct '12 - 9:33 
GeneralRe: SQL countingmemberQazzy648 Oct '12 - 10:07 
QuestionRe: SQL countingmemberEddy Vluggen8 Oct '12 - 13:25 
AnswerRe: SQL countingmemberQazzy648 Oct '12 - 17:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   


Advertise | Privacy | Mobile
Web04 | 2.6.130516.1 | Last Updated 21 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid