Re: Access and GUID Column Type
- From: "Oenone" <oenone@xxxxxxxxxxx>
- Date: Sun, 03 Jul 2005 10:10:05 GMT
Dennis wrote:
> "UPDATE Items SET Title='new title' WHERE KeyID= '" & myGUID.ToString
> & "'"
>
> I don't get an error, it just doesn't update the record. The WHERE
> clauses in the SQL's are exactly the same. Why does Select work and
> Update doesn't?
I can't see anything obviously wrong with that statement. Are you sure the
GUID isn't being re-generated? Perhaps you could assign the SQL statement to
a string variable and Debug.WriteLine() it just to be completely sure, then
execute the SQL in the string.
Are you using a SQL Server database? If so you could try these:
- execute the statement that is returned by the Debug.WriteLine() in Query
Analyzer. This will tell you how many records were updated. This will
discount ADO.NET problems.
- run SQL Profiler to see exactly what query was executed.
Hopefully one of these will track down the problem.
--
(O) e n o n e
.
- Follow-Ups:
- Re: Access and GUID Column Type
- From: Dennis
- Re: Access and GUID Column Type
- References:
- Access and GUID Column Type
- From: Dennis
- Re: Access and GUID Column Type
- From: Ken Tucker [MVP]
- Re: Access and GUID Column Type
- From: Dennis
- Access and GUID Column Type
- Prev by Date: Re: Access and GUID Column Type
- Next by Date: masked edit control properties
- Previous by thread: Re: Access and GUID Column Type
- Next by thread: Re: Access and GUID Column Type
- Index(es):
Relevant Pages
|