Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

TimeStamp
A question for Delphi experts (dare I ask it in here?)

Do you know how to collect the value in a TimeStamp field?
My intention is to use this value to check whether another user has updated
the field whilst I have been reviewing it - and then I go to make my update.

My TimeStamp field is called Stamp.
I could not find a Delphi type to copy it into directly, so I tried to
convert it to a DateTime with this code:

 myDateTime:=SQLTimeS
 tampToDateTime(myDat
aSet. FieldByName('Stamp')
.AsSQLTimeS
tamp);

This returns the error: "Cannot access field Stamp as type SQLTimeStamp".

Any help would be appreciated.

Thanks,
Steve.


Report this thread to moderator Post Follow-up to this message
Old Post
Sawlmgsj
12-30-05 08:23 AM


Re: TimeStamp
Hi

Comparing the field at binary level would give you the information of
whether it has changed as this is a binary(8) value rather than a datetime.

John


"Sawlmgsj" < Sawlmgsj@discussions
.microsoft.com> wrote in message
news:7AA4FB33-6494-4BAC-9AB5- DEF330E65C0D@microso
ft.com...
>A question for Delphi experts (dare I ask it in here?)
>
> Do you know how to collect the value in a TimeStamp field?
> My intention is to use this value to check whether another user has
> updated
> the field whilst I have been reviewing it - and then I go to make my
> update.
>
> My TimeStamp field is called Stamp.
> I could not find a Delphi type to copy it into directly, so I tried to
> convert it to a DateTime with this code:
>
>  myDateTime:=SQLTimeS
 tampToDateTime(myDat
aSet. FieldByName('Stamp')
.AsSQLTim
eStamp);
>
> This returns the error: "Cannot access field Stamp as type SQLTimeStamp".
>
> Any help would be appreciated.
>
> Thanks,
> Steve.
>



Report this thread to moderator Post Follow-up to this message
Old Post
John Bell
12-30-05 12:23 PM


Sponsored Links





Last Thread Next Thread
Post New Thread

MS SQL Server archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 04:04 AM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006