Click here to Skip to main content
15,889,281 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to make .exe file in C# PinPopular
Anthony Mushrow7-Feb-09 7:57
professionalAnthony Mushrow7-Feb-09 7:57 
JokeRe: how to make .exe file in C# Pin
Luc Pattyn7-Feb-09 9:17
sitebuilderLuc Pattyn7-Feb-09 9:17 
QuestionPlugins and Abstract classes. Pin
iAmEntity7-Feb-09 6:45
iAmEntity7-Feb-09 6:45 
AnswerRe: Plugins and Abstract classes. Pin
Anthony Mushrow7-Feb-09 7:54
professionalAnthony Mushrow7-Feb-09 7:54 
RantRe: Plugins and Abstract classes. Pin
iAmEntity7-Feb-09 8:05
iAmEntity7-Feb-09 8:05 
GeneralRe: Plugins and Abstract classes. Pin
Anthony Mushrow7-Feb-09 9:03
professionalAnthony Mushrow7-Feb-09 9:03 
GeneralRe: Plugins and Abstract classes. Pin
iAmEntity7-Feb-09 9:33
iAmEntity7-Feb-09 9:33 
QuestionChecking for data Pin
ziwez07-Feb-09 5:07
ziwez07-Feb-09 5:07 
Hi Guys and Gals,

I have my c# win form app connected up to a sql compact db.
I have a form which contains fields to enter company data, ie an address.
Now at the moment when I open that form, I do a read to see if a record exists...

xDataSourceAccess = AppSet.DataSourceAccess;
conn = new SqlCeConnection(Properties.Settings.Default.CS_Account + xDataSourceAccess);
string strRecordExisit = "SELECT OID from tbl_CompanyDetails";
conn.Open();
cmd = new SqlCeCommand(strRecordExisit,conn);
Reader = cmd.ExecuteReader();
if (Reader.Read())
xRecordFound = true;
Reader.Close();
etc....

Is this the the best way to check to see if a record exists? (ie best performance and memory usage)

thanks
AnswerRe: Checking for data Pin
Dave Kreskowiak7-Feb-09 8:54
mveDave Kreskowiak7-Feb-09 8:54 
GeneralRe: Checking for data Pin
DaveyM697-Feb-09 10:14
professionalDaveyM697-Feb-09 10:14 
GeneralRe: Checking for data Pin
Dave Kreskowiak7-Feb-09 11:47
mveDave Kreskowiak7-Feb-09 11:47 
QuestionVoice to text Conversion in windows mobile application Pin
ReachMe@CodeProject7-Feb-09 3:55
ReachMe@CodeProject7-Feb-09 3:55 
QuestionRefreshing datagrid Pin
Muammar©7-Feb-09 3:20
Muammar©7-Feb-09 3:20 
AnswerRe: Refreshing datagrid Pin
Muammar©7-Feb-09 3:58
Muammar©7-Feb-09 3:58 
GeneralRe: Refreshing datagrid Pin
Rafone7-Feb-09 5:00
Rafone7-Feb-09 5:00 
GeneralRe: Refreshing datagrid Pin
Muammar©7-Feb-09 18:56
Muammar©7-Feb-09 18:56 
Questionbest choice ? Pin
Xmen Real 7-Feb-09 2:50
professional Xmen Real 7-Feb-09 2:50 
AnswerRe: best choice ? [modified] Pin
DaveyM697-Feb-09 3:25
professionalDaveyM697-Feb-09 3:25 
AnswerRe: best choice ? Pin
Luc Pattyn7-Feb-09 3:48
sitebuilderLuc Pattyn7-Feb-09 3:48 
Questionfile upload error Pin
George_George7-Feb-09 2:43
George_George7-Feb-09 2:43 
AnswerRe: file upload error Pin
Nicholas Butler7-Feb-09 3:34
sitebuilderNicholas Butler7-Feb-09 3:34 
GeneralRe: file upload error Pin
George_George7-Feb-09 22:19
George_George7-Feb-09 22:19 
GeneralRe: file upload error Pin
Nicholas Butler7-Feb-09 23:36
sitebuilderNicholas Butler7-Feb-09 23:36 
GeneralRe: file upload error Pin
George_George8-Feb-09 0:18
George_George8-Feb-09 0:18 
GeneralRe: file upload error Pin
Nicholas Butler8-Feb-09 2:21
sitebuilderNicholas Butler8-Feb-09 2:21 

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.