SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Concatenating Text In a Query
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Posting Yak Master

106 Posts

Posted - 03/07/2014 :  08:43:33  Show Profile  Reply with Quote

I'm wanting to concatenate something that doesnt exist to an already existing field.

What I need to do is add a generic email address to every record in a data view

So, what it would do is take the column that does exist and add @domain.com to another column that I would call username

So rather than it just appearing as 911234 it would be a derived column saying 911234@domain.com

i've tried using +''+ but I get a space after the number

Can you help please?

Flowing Fount of Yak Knowledge

1054 Posts

Posted - 03/07/2014 :  09:32:45  Show Profile  Reply with Quote
Post the sql query you've used, along with its output and the issue that is in the output.

Go to Top of Page

Posting Yak Master

106 Posts

Posted - 03/07/2014 :  10:45:02  Show Profile  Reply with Quote
I sorted it now thanks. One of the fields didnt support what I was trying to do
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.17 seconds. Powered By: Snitz Forums 2000