Click here to Skip to main content
15,922,015 members
Home / Discussions / Database
   

Database

 
AnswerRe: Can't connect to local Sql Server database. Invalid connection string. Pin
Not Active15-Sep-06 4:02
mentorNot Active15-Sep-06 4:02 
GeneralRe: Can't connect to local Sql Server database. Invalid connection string. Pin
yetanotherchris15-Sep-06 4:17
yetanotherchris15-Sep-06 4:17 
GeneralRe: Can't connect to local Sql Server database. Invalid connection string. Pin
Goalie3515-Sep-06 4:31
Goalie3515-Sep-06 4:31 
GeneralRe: Can't connect to local Sql Server database. Invalid connection string. Pin
i.j.russell15-Sep-06 5:27
i.j.russell15-Sep-06 5:27 
QuestionTo set an existing column to currency Pin
muchinyani14-Sep-06 23:32
muchinyani14-Sep-06 23:32 
AnswerRe: To set an existing column to currency Pin
Stephen McGuire15-Sep-06 2:36
Stephen McGuire15-Sep-06 2:36 
QuestionAlternative to a lookup table Pin
yetanotherchris14-Sep-06 22:42
yetanotherchris14-Sep-06 22:42 
AnswerRe: Alternative to a lookup table Pin
i.j.russell14-Sep-06 23:21
i.j.russell14-Sep-06 23:21 
Welcome to the wonderfull world of relational databases!

This is the most efficient, and the most sensible, way to store this information. Whilst 2 million records may seem a lot, it really isn't. Inserting and deleting will not be noticably slower when the table has many rows than when the table has few rows in it.

The alternative to this structure would be to use a denormalised table that has the person_name and location_name stored. Not only does this arrangement require more storage space, but what happens if:
1. You need to change the name of a location or person?
2. Two or more people have the same name?

BTW, you only need a single non-clustered index on the personid and locationid fields as I assume that the combination would be unique.

Ian
GeneralRe: Alternative to a lookup table Pin
yetanotherchris14-Sep-06 23:27
yetanotherchris14-Sep-06 23:27 
GeneralRe: Alternative to a lookup table Pin
i.j.russell15-Sep-06 5:35
i.j.russell15-Sep-06 5:35 
QuestionNew to SQL, trying to retrieve data with VB.NET Pin
Wazr809814-Sep-06 18:41
Wazr809814-Sep-06 18:41 
AnswerRe: New to SQL, trying to retrieve data with VB.NET Pin
srushti0814-Sep-06 21:00
srushti0814-Sep-06 21:00 
AnswerRe: New to SQL, trying to retrieve data with VB.NET Pin
Michael P Butler15-Sep-06 21:05
Michael P Butler15-Sep-06 21:05 
QuestionLet a paramter calculate it's own size Pin
monrobot1314-Sep-06 16:43
monrobot1314-Sep-06 16:43 
AnswerRe: Let a paramter calculate it's own size Pin
Michael Potter15-Sep-06 4:46
Michael Potter15-Sep-06 4:46 
GeneralRe: Let a paramter calculate it's own size Pin
monrobot1315-Sep-06 11:07
monrobot1315-Sep-06 11:07 
GeneralRe: Let a paramter calculate it's own size Pin
Rob Graham17-Sep-06 5:41
Rob Graham17-Sep-06 5:41 
Questionjoins Pin
srushti0814-Sep-06 8:56
srushti0814-Sep-06 8:56 
AnswerRe: joins Pin
Chris Meech14-Sep-06 9:26
Chris Meech14-Sep-06 9:26 
QuestionWhen you delete a table,its strututral definition,data,indexes,views,constraints are permanently deleted from a database? Pin
srushti0814-Sep-06 8:52
srushti0814-Sep-06 8:52 
AnswerRe: When you delete a table,its strututral definition,data,indexes,views,constraints are permanently deleted from a database? Pin
Stephen McGuire14-Sep-06 9:11
Stephen McGuire14-Sep-06 9:11 
AnswerRe: When you delete a table,its strututral definition,data,indexes,views,constraints are permanently deleted from a database? Pin
Rob Graham14-Sep-06 10:55
Rob Graham14-Sep-06 10:55 
AnswerRe: When you delete a table,its strututral definition,data,indexes,views,constraints are permanently deleted from a database? Pin
yetanotherchris15-Sep-06 4:20
yetanotherchris15-Sep-06 4:20 
QuestionConvert Access VBA module to SQL udf Pin
Guytz14-Sep-06 3:38
Guytz14-Sep-06 3:38 
QuestionHow can I insert byte array variable in sql server ? Pin
Orchid8513-Sep-06 23:20
Orchid8513-Sep-06 23:20 

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.