Click here to Skip to main content
15,913,232 members
Home / Discussions / C#
   

C#

 
QuestionCrystal Report setup problem Pin
sasan5629-Nov-05 9:56
sasan5629-Nov-05 9:56 
QuestionCreating a window form Pin
Yevgeny Efter29-Nov-05 8:45
Yevgeny Efter29-Nov-05 8:45 
AnswerRe: Creating a window form Pin
enjoycrack29-Nov-05 9:08
enjoycrack29-Nov-05 9:08 
GeneralRe: Creating a window form Pin
Yevgeny Efter29-Nov-05 9:25
Yevgeny Efter29-Nov-05 9:25 
GeneralRe: Creating a window form Pin
enjoycrack29-Nov-05 10:20
enjoycrack29-Nov-05 10:20 
QuestionFailed to compare Time portion of DateTime when read ACCESS database Pin
Roman Muntyanu29-Nov-05 7:58
Roman Muntyanu29-Nov-05 7:58 
AnswerRe: Failed to compare Time portion of DateTime when read ACCESS database Pin
Rob Philpott29-Nov-05 8:41
Rob Philpott29-Nov-05 8:41 
GeneralRe: Failed to compare Time portion of DateTime when read ACCESS database Pin
Roman Muntyanu29-Nov-05 9:19
Roman Muntyanu29-Nov-05 9:19 
String myConnectionString = @"Jet OLEDB:Global Partial Bulk Ops=2;Jet OLEDB:Registry Path=;Jet OLEDB:Database Locking Mode=1;Data Source=""./data/abel.mdb"";Jet OLEDB:Engine Type=5;Provider=""Microsoft.Jet.OLEDB.4.0"";Jet OLEDB:System database=;Jet OLEDB:SFP=False;persist security info=False;Extended Properties=;Mode=Share Deny None;Jet OLEDB:Encrypt Database=False;Jet OLEDB:Create System Database=False;Jet OLEDB:Don't Copy Locale on Compact=False;Jet OLEDB:Compact Without Replica Repair=False;User ID=Admin;Jet OLEDB:Global Bulk Transactions=1";

OleDbConnection myConnection = new OleDbConnection(myConnectionString);
OleDbParameter parameter = new OleDbParameter();
parameter.ParameterName = "@TimestampParam";
parameter.Value = DateTime.Now;

OleDbCommand myCommand = new OleDbCommand();
myCommand.Connection = myConnection;
myCommand.CommandText = "SELECT [NetLog].* FROM [NetLog] WHERE Timestamp < @TimestampParam";

myCommand.CommandType = CommandType.Text;
myCommand.Parameters.Add(parameter);

OleDbDataAdapter adapter = new OleDbDataAdapter();
adapter.SelectCommand = myCommand;
DataSet dataSet = new DataSet();
int iNumRows = adapter.Fill( dataSet );

Get zero rows when records differ only in time portion,

Thanks
GeneralRe: Failed to compare Time portion of DateTime when read ACCESS database Pin
Rob Philpott29-Nov-05 11:27
Rob Philpott29-Nov-05 11:27 
GeneralRe: Failed to compare Time portion of DateTime when read ACCESS database Pin
Roman Muntyanu30-Nov-05 5:48
Roman Muntyanu30-Nov-05 5:48 
Questioneasy textbox question? Pin
melanieab29-Nov-05 7:36
melanieab29-Nov-05 7:36 
AnswerRe: easy textbox question? Pin
Rob Philpott29-Nov-05 8:02
Rob Philpott29-Nov-05 8:02 
GeneralRe: easy textbox question? Pin
melanieab29-Nov-05 8:15
melanieab29-Nov-05 8:15 
QuestionWeb Service XML to DataGrid - 'System.NullReferenceException' error Pin
tabulation29-Nov-05 7:16
tabulation29-Nov-05 7:16 
AnswerRe: Web Service XML to DataGrid - 'System.NullReferenceException' error Pin
Rob Philpott29-Nov-05 8:51
Rob Philpott29-Nov-05 8:51 
GeneralRe: Web Service XML to DataGrid - 'System.NullReferenceException' error Pin
tabulation29-Nov-05 10:15
tabulation29-Nov-05 10:15 
GeneralRe: Web Service XML to DataGrid - 'System.NullReferenceException' error Pin
Rob Philpott29-Nov-05 11:32
Rob Philpott29-Nov-05 11:32 
GeneralRe: Web Service XML to DataGrid - 'System.NullReferenceException' error Pin
tabulation29-Nov-05 11:46
tabulation29-Nov-05 11:46 
GeneralRe: Web Service XML to DataGrid - 'System.NullReferenceException' error Pin
Rob Philpott29-Nov-05 22:56
Rob Philpott29-Nov-05 22:56 
QuestionDatabase Directory Error Pin
TheMajorRager29-Nov-05 7:00
TheMajorRager29-Nov-05 7:00 
AnswerRe: Database Directory Error Pin
KaptinKrunch29-Nov-05 7:25
KaptinKrunch29-Nov-05 7:25 
GeneralRe: Database Directory Error Pin
TheMajorRager29-Nov-05 10:01
TheMajorRager29-Nov-05 10:01 
QuestionSockets - Intensive I/O Issues Pin
mcljava29-Nov-05 5:09
mcljava29-Nov-05 5:09 
AnswerRe: Sockets - Intensive I/O Issues Pin
leppie29-Nov-05 7:25
leppie29-Nov-05 7:25 
GeneralRe: Sockets - Intensive I/O Issues Pin
mcljava29-Nov-05 8:04
mcljava29-Nov-05 8:04 

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.