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
 Transact-SQL (2000)
 Does This SQL clause can be run?

Author  Topic 

sunnykj
Starting Member

29 Posts

Posted - 2005-01-20 : 09:59:56
select * from TblReport where ReportType=7
<column ReportType char(1)>
different DB return different result.
DB1's result1: normal result
DB2's result2: error-can not convert
why?

AndyB13
Aged Yak Warrior

583 Posts

Posted - 2005-01-20 : 11:17:07
You have got a character value in DB2 whereas DB1 will be all numbers

select * from TblReport where ReportType='7' should work on both

Go to Top of Page
   

- Advertisement -