Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Microsoft SQL Server > Re: Concatenate...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 11183 of 11517
Post > Topic >>

Re: Concatenate in MSSQL

by --CELKO-- <jcelko212@[EMAIL PROTECTED] > Jun 26, 2008 at 08:21 AM

>> There's no trim in MSSQL. Even if we create a trim() function to user
ltrim(), rtrim() as far as I have searched one must call dbo.trim(field)
instead of trim(field) <<

Use a text editor to change trim() to ltrim(rtrim()), getdate() to
CURRENT_TIMESTAMP, etc.  This is some of the "****table, but not
Standard" syntax in SQL Server.  That means you can fix it with a dumb
text editor.

>> Oracle and DB2 works with the ANSI operator ||. Apparently SQL server
doesn't :-( Is there a way to force the MSSQL to be ANSI compatible?  <<

They overload the + for concatenation.  That can be a ***** and you
wind up doing it by hand -- did you want "<numeric> + <string>" to
cast to numeric and add or cast to strings and concatenate?
 




 2 Posts in Topic:
Concatenate in MSSQL
Harris Kosmidhs <hkosm  2008-06-26 16:47:50 
Re: Concatenate in MSSQL
--CELKO-- <jcelko212@[  2008-06-26 08:21:42 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Dec 3 1:10:38 CST 2008.