Click here to Skip to main content
15,912,504 members
Home / Discussions / Database
   

Database

 
GeneralRecord type - Literal vs bit Pin
Brady Kelly21-Feb-07 19:31
Brady Kelly21-Feb-07 19:31 
GeneralRe: Record type - Literal vs bit Pin
Hesham Amin22-Feb-07 10:17
Hesham Amin22-Feb-07 10:17 
QuestionADO.NET: DataRow + ForeignKey -> DataTable? Pin
peterchen21-Feb-07 10:48
peterchen21-Feb-07 10:48 
AnswerRe: ADO.NET: DataRow + ForeignKey -> DataTable? Pin
Mark J. Miller22-Feb-07 2:41
Mark J. Miller22-Feb-07 2:41 
QuestionDoes Adapter.GetData read all data? (noob) Pin
peterchen21-Feb-07 10:23
peterchen21-Feb-07 10:23 
AnswerRe: Does Adapter.GetData read all data? (noob) Pin
Mark J. Miller22-Feb-07 3:26
Mark J. Miller22-Feb-07 3:26 
GeneralConditional constraints Pin
Brady Kelly21-Feb-07 8:06
Brady Kelly21-Feb-07 8:06 
GeneralRe: Conditional constraints Pin
Mark J. Miller22-Feb-07 3:19
Mark J. Miller22-Feb-07 3:19 
Using a check constraint you can do the following:

<br />
CREATE TABLE myChkTable (IsStatusUpdate BIT, NewDocStatus VARCHAR(25))<br />
go<br />
<br />
ALTER TABLE myChkTable ADD CONSTRAINT chkTblConstraint CHECK (<br />
	(IsStatusUpdate = 1 AND NewDocStatus IS NOT NULL) OR IsStatusUpdate = 0<br />
)<br />
go<br />
<br />
--the first three will succeed<br />
INSERT INTO myChkTable VALUES (0, null)<br />
INSERT INTO myChkTable VALUES (1, 'status')<br />
INSERT INTO myChkTable VALUES (0, 'not update')<br />
<br />
--this will fail<br />
INSERT INTO myChkTable VALUES (1, null)<br />
<br />

QuestionMRD Pin
Ryno Burger21-Feb-07 6:43
Ryno Burger21-Feb-07 6:43 
QuestionGrouping data from SQL in ASP Pin
JennGom21-Feb-07 6:16
JennGom21-Feb-07 6:16 
AnswerRe: Grouping data from SQL in ASP Pin
andyharman21-Feb-07 8:15
professionalandyharman21-Feb-07 8:15 
GeneralRe: Grouping data from SQL in ASP Pin
JennGom21-Feb-07 9:27
JennGom21-Feb-07 9:27 
QuestionRetain Benefits of Non-Normalized Table Pin
perlmunger21-Feb-07 4:54
perlmunger21-Feb-07 4:54 
AnswerRe: Retain Benefits of Non-Normalized Table Pin
Mark J. Miller22-Feb-07 3:00
Mark J. Miller22-Feb-07 3:00 
GeneralRe: Retain Benefits of Non-Normalized Table Pin
perlmunger22-Feb-07 4:50
perlmunger22-Feb-07 4:50 
QuestionWhat is wrong with my SQL string? Pin
JUNEYT21-Feb-07 3:16
JUNEYT21-Feb-07 3:16 
AnswerRe: What is wrong with my SQL string? Pin
Colin Angus Mackay21-Feb-07 3:19
Colin Angus Mackay21-Feb-07 3:19 
GeneralRe: What is wrong with my SQL string? Pin
JUNEYT21-Feb-07 3:36
JUNEYT21-Feb-07 3:36 
GeneralRe: What is wrong with my SQL string? Pin
Colin Angus Mackay21-Feb-07 3:55
Colin Angus Mackay21-Feb-07 3:55 
GeneralRe: What is wrong with my SQL string? Pin
JUNEYT21-Feb-07 4:31
JUNEYT21-Feb-07 4:31 
GeneralRe: What is wrong with my SQL string? Pin
peterchen21-Feb-07 11:51
peterchen21-Feb-07 11:51 
GeneralRe: What is wrong with my SQL string? Pin
Pete O'Hanlon21-Feb-07 4:46
mvePete O'Hanlon21-Feb-07 4:46 
AnswerRe: What is wrong with my SQL string? Pin
kubben21-Feb-07 3:27
kubben21-Feb-07 3:27 
GeneralUpdate Advice - Getting most recent value Pin
Brady Kelly21-Feb-07 2:15
Brady Kelly21-Feb-07 2:15 
GeneralRe: Update Advice - Getting most recent value Pin
andyharman21-Feb-07 2:25
professionalandyharman21-Feb-07 2:25 

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.