Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in SQL Server only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
SQL Server
How to use concat method in sql server?
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
vasavivenu
New Member
Join Date:
Feb 2011
Posts:
37
#1
How to use concat method in sql server?
Mar 11 '11, 03:24 PM
How can i use concat method in sql server/sql express? Can you show a simple query example?
vasavivenu
Last edited by
Niheel
;
Mar 11 '11, 07:13 PM
.
Rabbit
Recognized Expert
MVP
Join Date:
Jan 2007
Posts:
12517
#2
Mar 11 '11, 05:06 PM
In SQL Server, you just use the + operator for concatentation.
Comment
Post
Cancel
vasavivenu
New Member
Join Date:
Feb 2011
Posts:
37
#3
Mar 12 '11, 06:04 AM
thank you, but when i was try to con-cat of to integers,
it gives addtion of those values.how can i over come this?
thanks
vasavivenu
Comment
Post
Cancel
gpl
New Member
Join Date:
Jul 2007
Posts:
152
#4
Mar 12 '11, 03:06 PM
CAST them as strings (varchars) first
eg
Code:
select cast(number1 as varchar(25)) + cast(number2 as varchar(25))
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment