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

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 How do I add a part to a field?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

kifeda
Posting Yak Master

136 Posts

Posted - 01/30/2007 :  12:26:19  Show Profile  Reply with Quote
I have a tabkle that I want to use for NT authnetication. It was a list of domain lan usernames. I want to use NT authentication in ASP but in order to do so I need to add the domain to each of the lan ds. So my username, kssensalo needs to be DOMAIN\kssensalo. I need to do this for 5,000+ plus records. What SQL fucntion would I use? I know I can use LTRIM to remove, but I need to add or append.

Any suggesttions?

nr
SQLTeam MVY

United Kingdom
12543 Posts

Posted - 01/30/2007 :  12:28:56  Show Profile  Visit nr's Homepage  Reply with Quote
select 'DOMAIN\' + name from names


==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

kifeda
Posting Yak Master

136 Posts

Posted - 01/30/2007 :  12:46:45  Show Profile  Reply with Quote
THANKS
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.11 seconds. Powered By: Snitz Forums 2000