PowerBuilder Forum

Members Login
Username 
 
Password 
    Remember Me  
Post Info TOPIC: using timestamps


Newbie

Status: Offline
Posts: 3
Date:
using timestamps


Can anyone tell me how to use timestamps in a stored procedure based datawindow when connecting to SQLServer 2008 using ODBC.

Creating the datawindow using a seect storedprocedure with timestamp (rowversion) went well. Retrieves perfectly the timestamps, but when using insert and update stored procedures I keep on having castproblems. What datatype do I have to use in my stored procedure?

In Powrbuilder 6.0 Unleashed under the heading timestamp they mention that Powerbuilder itself handles the timestamp, so I left out the timestamp in my update and insertstored procedures. The result was, that concurrent users can update both their updates to the same row, so I think thats only of use when using embedded SQL.

Please help?


__________________
Thanx and mercy full faith CodeMaster


Newbie

Status: Offline
Posts: 3
Date:

Thanx,

Got usefull tip at french Sybase ASE forum.

Use Varchar(18) type at Powerbuilder for timestamp and convert timestamp between client and server by using the unsupported functions: 

master.dbo.fn_varbintohexstr
master.dbo.fn_cdc_hexstrtobin

The job is done.

__________________
Thanx and mercy full faith CodeMaster
Page 1 of 1  sorted by
Quick Reply

Please log in to post quick replies.

Tweet this page Post to Digg Post to Del.icio.us


Create your own FREE Forum
Report Abuse
Powered by ActiveBoard