Viewing 15 posts - 2,851 through 2,865 (of 13,874 total)
You may be interested in using the CONCAT() function – it's tidier (IMO) than all those plus signs, does datatype conversion and handles NULLs for you.
Also note that you...
Jeff, these may be for you (if you dare venture anywhere to buy them, that is!). I have a pair and they work a treat. Not that I don't...
Does this get you anywhere close?
WITH ColumnInfo
AS (SELECT Sch = SCHEMA_NAME(t.schema_id)
,TableName = t.name
...
Spaces at the end of strings are usually ignored by SQL Server. Have a read here for some more detail.
--Neil beat me to it!
Jeff, I think your bracket should be after 'AND', not before it.
Viewing 15 posts - 2,851 through 2,865 (of 13,874 total)