Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MSDE DateTime & .Now
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00787336
Message ID:
00787420
Vues:
10
>I am filling my ds with a date via
>dsGetDepapplCL.Tables[0].Rows[0]["ap_lastmod"] = DateTime.Now ;
>or
>dsGetDepapplCL.Tables[0].Rows[0]["ap_lastmod"] = DateTime.Now.Date ;
>
>both show in the debugger via a ToString().
>
>Parse bombs in the SaveDataSet(myDS)
>
>Any ideas?


Why not use the back end ?

CREATE TRIGGER lastmod ON dbo.depappl
FOR INSERT, UPDATE
AS
IF COLUMNS_UPDATED ( ) >0

UPDATE dbo.depappl
SET ap_lastmod=getdate()
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform