Unix Technical Forum

simple query

This is a discussion on simple query within the SQL Server Data Warehousing forums, part of the Microsoft SQL Server category; --> when i type the following query in db1 i get the error mentioned below select * from atsymcatransmittals where ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server Data Warehousing

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 06:03 PM
Rodger
 
Posts: n/a
Default simple query

when i type the following query in db1 i get the error
mentioned below

select * from atsymcatransmittals
where chvTransmittalNo in
(249161, 249162, 249163, 249164)
order by guiuniqueid

they produce the following error when run in SqlTes03.yrs:

Server: Msg 245, Level 16, State 1, Line 1

Syntax error converting the varchar
value '00000020030531RIIN ' to a column of data type int.

but if i give the same query on a similar database db2 it
gives me results

if i give the search condition in single quotes in db1 it
gives me results, but still the case should be similar for
the other database db2 whih is exactly the same. any
database options which i am mising in db1

thanks

rodger



..


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:40 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com