Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2008
»
SQL Server 2008 - General
»
CONVERSION DATATYPE
CONVERSION DATATYPE
Rate Topic
Display Mode
Topic Options
Author
Message
lathish2kumar
lathish2kumar
Posted Wednesday, January 02, 2013 5:53 AM
Forum Newbie
Group: General Forum Members
Last Login: Thursday, March 14, 2013 6:44 AM
Points: 3,
Visits: 68
ERROR:The data types varchar and bit are incompatible in the add operator.
CAN ANY ONE KNOW WHAT TYPE OF ERROR IS THIS
CAN U FIND IT PLS
Post #1401799
anthony.green
anthony.green
Posted Wednesday, January 02, 2013 5:57 AM
SSCertifiable
Group: General Forum Members
Last Login: Friday, April 12, 2013 3:51 AM
Points: 5,075,
Visits: 4,831
You cant add a bit to a varchar or a varchar to a bit.
What are you trying to do, string concatenation?
Please provide details of your task at hand.
Want an answer fast? Try here
How to post data/code for the best help - Jeff Moden
Need a string splitter, try this - Jeff Moden
How to post performance problems - Gail Shaw
CrossTabs-Part1
&
Part2 - Jeff Moden
SQL Server Backup, Integrity Check, and Index and Statistics Maintenance - Ola Hallengren
Managing Transaction Logs - Gail Shaw
Troubleshooting SQL Server: A Guide for the Accidental DBA - Jonathan Kehayias and Ted Krueger
Post #1401801
Grant Fritchey
Grant Fritchey
Posted Wednesday, January 02, 2013 6:39 AM
SSChampion
Group: General Forum Members
Last Login: Today @ 3:51 AM
Points: 13,372,
Visits: 25,154
You'll have to CAST one of the data types to one or the other in order to combine them.
----------------------------------------------------
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood..." Theodore Roosevelt
The Scary DBA
Author of:
SQL Server 2012 Query Performance Tuning
SQL Server 2008 Query Performance Tuning Distilled
and
SQL Server Execution Plans
Product Evangelist for
Red Gate Software
Post #1401813
Lynn Pettis
Lynn Pettis
Posted Wednesday, January 02, 2013 6:48 AM
SSC-Insane
Group: General Forum Members
Last Login: Today @ 12:02 AM
Points: 21,596,
Visits: 27,415
lathish2kumar (1/2/2013)
ERROR:The data types varchar and bit are incompatible in the add operator.
CAN ANY ONE KNOW WHAT TYPE OF ERROR IS THIS
CAN U FIND IT PLS
It is in your code, which you didn't post. Hard to help you find it when we can't see it. Also, please use your inside voice, there is no need to yell. (In other words, drop the typing in ALL CAPS.)
Lynn Pettis
For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here
or
when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here
and
here
Managing Transaction Logs
SQL Musings from the Desert
Fountain Valley SQL
(My Mirror Blog)
Post #1401816
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.