Click here to Skip to main content
16,005,149 members
Home / Discussions / Database
   

Database

 
Generalcolumn iterate Pin
JakubSK29-Mar-04 6:19
JakubSK29-Mar-04 6:19 
GeneralRe: column iterate Pin
Mike Dimmick2-Apr-04 1:49
Mike Dimmick2-Apr-04 1:49 
GeneralRe: column iterate Pin
JakubSK2-Apr-04 2:36
JakubSK2-Apr-04 2:36 
Generalrecordset's delete error Pin
Member 98164629-Mar-04 4:31
Member 98164629-Mar-04 4:31 
GeneralVB6 date vs SQL Server date Pin
gpa200029-Mar-04 2:15
gpa200029-Mar-04 2:15 
GeneralRe: VB6 date vs SQL Server date Pin
Mike Dimmick1-Apr-04 1:03
Mike Dimmick1-Apr-04 1:03 
GeneralRe: VB6 date vs SQL Server date Pin
gpa20001-Apr-04 20:28
gpa20001-Apr-04 20:28 
GeneralRe: VB6 date vs SQL Server date Pin
Mike Dimmick2-Apr-04 1:46
Mike Dimmick2-Apr-04 1:46 
VB6's built-in dates use OLE's DATE format - an 8-byte floating point number based on 30 December 1899 = 0.0, with the time represented as a fraction.

SQL Server's datetime data type is made up of two four-byte signed integers, based on 1 January 1900. The documentation reads:

"Values with the datetime data type are stored internally by Microsoft SQL Server as two 4-byte integers. The first 4 bytes store the number of days before or after the base date, January 1, 1900. The base date is the system reference date. Values for datetime earlier than January 1, 1753, are not permitted. The other 4 bytes store the time of day represented as the number of milliseconds after midnight."

When converting to and from integers, both VB6 and SQL Server simply use their own internal representations, which is why they produce different values.

Stability. What an interesting concept. -- Chris Maunder
GeneralRe: VB6 date vs SQL Server date Pin
gpa20002-Apr-04 11:12
gpa20002-Apr-04 11:12 
GeneralRe: VB6 date vs SQL Server date Pin
jonathan151-Apr-04 3:12
jonathan151-Apr-04 3:12 
GeneralRe: VB6 date vs SQL Server date Pin
Jesse Evans18-Jun-04 6:31
Jesse Evans18-Jun-04 6:31 
GeneralRe: VB6 date vs SQL Server date Pin
jonathan1520-Jun-04 23:47
jonathan1520-Jun-04 23:47 
GeneralAllowCustomPaging = True, occurred problems. Pin
DotNet29-Mar-04 1:27
DotNet29-Mar-04 1:27 
GeneralHelp with Update and Merge Pin
markpirvine29-Mar-04 1:23
markpirvine29-Mar-04 1:23 
GeneralMinus equivalent in Access Pin
Meysam Mahfouzi28-Mar-04 23:07
Meysam Mahfouzi28-Mar-04 23:07 
GeneralRe: Minus equivalent in Access Pin
Mike Ellison29-Mar-04 5:46
Mike Ellison29-Mar-04 5:46 
GeneralRe: Minus equivalent in Access Pin
Meysam Mahfouzi29-Mar-04 17:14
Meysam Mahfouzi29-Mar-04 17:14 
QuestionHow Can I Insert a record between another rows? Pin
roshanak28-Mar-04 22:19
roshanak28-Mar-04 22:19 
AnswerRe: How Can I Insert a record between another rows? Pin
DiWa28-Mar-04 22:48
DiWa28-Mar-04 22:48 
Generaldate part of getdate Pin
Goodway28-Mar-04 20:34
Goodway28-Mar-04 20:34 
GeneralRe: date part of getdate Pin
M Peer28-Mar-04 20:57
M Peer28-Mar-04 20:57 
GeneralFinding a given value in a DataCol Pin
sanjaysagrawal28-Mar-04 6:11
sanjaysagrawal28-Mar-04 6:11 
GeneralRe: Finding a given value in a DataCol Pin
Mazdak28-Mar-04 7:44
Mazdak28-Mar-04 7:44 
GeneralRe: Finding a given value in a DataCol Pin
sanjaysagrawal31-Mar-04 5:02
sanjaysagrawal31-Mar-04 5:02 
GeneralInsertion Practices Pin
Biggelo28-Mar-04 2:44
sussBiggelo28-Mar-04 2: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.