all groups > sql server replication > august 2006 >
You're in the

sql server replication

group:

SQL Mobile and Datasets Problem


SQL Mobile and Datasets Problem Nuno Silva
8/7/2006 12:00:00 AM
sql server replication:
Hi,

I'm using the RDA replication between sql server mobile and sql server
2005. The replication works very well but now i'm facing another
problem, i'm trying to generate dataset on the replicated tables but
when finishing the wizard i always get the error "Dynamic SQL generation
for the UpdateCommand is not supported against a SelectCommand that does
not return any key column information".

All my tables have a primary key (GUID type). I don't understand why
this error keeps appearing...

Could anyone help me with this?

Thanks in advance,
RE: SQL Mobile and Datasets Problem petery NO[at]SPAM online.microsoft.com (
8/8/2006 2:20:03 AM
Hello Nuno,

I understand that you encountered the following exception when you try to
generate dataset on replicated tables. If I'm off-base, please let me know.

"Dynamic SQL generation for the UpdateCommand is not supported against a
SelectCommand that does not return any key column information".

Based on my research, if the a column with datatype is uniqueidentifier and
set ROWGUIDCOL and PRIMARY KEY on SQL mobile, this issue might occur. This
is a known issue of SQL mobile, and product team is evaluating the impact
and consider a fix for the issue. If you'd like to know more details about
this, I recommend that you open a Support incident with Microsoft Customer
Support Services (CSS) so that a dedicated Support Professional can work
with you in a more timely and efficient manner. If you need any help in
this regard, please let me know.

For a complete list of Microsoft Customer Support Services phone numbers,
please go to the following address on the World Wide Web:
<http://support.microsoft.com/directory/overview.asp>

If you are outside the US please see http://support.microsoft.com for
regional support phone numbers.

To work around the issue at present, you may want to use a different column
as primary key or add another identity column as the primary key for the
tables.

Please feel free to let's know if you have any concerns or questions on
this, please feel free to let's know.

Best Regards,

Peter Yang
MCSE2000/2003, MCSA, MCDBA
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications
<http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx>.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
<http://msdn.microsoft.com/subscriptions/support/default.aspx>.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Re: SQL Mobile and Datasets Problem Nuno Silva
8/8/2006 3:19:08 PM
Hi Peter,

First, thanks for your quick reply.

About the database question, in the sql server 2005 table that is used
to replicate with the mobile database, i put the flag rowguid to false
in the uniqueidentifier primary key.

With this option, I've been able to create successfully the datasets in
the replicated tables.

Now, my sql server 2005 tables used to replication doesn't have any
identity column. In your response you said to use two columns, one
primary key and other for identity. Can i use the sql server 2005 tables
for RDA replication without any identity columns defined?

I have another question, can you help me on how to change the value of
the attribute rowguid using transact sql (the desktop software on which
i'm working has already been released and if the change on the attribute
rowguid fix the sync problem, i have to send a sql patch to change this).

Thanks in advance,
Nuno Silva

[quoted text, click to view]
Re: SQL Mobile and Datasets Problem petery NO[at]SPAM online.microsoft.com (
8/9/2006 7:37:26 AM
Hello Nuno,

Thank you for your update. Per your question, it is not neccessary to add a
new identity column for under your situation since uniqueidentifier column
still exists in the table.

Though you may be able to fix the problem by put the rowguid flag to false,
this is not suggested method since this flag might be used in replication
to resolve conflicts. You may consider add another identity column as I
mentioned and set it to primary key as I mentioned.

If you test to make sure your workaround does not have any side effect for
your situation, you may be able to use the following method to drop
rowguidcol property

alter table <table name> alter column <column name> drop rowguidcol

If you have further questions on this issue, please feel free to let me
know. thanks!

Best Regards,

Peter Yang
MCSE2000/2003, MCSA, MCDBA
Microsoft Online Partner Support


=====================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
======================================================

AddThis Social Bookmark Button