Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 inner join and comperison between numeric and nvar

Author  Topic 

pelegk2
Aged Yak Warrior

723 Posts

Posted - 2006-02-08 : 03:24:19
i have an ineer join select
where i want to make a check that
table1.id=table2.field4
the problem is that
table1.id is numeric
table2.field4 is nvarchar
i tried to use cast
table1.id=cast (table2.field4 as numeric)
or
table1.id=cast (table2.field4 as bigint )
but i get the message that error converting nvarchar to numeric/bigint
any idea?
thnaks in advance
peleg




Israel -the best place to live in aftr heaven 9but no one wan't to go there so fast -:)

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2006-02-08 : 03:35:16
try convert table1.id to nvarchar and compare ?

----------------------------------
'KH'


Go to Top of Page
   

- Advertisement -