Re: Guid Update Errors

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I reconstructed the datagrid and subsequent add/edd forms -- but now it
appears to work -- no error displayed, but still no data updated into the
table either.
--
Your imagination is the limit --


"Darren Shaffer" wrote:

For the GUID column(s) that are added to your table to track replication,
you
should not list or provide a value for these when inserting or updating
records.
The problem is that the SQL statements that are automatically being
generated for
you by virtue of data binding or a data adapter are not aware of
replication. You
may need to provide your own SQL to insert and update rows in a table that
is a
subscription to a merge pub. Just leave out the GUID columns that
replication
requires in your INSERT or UPDATE statements. You are right, they have
default
values already defined.

--
Darren Shaffer
..NET Compact Framework MVP
Principal Architect
Connected Innovation
www.connectedinnovation.com


"Wendell A. Clark" <dracowiz@xxxxxxxxxxx> wrote in message
news:ONwCGg4RGHA.5808@xxxxxxxxxxxxxxxxxxxxxxx
I have setup a small database on my desktop utilizing SQL 2005 Developer.
I have published it as a merge replication server. When published it added
a GUID (rowguid) to track changes.

I subscribed to the database on my WM 5.0 Pocket PC and then set up the
basic form - DataSet bound grid and the default entry forms.

When I added my first test record it told me that rowguid could not be
null.

I checked the table definition and it is marked with the default as
newid().

I built the PocketGuid class as describd on MSDN and set up my form to
fill the rowguidtextbox with the newguid (guid.tostring()) upon
titletextbox_lostfocus.

I can see the guid in the rowguidtextbox so I know it is not null. Yet,
when I attempt to add a new one again, I get the same error -- rowguid
cannot be null.

Is there something that I am missing --

Or alternately How would I make it work?

--
Wendell A. Clark, BS
Nurses Unlimited, Inc.
432-550-1700 x126
-------------------------------------

CONFIDENTIALITY NOTICE: This e-mail communication and any attachments may
contain confidential and privileged information for the use of the
designated recipients named above. If you are not the intended recipient,
please notify us by reply e-mail. You are hereby notified that you have
received this communication in error and that any review, disclosure,
dissemination, distribution or copying of it or its contents is
prohibited. If you have received this communication in error, please
destroy all copies of this communication and any attachments. Contact the
sender if it continues.






.



Relevant Pages

  • Re: Guid Update Errors
    ... For the GUID columnthat are added to your table to track replication, ... When I added my first test record it told me that rowguid could not be ... This e-mail communication and any attachments may ...
    (microsoft.public.sqlserver.ce)
  • Re: rowguid
    ... acutally to resolve this problem, i create another column as rowguid, just ... replication is unique in the whole database ... >> the guid is generated by the newidfunction in the sqlce. ... >>> Alex Feinman ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Merge replication GUIDs.
    ... Let replication create this column. ... Merge replication will auto supply the guid values. ... Note that you do not need to supply the value of the rowguid col. ... Looking for a SQL Server replication book? ...
    (microsoft.public.sqlserver.replication)
  • Re: SQL replication: not. Need Help
    ... This also doesn't mean you can't use replication. ... >that SQL would install rowguid columns in each table. ... > "Hilary Cotter" wrote in message ...
    (microsoft.public.sqlserver.replication)
  • RE: Failing Merge Replication - Ambiguous column name rowguid
    ... When you start up merge replication if you have a field rowguid with the ... element of is rowguid set to false the replication process will create a new ...
    (microsoft.public.sqlserver.replication)