Click here to Skip to main content
15,894,410 members
Home / Discussions / Database
   

Database

 
AnswerRe: How to get radio button values in sql 2000 Pin
N a v a n e e t h13-Feb-07 20:18
N a v a n e e t h13-Feb-07 20:18 
AnswerRe: How to get radio button values in sql 2000 Pin
M A A Mehedi Hasan13-Feb-07 20:36
M A A Mehedi Hasan13-Feb-07 20:36 
QuestionWant a sql query or any solutation Pin
vnsraj13-Feb-07 19:51
vnsraj13-Feb-07 19:51 
AnswerRe: Want a sql query or any solutation Pin
Krish - KP13-Feb-07 23:55
Krish - KP13-Feb-07 23:55 
QuestionSQL server in to XML Pin
indian14313-Feb-07 19:37
indian14313-Feb-07 19:37 
AnswerRe: SQL server in to XML Pin
N a v a n e e t h13-Feb-07 21:42
N a v a n e e t h13-Feb-07 21:42 
GeneralRe: SQL server in to XML Pin
indian14322-Feb-07 21:01
indian14322-Feb-07 21:01 
Questionrelatioships & datasets? [sqlservr 2005 , C# 05] Pin
giddy_guitarist13-Feb-07 19:32
giddy_guitarist13-Feb-07 19:32 
Hi ,

i've just started using slq server 2005 express. I know how to put a table into a dataset and then if i have two datasets i can make a relation between them via code[DataRelation].But why then , do we make relations in the database itself?

My scenario:

In my DB I have Three tables:
Persons : PID , Name
Items: ItID , Name
Purchases PID , ItID.
[there are 2 relations FK_Purchases_PID , FK_Purchases_ItID]

I have listboxes on my plain app , one of them is filled with the persons names. Now if i click a particular name i should get the corresponding purchases?
If i load each table into a dataset and then remake the relatioships via code it seems silly.

Would someone show me the best way to do the aforementioned?Confused | :confused:

I'm using C# 2.0 , .NET 2.0 and sql server 2005.

Thanks
Gideon
AnswerRe: relatioships & datasets? [sqlservr 2005 , C# 05] Pin
Colin Angus Mackay13-Feb-07 19:38
Colin Angus Mackay13-Feb-07 19:38 
GeneralRe: relatioships & datasets? [sqlservr 2005 , C# 05] Pin
giddy_guitarist13-Feb-07 20:03
giddy_guitarist13-Feb-07 20:03 
GeneralRe: relatioships & datasets? [sqlservr 2005 , C# 05] Pin
Colin Angus Mackay13-Feb-07 21:55
Colin Angus Mackay13-Feb-07 21:55 
Generalsome newbie questions:[sqlservr 2005 , C# 05] Pin
giddy_guitarist16-Feb-07 4:32
giddy_guitarist16-Feb-07 4:32 
GeneralRe: some newbie questions:[sqlservr 2005 , C# 05] Pin
Colin Angus Mackay16-Feb-07 6:47
Colin Angus Mackay16-Feb-07 6:47 
GeneralRe: some newbie questions:[sqlservr 2005 , C# 05] Pin
giddy_guitarist18-Feb-07 0:31
giddy_guitarist18-Feb-07 0:31 
GeneralRe: some newbie questions:[sqlservr 2005 , C# 05] Pin
Colin Angus Mackay18-Feb-07 1:12
Colin Angus Mackay18-Feb-07 1:12 
GeneralRe: some newbie questions:[sqlservr 2005 , C# 05] Pin
giddy_guitarist18-Feb-07 2:37
giddy_guitarist18-Feb-07 2:37 
Questionsql triggers Pin
kalyan_241613-Feb-07 17:21
kalyan_241613-Feb-07 17:21 
QuestionJob Name Pin
Member 382635313-Feb-07 11:59
Member 382635313-Feb-07 11:59 
AnswerRe: Job Name Pin
Ennis Ray Lynch, Jr.13-Feb-07 12:13
Ennis Ray Lynch, Jr.13-Feb-07 12:13 
AnswerRe: Job Name Pin
Harini N K21-Feb-07 22:35
Harini N K21-Feb-07 22:35 
QuestionOrder of operations and Short circuit Pin
Keith Andersch13-Feb-07 9:51
Keith Andersch13-Feb-07 9:51 
AnswerRe: Order of operations and Short circuit Pin
Pete O'Hanlon13-Feb-07 10:13
mvePete O'Hanlon13-Feb-07 10:13 
GeneralRe: Order of operations and Short circuit Pin
Keith Andersch13-Feb-07 10:33
Keith Andersch13-Feb-07 10:33 
GeneralRe: Order of operations and Short circuit Pin
M A A Mehedi Hasan13-Feb-07 23:25
M A A Mehedi Hasan13-Feb-07 23:25 
GeneralRe: Order of operations and Short circuit Pin
Pete O'Hanlon13-Feb-07 23:45
mvePete O'Hanlon13-Feb-07 23:45 

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.