Click here to Skip to main content
15,902,198 members
Home / Discussions / Database
   

Database

 
GeneralRe: sql server 2005 installation Pin
Spurple30-Jul-09 23:48
Spurple30-Jul-09 23:48 
AnswerRe: sql server 2005 installation Pin
Eddy Vluggen31-Jul-09 6:14
professionalEddy Vluggen31-Jul-09 6:14 
AnswerRe: sql server 2005 installation Pin
Jerry Hammond2-Aug-09 3:55
Jerry Hammond2-Aug-09 3:55 
AnswerRe: sql server 2005 installation Pin
Robin_Roy3-Aug-09 0:16
Robin_Roy3-Aug-09 0:16 
QuestionMS SQL 2005 - merge new rows and tables Pin
Member 469202330-Jul-09 8:59
Member 469202330-Jul-09 8:59 
AnswerRe: MS SQL 2005 - merge new rows and tables Pin
Robin_Roy30-Jul-09 16:40
Robin_Roy30-Jul-09 16:40 
AnswerRe: MS SQL 2005 - merge new rows and tables Pin
Mycroft Holmes30-Jul-09 16:54
professionalMycroft Holmes30-Jul-09 16:54 
Question.NET DataGridView question Pin
Art Frank30-Jul-09 7:56
Art Frank30-Jul-09 7:56 
A contrived example that demonstrates what I'm trying to accomplish:

Four tables, like so:

main_table:
persons_name
car
color

car_lookup:
car_id
car_description

color_lookup:
color_id
color_description

car_color:
car_id
color_id

The idea is that for each type of car in the car_lookup table, there are only a few values in the color_lookup table that are valid. The car_color table has the all of the color_id values that are valid for each car_id (that is, if I select all of the rows for a particluar car_id, I'll retrieve all of the valid color_ids for that car).

Question 1: ok design? Is there a better way to approach this?
Question 2: I'm using a DataGridView to present the main_table to the end-user for editing. Works fine when I'm just presenting the table with the car and color fields just showing ID numbers. How can I present the data so that the DataGridView presents the car_description instead of the car_id that is in the car field (and this one field is not changeable) and for the color field present a drop down of just the valid colors for the given car_id? This would mean that the drop down is different for each row. If car #1 could be only green or blue, whereas car #2 could be blue or red, then the drop down would reflect that.

The database is on a SQL server, the DataGridView is connected to a BindingSource, which is connected to a SqlDataAdapter.

Unsure if this belongs in the .NET section or here. Apologies if this is the wrong place. I'm writing in C#, but any general DataGridView info would be appreciated.
AnswerRe: .NET DataGridView question Pin
Robin_Roy30-Jul-09 16:35
Robin_Roy30-Jul-09 16:35 
AnswerRe: .NET DataGridView question Pin
Mycroft Holmes30-Jul-09 16:48
professionalMycroft Holmes30-Jul-09 16:48 
GeneralRe: .NET DataGridView question Pin
Art Frank31-Jul-09 9:18
Art Frank31-Jul-09 9:18 
GeneralRe: .NET DataGridView question Pin
Art Frank31-Jul-09 9:25
Art Frank31-Jul-09 9:25 
GeneralRe: .NET DataGridView question Pin
Mycroft Holmes31-Jul-09 12:42
professionalMycroft Holmes31-Jul-09 12:42 
QuestionHow to protect sqlserver database from unauthorized access Pin
shine_paravur30-Jul-09 0:40
shine_paravur30-Jul-09 0:40 
AnswerRe: How to protect sqlserver database from unauthorized access Pin
dan!sh 30-Jul-09 0:47
professional dan!sh 30-Jul-09 0:47 
AnswerRe: How to protect sqlserver database from unauthorized access Pin
Abhijit Jana30-Jul-09 8:29
professionalAbhijit Jana30-Jul-09 8:29 
AnswerRe: How to protect sqlserver database from unauthorized access Pin
Robin_Roy30-Jul-09 16:45
Robin_Roy30-Jul-09 16:45 
Question[Message Deleted] Pin
Balaji_rcs30-Jul-09 0:09
professionalBalaji_rcs30-Jul-09 0:09 
AnswerRe: Checklist for migrating Sql Server 2000 based websites to 2005 based websites Pin
Ashfield30-Jul-09 1:58
Ashfield30-Jul-09 1:58 
AnswerRe: Checklist for migrating Sql Server 2000 based websites to 2005 based websites Pin
Abhijit Jana30-Jul-09 8:32
professionalAbhijit Jana30-Jul-09 8:32 
AnswerRe: Checklist for migrating Sql Server 2000 based websites to 2005 based websites Pin
Robin_Roy30-Jul-09 16:50
Robin_Roy30-Jul-09 16:50 
QuestionNeed Checklist for migrating Sql Server 2000 based websites to 2005 based websites Pin
Balaji_rcs30-Jul-09 0:06
professionalBalaji_rcs30-Jul-09 0:06 
AnswerRe: Need Checklist for migrating Sql Server 2000 based websites to 2005 based websites Pin
Jerry Hammond30-Jul-09 3:09
Jerry Hammond30-Jul-09 3:09 
AnswerRe: Need Checklist for migrating Sql Server 2000 based websites to 2005 based websites Pin
Robin_Roy30-Jul-09 16:52
Robin_Roy30-Jul-09 16:52 
QuestionIs it possible to design Custom Constraints ??? Pin
www.Developerof.NET29-Jul-09 22:15
www.Developerof.NET29-Jul-09 22:15 

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.