Click here to Skip to main content
15,892,746 members
Home / Discussions / Database
   

Database

 
AnswerRe: how to write querry for expired date Pin
Mycroft Holmes21-Mar-10 0:40
professionalMycroft Holmes21-Mar-10 0:40 
GeneralRe: how to write querry for expired date Pin
developerit21-Mar-10 1:13
developerit21-Mar-10 1:13 
Questionsample code of oracle & c# Pin
amer shammout20-Mar-10 21:34
amer shammout20-Mar-10 21:34 
AnswerRe: sample code of oracle & c# Pin
Mycroft Holmes21-Mar-10 0:36
professionalMycroft Holmes21-Mar-10 0:36 
QuestionMultiple Tables in MS Access Database ! Pin
jeshra27920-Mar-10 19:40
jeshra27920-Mar-10 19:40 
AnswerRe: Multiple Tables in MS Access Database ! Pin
Mycroft Holmes21-Mar-10 0:29
professionalMycroft Holmes21-Mar-10 0:29 
GeneralRe: Multiple Tables in MS Access Database ! Pin
jeshra27925-Mar-10 1:32
jeshra27925-Mar-10 1:32 
QuestionC# winform -> SQL server Trouble writing null values Pin
Mattzimmerer20-Mar-10 10:26
Mattzimmerer20-Mar-10 10:26 
I'm no professional, so I am aware that I may be missing out on a better method but here is what I am trying to do.


int Market_Value;
    if (this.MarketValue.Text == "") Market_Value = -1;
    else Market_Value = Int32.Parse(this.MarketValue.Text);

TableAdapter.InsertQuery(Market_Value == -1 ? Market_Value : null)

TableAdapter.Update(DataSet);

*lots of code left out

This doesn't compile because of the line : Market_Value == -1 ? Market_Value : null, its telling me that I cannot set an int to null

Perhaps I could handle this in my InsertQuery? I'm super new to SQL so I cant see how... heres that function:
INSERT INTO [dbo].[THE DATABASE] 
([Market Value]) 

VALUES (@Market_Value)

I guess I could make the conditional statement in there somehow... but how? Confused | :confused: Sigh | :sigh: .. need to learn more SQL Laugh | :laugh:

I just dont know, any insight into a better way would be greatly appreciated!
AnswerRe: C# winform -> SQL server Trouble writing null values Pin
i.j.russell20-Mar-10 12:19
i.j.russell20-Mar-10 12:19 
GeneralRe: C# winform -> SQL server Trouble writing null values Pin
Mattzimmerer20-Mar-10 12:44
Mattzimmerer20-Mar-10 12:44 
Questionoracle & .net Pin
amer shammout20-Mar-10 4:17
amer shammout20-Mar-10 4:17 
QuestionRe: oracle & .net Pin
i.j.russell20-Mar-10 8:51
i.j.russell20-Mar-10 8:51 
GeneralRe: oracle & .net Pin
amer shammout20-Mar-10 21:24
amer shammout20-Mar-10 21:24 
AnswerRe: oracle & .net Pin
Don Burton21-Mar-10 10:31
Don Burton21-Mar-10 10:31 
GeneralRe: oracle & .net Pin
amer shammout21-Mar-10 21:42
amer shammout21-Mar-10 21:42 
AnswerRe: oracle & .net Pin
Аslam Iqbal26-Mar-10 10:38
professionalАslam Iqbal26-Mar-10 10:38 
GeneralRe: oracle & .net Pin
amer shammout28-Mar-10 2:03
amer shammout28-Mar-10 2:03 
QuestionPermissions Problem? [SOLVED] Pin
#realJSOP20-Mar-10 3:31
mve#realJSOP20-Mar-10 3:31 
AnswerRe: Permissions Problem? Pin
Luc Pattyn20-Mar-10 3:38
sitebuilderLuc Pattyn20-Mar-10 3:38 
GeneralRe: Permissions Problem? Pin
#realJSOP20-Mar-10 3:40
mve#realJSOP20-Mar-10 3:40 
GeneralRe: Permissions Problem? Pin
Luc Pattyn20-Mar-10 3:53
sitebuilderLuc Pattyn20-Mar-10 3:53 
GeneralRe: Permissions Problem? Pin
#realJSOP20-Mar-10 3:50
mve#realJSOP20-Mar-10 3:50 
QuestionRetrieving the lastest instance of a record [ SOLVED] Pin
#realJSOP20-Mar-10 2:53
mve#realJSOP20-Mar-10 2:53 
AnswerRe: Retrieving the lastest instance of a record Pin
Luc Pattyn20-Mar-10 3:17
sitebuilderLuc Pattyn20-Mar-10 3:17 
GeneralRe: Retrieving the lastest instance of a record Pin
#realJSOP20-Mar-10 3:32
mve#realJSOP20-Mar-10 3:32 

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.