Click here to Skip to main content
15,920,503 members
Home / Discussions / C#
   

C#

 
AnswerRe: Validating a "Text" file [modified] Pin
Luc Pattyn20-Jan-09 4:38
sitebuilderLuc Pattyn20-Jan-09 4:38 
GeneralRe: Validating a "Text" file Pin
dwolver20-Jan-09 4:42
dwolver20-Jan-09 4:42 
AnswerRe: Validating a "Text" file Pin
Luc Pattyn20-Jan-09 5:09
sitebuilderLuc Pattyn20-Jan-09 5:09 
GeneralRe: Validating a "Text" file Pin
EliottA20-Jan-09 5:53
EliottA20-Jan-09 5:53 
GeneralRe: Validating a "Text" file Pin
PIEBALDconsult21-Jan-09 5:58
mvePIEBALDconsult21-Jan-09 5:58 
AnswerRe: Validating a "Text" file Pin
Luc Pattyn21-Jan-09 6:10
sitebuilderLuc Pattyn21-Jan-09 6:10 
GeneralRe: Validating a "Text" file Pin
PIEBALDconsult21-Jan-09 6:51
mvePIEBALDconsult21-Jan-09 6:51 
Question[newbie] 'System.Data.SqlDbType.BigInt' is a 'field' but is used like a 'type' Pin
jon-8020-Jan-09 3:51
professionaljon-8020-Jan-09 3:51 
I would like to update the field of a database with the maximum value + 1. The following code doesn't compile because I get an error, so I must be doing something wrong.

Confused | :confused:
Sleepy | :zzz:

//@Task_ref = MAX(Task_ref from database) + 1
string _getMaxTaskRef = @"SELECT MAX([task_ref])
FROM [teamwiki].[dbo].[task]";
SqlCommand cmdGetMaxTaskRef = new SqlCommand(_getMaxTaskRef, conAppDB);
cmdGetMaxTaskRef.ExecuteScalar();

if (_getMaxTaskRef != null)
{

SqlDbType.BigInt _nextRef = (SqlDbType.BigInt) _getMaxTaskRef.
+ 1;
Error:
Error 1 'System.Data.SqlDbType.BigInt' is a 'field' but is used like a 'type' c:\inetpub\wwwroot\TaskEntry\TaskEntry.aspx.cs 100 31 http://localhost/TaskEntry/

Jon

AnswerRe: [newbie] 'System.Data.SqlDbType.BigInt' is a 'field' but is used like a 'type' Pin
Christian Graus20-Jan-09 4:09
protectorChristian Graus20-Jan-09 4:09 
Questionmeasure performance of function Pin
George_George20-Jan-09 1:58
George_George20-Jan-09 1:58 
AnswerRe: measure performance of function Pin
Dave Kreskowiak20-Jan-09 2:05
mveDave Kreskowiak20-Jan-09 2:05 
GeneralRe: measure performance of function Pin
George_George20-Jan-09 2:46
George_George20-Jan-09 2:46 
GeneralRe: measure performance of function Pin
Dave Kreskowiak20-Jan-09 5:39
mveDave Kreskowiak20-Jan-09 5:39 
AnswerRe: measure performance of function Pin
SeMartens20-Jan-09 2:10
SeMartens20-Jan-09 2:10 
GeneralRe: measure performance of function Pin
George_George20-Jan-09 2:47
George_George20-Jan-09 2:47 
GeneralRe: measure performance of function Pin
SeMartens20-Jan-09 2:52
SeMartens20-Jan-09 2:52 
Questionchange the size of pages in rdlc report Pin
bhaumikdv20-Jan-09 1:58
bhaumikdv20-Jan-09 1:58 
AnswerRe: change the size of pages in rdlc report Pin
xxwwyy20-Jan-09 3:00
xxwwyy20-Jan-09 3:00 
Questionusing c header files Pin
lawrenceinba20-Jan-09 1:47
lawrenceinba20-Jan-09 1:47 
AnswerRe: using c header files Pin
musefan20-Jan-09 1:55
musefan20-Jan-09 1:55 
AnswerRe: using c header files Pin
Dave Kreskowiak20-Jan-09 2:01
mveDave Kreskowiak20-Jan-09 2:01 
AnswerRe: using c header files Pin
Christian Graus20-Jan-09 2:12
protectorChristian Graus20-Jan-09 2:12 
AnswerRe: using c header files Pin
#realJSOP20-Jan-09 2:26
professional#realJSOP20-Jan-09 2:26 
AnswerRe: using c header files Pin
PIEBALDconsult21-Jan-09 5:55
mvePIEBALDconsult21-Jan-09 5:55 
QuestionMoving value to textbox control from another thread Pin
The_Collector20-Jan-09 1:15
The_Collector20-Jan-09 1: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.