Click here to Skip to main content
11,717,126 members (79,840 online)
   

Database

 
GeneralRe: Bug in SQLBulkCopy? Truncates decimal digits after 26 records Pin
Mycroft Holmes14-Oct-12 15:06
memberMycroft Holmes14-Oct-12 15:06 
GeneralRe: Bug in SQLBulkCopy? Truncates decimal digits after 26 records Pin
Allan Watkins14-Oct-12 19:36
memberAllan Watkins14-Oct-12 19:36 
GeneralThe "bug" is actually in the Fill() method Pin
Allan Watkins16-Oct-12 16:09
memberAllan Watkins16-Oct-12 16:09 
AnswerRe: Bug in SQLBulkCopy? Truncates decimal digits after 26 records Pin
Aadhar Joshi17-Oct-12 1:31
memberAadhar Joshi17-Oct-12 1:31 
QuestionConfigure SQL Server 2005 Remote Access Pin
Kevin Marois11-Oct-12 11:35
memberKevin Marois11-Oct-12 11:35 
AnswerRe: Configure SQL Server 2005 Remote Access Pin
Marcus Kramer11-Oct-12 12:06
memberMarcus Kramer11-Oct-12 12:06 
AnswerRe: Configure SQL Server 2005 Remote Access Pin
Eddy Vluggen11-Oct-12 12:37
memberEddy Vluggen11-Oct-12 12:37 
AnswerRe: Configure SQL Server 2005 Remote Access Pin
Bernhard Hiller12-Oct-12 3:24
memberBernhard Hiller12-Oct-12 3:24 
QuestionGlobal Database Design for example to store Addresses Pin
LiQuick10-Oct-12 21:38
memberLiQuick10-Oct-12 21:38 
AnswerRe: Global Database Design for example to store Addresses Pin
Jörgen Andersson10-Oct-12 22:59
memberJörgen Andersson10-Oct-12 22:59 
GeneralRe: Global Database Design for example to store Addresses Pin
Eddy Vluggen10-Oct-12 23:48
memberEddy Vluggen10-Oct-12 23:48 
GeneralRe: Global Database Design for example to store Addresses Pin
Jörgen Andersson11-Oct-12 0:16
memberJörgen Andersson11-Oct-12 0:16 
GeneralRe: Global Database Design for example to store Addresses Pin
J4amieC11-Oct-12 0:36
memberJ4amieC11-Oct-12 0:36 
AnswerRe: Global Database Design for example to store Addresses Pin
ihoecken10-Oct-12 23:04
memberihoecken10-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 Addresses Pin
Eddy Vluggen11-Oct-12 0:44
memberEddy Vluggen11-Oct-12 0:44 
GeneralRe: Global Database Design for example to store Addresses Pin
Jörgen Andersson11-Oct-12 1:36
memberJörgen Andersson11-Oct-12 1:36 
GeneralRe: Global Database Design for example to store Addresses Pin
Eddy Vluggen11-Oct-12 1:51
memberEddy Vluggen11-Oct-12 1:51 
GeneralRe: Global Database Design for example to store Addresses Pin
Jörgen Andersson11-Oct-12 1:59
memberJörgen Andersson11-Oct-12 1:59 
GeneralRe: Global Database Design for example to store Addresses Pin
Eddy Vluggen11-Oct-12 4:42
memberEddy Vluggen11-Oct-12 4:42 
GeneralRe: Global Database Design for example to store Addresses Pin
Jörgen Andersson11-Oct-12 8:24
memberJörgen Andersson11-Oct-12 8:24 
GeneralRe: Global Database Design for example to store Addresses Pin
Eddy Vluggen11-Oct-12 10:09
memberEddy Vluggen11-Oct-12 10:09 
AnswerRe: Global Database Design for example to store Addresses Pin
jschell11-Oct-12 9:20
memberjschell11-Oct-12 9:20 
AnswerTHX: Global Database Design for example to store Addresses Pin
LiQuick12-Oct-12 4:21
memberLiQuick12-Oct-12 4:21 
GeneralRe: THX: Global Database Design for example to store Addresses Pin
Eddy Vluggen12-Oct-12 5:37
memberEddy Vluggen12-Oct-12 5:37 
GeneralRe: THX: Global Database Design for example to store Addresses Pin
Jörgen Andersson12-Oct-12 8:15
memberJörgen Andersson12-Oct-12 8:15 
GeneralRe: THX: Global Database Design for example to store Addresses Pin
Eddy Vluggen12-Oct-12 10:54
memberEddy Vluggen12-Oct-12 10:54 
GeneralRe: THX: Global Database Design for example to store Addresses Pin
Jörgen Andersson12-Oct-12 11:34
memberJörgen Andersson12-Oct-12 11:34 
GeneralRe: THX: Global Database Design for example to store Addresses Pin
Eddy Vluggen12-Oct-12 13:38
memberEddy Vluggen12-Oct-12 13:38 
QuestionGet Filename and import fixed width file Pin
ReallyDumbDudee10-Oct-12 10:15
memberReallyDumbDudee10-Oct-12 10:15 
AnswerRe: Get Filename and import fixed width file Pin
Eddy Vluggen11-Oct-12 12:51
memberEddy Vluggen11-Oct-12 12:51 
QuestionRe: Get Filename and import fixed width file Pin
ReallyDumbDudee11-Oct-12 13:56
memberReallyDumbDudee11-Oct-12 13:56 
AnswerRe: Get Filename and import fixed width file Pin
Eddy Vluggen12-Oct-12 1:04
memberEddy Vluggen12-Oct-12 1:04 
Answer. Pin
SQL Ed10-Oct-12 8:21
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. Pin
Eddy Vluggen10-Oct-12 9:26
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. Pin
SQL Ed10-Oct-12 13:15
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. Pin
mark merrens10-Oct-12 13:28
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. Pin
Jörgen Andersson10-Oct-12 22:26
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. Pin
Shameel11-Oct-12 0:27
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. Pin
Eddy Vluggen11-Oct-12 0:35
memberEddy Vluggen11-Oct-12 0:35 
QuestionHow to retrieve client IP address from sql server database Pin
Tridip Bhattacharjee9-Oct-12 20:53
memberTridip Bhattacharjee9-Oct-12 20:53 
AnswerRe: How to retrieve client IP address from sql server database Pin
digimanus10-Oct-12 1:20
memberdigimanus10-Oct-12 1:20 
QuestionMySQL code- Problems with cade when inside a WHERE clause Pin
SQL Ed9-Oct-12 11:31
memberSQL Ed9-Oct-12 11:31 
AnswerRe: MySQL code- Problems with cade when inside a WHERE clause Pin
Jörgen Andersson9-Oct-12 11:47
memberJörgen Andersson9-Oct-12 11:47 
QuestionDatabase connectivity failure when using ODBC Pin
bharath_ben9-Oct-12 3:16
memberbharath_ben9-Oct-12 3:16 
AnswerRe: Database connectivity failure when using ODBC Pin
Jochen Arndt9-Oct-12 3:43
memberJochen Arndt9-Oct-12 3:43 
GeneralRe: Database connectivity failure when using ODBC Pin
bharath_ben28-Nov-12 3:46
memberbharath_ben28-Nov-12 3:46 
QuestionSQL counting Pin
Qazzy648-Oct-12 8:27
memberQazzy648-Oct-12 8:27 
AnswerRe: SQL counting Pin
scottgp8-Oct-12 9:33
memberscottgp8-Oct-12 9:33 
GeneralRe: SQL counting Pin
Qazzy648-Oct-12 10:07
memberQazzy648-Oct-12 10:07 
QuestionRe: SQL counting Pin
Eddy Vluggen8-Oct-12 13:25
memberEddy Vluggen8-Oct-12 13:25 

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

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.150901.1 | Last Updated 3 Sep 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid