SQL Server, how to merge two columns into one column?

user3807363 picture user3807363 · Aug 8, 2014 · Viewed 83.6k times · Source

I have a SQL query

SELECT TABLE_SCHEMA + TABLE_NAME AS ColumnZ 
FROM information_schema.tables

I want the result should be table_Schema.table_name.

help me please!!

Answer

Adrian picture Adrian · Aug 8, 2014

Try this:

SELECT TABLE_SCHEMA + '.' + TABLE_NAME AS ColumnZ 
FROM information_schema.tables