I'm fairly certain there is a very quick and simple solution to the following issue that I'm having...
USE Northwind
DECLARE @COLUMN_NAME VARCHAR(50)
SELECT @COLUMN_NAME='LastName'
--Following result = 8 (Represents the actual length of string 'LastName'
SELECT MAX(LEN(@COLUMN_NAME)) FROM...
gmmastros - thanks for this suggestion, however, i am interested in maintaining case sensitivity in addition to nonalphanumeric characters.
code works as is, but i was just wondering if there was another function within sql that i could have utilzed instead of replace.
thanks again for your help!
Hello,
Just wondering if there was a cleaner way to perform a pattern analysis then using the following code:
USE Northwind
SELECT CustomerID,PostalCode,Replace(Replace(Replace(Replace(Replace(Replace(Replace
(Replace(Replace(Replace(Replace(Replace(Replace(Replace(Replace(Replace(Replace...
Thanks guys for your above response. Both are very good suggestions, however, I was looking for a way in which to transfer results (including column headers) of select statements / temp tables via copy/paste out of the grid view and into ms excel for some quick and dirty analysis.
Again, both...
A huge frustration of mine is copying data from the GridView in SQL Server 2000 Query Analyzer to MS Excel and the fact that the column headers do not seem to come across.
I heard a while back that this issue had been resolved in SQL 2005. I just checked this out and much to my dismay, this...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.