PC Review


Reply
Thread Tools Rate Thread

Data Relations using GUID (uniqueidentifier)

 
 
Andrew
Guest
Posts: n/a
 
      10th Jul 2003
I am trying to build a data relationship between two tables in a dataset. I
am making the join on fields that are both System.Guid types in .NET and
uniqueidentifiers in SQL Server 2000. The join works as expected when used
in an SQL query but I get an empty set when I use the join in my dataset.

The join was working correctly when we were using integers as the primary
key but after changing the data types to GUIDs I am not able to make the
join.

Has anyone else experienced this kind of problem.

Thanks,
Andrew


 
Reply With Quote
 
 
 
 
CT
Guest
Posts: n/a
 
      11th Jul 2003
Can you post some code, please?

--
Carsten Thomsen
Enterprise Development with Visual Studio .NET, UML, and MSF
http://www.apress.com/book/bookDisplay.html?bID=105
"Andrew" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I am trying to build a data relationship between two tables in a dataset.

I
> am making the join on fields that are both System.Guid types in .NET and
> uniqueidentifiers in SQL Server 2000. The join works as expected when

used
> in an SQL query but I get an empty set when I use the join in my dataset.
>
> The join was working correctly when we were using integers as the primary
> key but after changing the data types to GUIDs I am not able to make the
> join.
>
> Has anyone else experienced this kind of problem.
>
> Thanks,
> Andrew
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing SQL Server GUID (uniqueidentifier) data =?Utf-8?B?Um9iIE0=?= Microsoft Access VBA Modules 1 25th Jul 2006 05:11 AM
GUID from SQL Uniqueidentifier - Empty?! Scott M. Lyon Microsoft VB .NET 1 8th Sep 2005 05:04 PM
GUID from SQL Uniqueidentifier -> Empty?! Scott M. Lyon Microsoft VB .NET 1 8th Sep 2005 04:49 PM
Guid vs. UniqueIdentifier =?Utf-8?B?Q1RNaWxsZXI=?= Microsoft Dot NET Framework 1 12th Feb 2004 05:31 PM
GUID and uniqueidentifier Carl Microsoft C# .NET 2 27th Sep 2003 11:47 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:21 AM.