Click here to Skip to main content
15,887,253 members
Home / Discussions / Database
   

Database

 
AnswerRe: (Solved) Problem in formulating sql query for generating a balance sheet Pin
paul4everyone19-Dec-13 2:42
paul4everyone19-Dec-13 2:42 
Questionhow to write a query with multiple random filters ? Pin
Pdeveloper15-Dec-13 20:06
Pdeveloper15-Dec-13 20:06 
AnswerRe: how to write a query with multiple random filters ? Pin
Simon_Whale15-Dec-13 22:56
Simon_Whale15-Dec-13 22:56 
GeneralRe: how to write a query with multiple random filters ? Pin
Pdeveloper15-Dec-13 23:18
Pdeveloper15-Dec-13 23:18 
GeneralRe: how to write a query with multiple random filters ? Pin
Pdeveloper16-Dec-13 18:57
Pdeveloper16-Dec-13 18:57 
GeneralRe: how to write a query with multiple random filters ? Pin
Mycroft Holmes16-Dec-13 21:00
professionalMycroft Holmes16-Dec-13 21:00 
GeneralRe: how to write a query with multiple random filters ? Pin
thatraja16-Dec-13 23:25
professionalthatraja16-Dec-13 23:25 
QuestionSQL Server date/time oddity. Pin
Septimus Hedgehog15-Dec-13 1:29
Septimus Hedgehog15-Dec-13 1:29 
I run a query in SSMS. A date/time column displays correctly like "2013-12-15 12:19:43.583".

I get the data table object back into my app and iterate through the data rows. Converting the column using DateTime always "loses" the millisecond component. I tried converting it to a string just to see if it was coming through that way, but no, the millisecond is always "lost". I then changed the query to cast the datetime column into two columns, one for the date and one for the time. Converting the time column to a DateTime now correctly contains the millisecond component.

If the column in the database is defined as datetime why am I not getting the millsecond component? There's no problem converting the value in the row using DateTime but the loss of the millsecond puzzles me because I thought a database datetime column would be wholly compatible with a Dotnet DateTime object?

Are my pudgy fingers, and thus by association, my pudgy brain, doing something wrong in my code?
If there is one thing more dangerous than getting between a bear and her cubs it's getting between my wife and her chocolate.

AnswerRe: SQL Server date/time oddity. Pin
Mycroft Holmes15-Dec-13 11:44
professionalMycroft Holmes15-Dec-13 11:44 
AnswerRe: SQL Server date/time oddity. Pin
Jörgen Andersson15-Dec-13 22:34
professionalJörgen Andersson15-Dec-13 22:34 
GeneralRe: SQL Server date/time oddity. Pin
Richard Deeming15-Dec-13 23:59
mveRichard Deeming15-Dec-13 23:59 
GeneralRe: SQL Server date/time oddity. Pin
Jörgen Andersson16-Dec-13 1:10
professionalJörgen Andersson16-Dec-13 1:10 
GeneralRe: SQL Server date/time oddity. Pin
Richard Deeming16-Dec-13 1:55
mveRichard Deeming16-Dec-13 1:55 
GeneralRe: SQL Server date/time oddity. Pin
Jörgen Andersson16-Dec-13 3:11
professionalJörgen Andersson16-Dec-13 3:11 
AnswerRe: SQL Server date/time oddity. Pin
Richard Deeming16-Dec-13 0:04
mveRichard Deeming16-Dec-13 0:04 
QuestionNeed to Covert This SQL database to MS Access Database, Can anybody help please Pin
Kamal9614-Dec-13 2:47
Kamal9614-Dec-13 2:47 
GeneralRe: Need to Covert This SQL database to MS Access Database, Can anybody help please Pin
PIEBALDconsult15-Dec-13 5:33
mvePIEBALDconsult15-Dec-13 5:33 
GeneralRe: Need to Covert This SQL database to MS Access Database, Can anybody help please Pin
Kamal9616-Dec-13 8:58
Kamal9616-Dec-13 8:58 
QuestionSelect from one database table where column value equals a column value in a different database Pin
moordoom13-Dec-13 5:52
moordoom13-Dec-13 5:52 
AnswerRe: Select from one database table where column value equals a column value in a different database Pin
GuyThiebaut13-Dec-13 6:06
professionalGuyThiebaut13-Dec-13 6:06 
GeneralRe: Select from one database table where column value equals a column value in a different database Pin
moordoom13-Dec-13 8:13
moordoom13-Dec-13 8:13 
GeneralRe: Select from one database table where column value equals a column value in a different database Pin
GuyThiebaut13-Dec-13 8:52
professionalGuyThiebaut13-Dec-13 8:52 
AnswerRe: Select from one database table where column value equals a column value in a different database Pin
joginder-banger15-Dec-13 8:05
professionaljoginder-banger15-Dec-13 8:05 
GeneralRe: Select from one database table where column value equals a column value in a different database Pin
moordoom16-Dec-13 3:35
moordoom16-Dec-13 3:35 
QuestionI am not able to more than 250 records insert into table in sql server 2008 through (Asp.net upload program) Pin
sunil_david11-Dec-13 23:44
sunil_david11-Dec-13 23:44 

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.