Hello pxpilot,
It depends on your DB, some of them support MERGE (Oracle for example), which
call either insert or update.
for SQL server you need to implement your SP, there is no merge afaik
---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog:
http://spaces.live.com/laflour
Team blog:
http://devkids.blogspot.com/
"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
pHi All,
pI have the a table with 2 fields: uid, date.
pWhen the user does some activity I log his uid and the date, the
pproblem I have is that the table is not prepoulated with all uid's so
psometimes I need to INSERT and other times I need to UPDATE (if that
puid was already logged). Checking first with SELECT to see if the uid
pexist is the obvious thing but I wonder is there a more effective
pway?
pApp is ASP.NET 2.0 in VB
p>
pThanks
pPxP