Click here to Skip to main content
15,902,788 members
Home / Discussions / Database
   

Database

 
GeneralRe: Use ' one quotation make error with sql statmetn .. Pin
Sam Heller8-Jul-07 11:53
Sam Heller8-Jul-07 11:53 
GeneralRe: Use ' one quotation make error with sql statmetn .. Pin
N a v a n e e t h8-Jul-07 23:03
N a v a n e e t h8-Jul-07 23:03 
Questiongetting error "“Invalid object name 'SizeMst'. “ " while exec sp Pin
mohd imran abdul aziz6-Jul-07 20:08
mohd imran abdul aziz6-Jul-07 20:08 
Questiona month all dates want to display..., Pin
Member 38798816-Jul-07 18:14
Member 38798816-Jul-07 18:14 
AnswerRe: a month all dates want to display..., Pin
Mike Dimmick7-Jul-07 2:32
Mike Dimmick7-Jul-07 2:32 
GeneralRe: a month all dates want to display..., Pin
Member 38798818-Jul-07 19:10
Member 38798818-Jul-07 19:10 
GeneralRe: a month all dates want to display..., Pin
Pete O'Hanlon8-Jul-07 23:05
mvePete O'Hanlon8-Jul-07 23:05 
Questionms access +c#.net (date comparison) Pin
hk779216-Jul-07 8:48
hk779216-Jul-07 8:48 
please help me ..

i am using ms access database, and c#.net , i want to list the data in grid datewise.
after runnig the query . it is returning the null value.


i may wrong in the formating the date in query or in table.
the data type of column "calltime" is date/time







public void SetReload()
{
string mydate;
CompilationDataSet myDataSet = new CompilationDataSet();
DataViewManager dsView;
mydate = dtp_date.Value.ToShortDateString();
string sSQL = "select * from tblCall where format(calltime,'MM/dd/yyyy')= " + mydate + " ";
sCommands.setOledbCommand(myDataSet, sVariables.sOleDbDataAdapter, sSQL, "tblCall");

dsView = myDataSet.DefaultViewManager;
myDataSet.Tables["tblCall"].Columns["Colid"].ColumnMapping = MappingType.Hidden;
grd_view_call_list.DataSource = dsView;
grd_view_call_list.DataMember = "tblCall";

}



Harry

QuestionNetwork error while connecting to DB2/MVS from .Net Pin
viv_bhatt6-Jul-07 5:55
viv_bhatt6-Jul-07 5:55 
AnswerRe: Network error while connecting to DB2/MVS from .Net Pin
Mike Dimmick6-Jul-07 6:38
Mike Dimmick6-Jul-07 6:38 
GeneralRe: Network error while connecting to DB2/MVS from .Net Pin
viv_bhatt6-Jul-07 7:17
viv_bhatt6-Jul-07 7:17 
Questionsql query Pin
Laxmi R6-Jul-07 3:58
Laxmi R6-Jul-07 3:58 
AnswerRe: sql query Pin
Vishu Gurav6-Jul-07 11:11
Vishu Gurav6-Jul-07 11:11 
AnswerRe: sql query Pin
Mike Dimmick6-Jul-07 13:36
Mike Dimmick6-Jul-07 13:36 
GeneralRe: sql query Pin
Laxmi R8-Jul-07 19:54
Laxmi R8-Jul-07 19:54 
AnswerRe: sql query Pin
N a v a n e e t h9-Jul-07 0:36
N a v a n e e t h9-Jul-07 0:36 
QuestionSQL Server 2000 - nested / recursive triggers? Pin
nr1b6-Jul-07 3:44
nr1b6-Jul-07 3:44 
AnswerRe: SQL Server 2000 - nested / recursive triggers? Pin
N a v a n e e t h9-Jul-07 0:41
N a v a n e e t h9-Jul-07 0:41 
Questionneed query for date....................... Pin
HemMagesh6-Jul-07 2:15
HemMagesh6-Jul-07 2:15 
AnswerRe: need query for date....................... Pin
Pete O'Hanlon6-Jul-07 4:12
mvePete O'Hanlon6-Jul-07 4:12 
GeneralRe: need query for date....................... Pin
Member 38798816-Jul-07 18:28
Member 38798816-Jul-07 18:28 
Questionplz give answer Pin
help as an alias5-Jul-07 23:25
help as an alias5-Jul-07 23:25 
AnswerRe: plz give answer Pin
rah_sin5-Jul-07 23:30
professionalrah_sin5-Jul-07 23:30 
GeneralRe: plz give answer Pin
help as an alias6-Jul-07 0:05
help as an alias6-Jul-07 0:05 
GeneralRe: plz give answer Pin
rah_sin6-Jul-07 0:22
professionalrah_sin6-Jul-07 0:22 

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.