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

Database

 
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 
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 
No, the value will not be converted to a string.

Tracing through the code with Reflector, the GetDateTime method returns the value of the SqlBuffer.DateTime property. The indexer calls the GetValue method, which returns the value of the SqlBuffer.Value property, which contains a switch block based on the type returned from the database. For the datetime type, it returns the value of the SqlBuffer.DateTime property.

GetSqlDateTime returns the value of the SqlBuffer.SqlDateTime property. Both SqlBuffer.SqlDateTime and SqlBuffer.DateTime construct the value from two integers returned by SQL. Neither property converts the value to a string.

It might be slightly more efficient to call GetDateTime if you know that the value is a datetime type, but the indexer and GetValue method will return exactly the same value.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


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 
AnswerRe: I am not able to more than 250 records insert into table in sql server 2008 through (Asp.net upload program) Pin
Simon_Whale12-Dec-13 0:07
Simon_Whale12-Dec-13 0:07 
GeneralRe: I am not able to more than 250 records insert into table in sql server 2008 through (Asp.net upload program) Pin
noblepaulaziz12-Dec-13 2:18
noblepaulaziz12-Dec-13 2:18 
GeneralRe: I am not able to more than 250 records insert into table in sql server 2008 through (Asp.net upload program) Pin
thatraja12-Dec-13 2:56
professionalthatraja12-Dec-13 2:56 
GeneralRe: I am not able to more than 250 records insert into table in sql server 2008 through (Asp.net upload program) Pin
sunil_david17-Dec-13 19:57
sunil_david17-Dec-13 19:57 
GeneralRe: I am not able to more than 250 records insert into table in sql server 2008 through (Asp.net upload program) Pin
Simon_Whale17-Dec-13 22:13
Simon_Whale17-Dec-13 22:13 

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.