Click here to Skip to main content
15,914,416 members
Home / Discussions / Database
   

Database

 
AnswerRe: SQL Server2000 "Filegroup is Full" Pin
Justin The24-Sep-08 20:20
Justin The24-Sep-08 20:20 
GeneralRe: SQL Server2000 "Filegroup is Full" Pin
Syed Shahid Hussain24-Sep-08 22:03
Syed Shahid Hussain24-Sep-08 22:03 
Questionhow to set and get value of Variable in sql server 2005 Integration Tasks Pin
gzali24-Sep-08 18:03
gzali24-Sep-08 18:03 
AnswerRe: how to set and get value of Variable in sql server 2005 Integration Tasks Pin
John_Adams25-Sep-08 20:41
John_Adams25-Sep-08 20:41 
QuestionDataset Join on Constant Pin
Coxianuk24-Sep-08 9:12
Coxianuk24-Sep-08 9:12 
AnswerRe: Dataset Join on Constant Pin
Wendelius24-Sep-08 9:31
mentorWendelius24-Sep-08 9:31 
GeneralRe: Dataset Join on Constant Pin
Coxianuk24-Sep-08 10:05
Coxianuk24-Sep-08 10:05 
GeneralRe: Dataset Join on Constant Pin
Wendelius24-Sep-08 10:37
mentorWendelius24-Sep-08 10:37 
Okay, I jumped into conclusions D'Oh! | :doh: and didn't think that you would have primary keys that are combined from several fields (if each table would have only one primary key column this wouldn't be any problem).

Anyhow, it could work, but I think that the last relation should be (may have typos):
ds.Relations.Add("Table A to C", 
new DataColumn[] {tableA.Columns["KeyA"], new DataColumn("AlwaysNull", relevantDataType, "NULL")},
new DataColumn[] {tableC.Columns["KeyA"], tableC.Columns["KeyB"]);


The idea is to create a calculated column which always has a vale of null. Haven't tested this though...

Mika

The need to optimize rises from a bad design

GeneralRe: Dataset Join on Constant Pin
Coxianuk24-Sep-08 11:02
Coxianuk24-Sep-08 11:02 
GeneralRe: Dataset Join on Constant Pin
Wendelius24-Sep-08 11:07
mentorWendelius24-Sep-08 11:07 
AnswerRe: Dataset Join on Constant Pin
nelsonpaixao24-Sep-08 14:47
nelsonpaixao24-Sep-08 14:47 
QuestionSQL Server 2000 with SP4 installation problem Pin
Krishnatv24-Sep-08 6:22
Krishnatv24-Sep-08 6:22 
AnswerRe: SQL Server 2000 with SP4 installation problem Pin
Wendelius24-Sep-08 8:38
mentorWendelius24-Sep-08 8:38 
QuestionSmall Database Design Confusion Pin
oohungoo24-Sep-08 5:16
oohungoo24-Sep-08 5:16 
AnswerRe: Small Database Design Confusion Pin
Wendelius24-Sep-08 8:37
mentorWendelius24-Sep-08 8:37 
AnswerRe: Small Database Design Confusion Pin
nelsonpaixao28-Sep-08 14:17
nelsonpaixao28-Sep-08 14:17 
QuestionSQL Server 2005 Installation Error Pin
Afaak24-Sep-08 4:27
Afaak24-Sep-08 4:27 
AnswerRe: SQL Server 2005 Installation Error Pin
Wendelius24-Sep-08 8:28
mentorWendelius24-Sep-08 8:28 
Question[Message Deleted] Pin
notes4we24-Sep-08 3:04
notes4we24-Sep-08 3:04 
AnswerRe: Send Mail Task on Failure Pin
Wendelius24-Sep-08 8:26
mentorWendelius24-Sep-08 8:26 
QuestionMaking a Winform Application Support ORACLE and SQL Server Pin
Member 118746624-Sep-08 2:40
Member 118746624-Sep-08 2:40 
AnswerRe: Making a Winform Application Support ORACLE and SQL Server Pin
Coxianuk24-Sep-08 11:23
Coxianuk24-Sep-08 11:23 
AnswerRe: Making a Winform Application Support ORACLE and SQL Server Pin
jVersteegen24-Sep-08 23:49
jVersteegen24-Sep-08 23:49 
GeneralRe: Making a Winform Application Support ORACLE and SQL Server Pin
Member 118746625-Sep-08 5:08
Member 118746625-Sep-08 5:08 
QuestionAccessing/ connecting MySQL database from VC++ application...... please help Pin
param_joshi24-Sep-08 2:29
param_joshi24-Sep-08 2:29 

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.