Avatar of N_Sri
N_Sri

asked on 

include schema in the follow query

I want include schema field in the below query.

like my tables are in  Abc schema, and bbc schema

i.e Table ,Schema name .....

SELECT  o.name AS TableName,c.name AS Columnname, c.xtype, T.name,o.type
 FROM syscolumns AS c INNER JOIN
 sysobjects AS o ON c.id = o.id INNER JOIN
 systypes AS T ON c.x[code]type = T.xtype
 WHERE T.name ='smallint' and o.type='U'  
 ORDER BY o.name 

Open in new window

Microsoft SQL Server 2008

Avatar of undefined
Last Comment
N_Sri
ASKER CERTIFIED SOLUTION
Avatar of grtGUY_007
grtGUY_007

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of N_Sri
N_Sri

ASKER

Can you please modify the query and let me know
SOLUTION
Avatar of Alpesh Patel
Alpesh Patel
Flag of India image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
SOLUTION
Avatar of Ebcidic
Ebcidic
Flag of India image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of N_Sri
N_Sri

ASKER

thankyou
Microsoft SQL Server 2008
Microsoft SQL Server 2008

Microsoft SQL Server 2008 is a suite of relational database management system (RDBMS) products providing multi-user database access functionality.Component services include integration (SSIS), reporting (SSRS), analysis (SSAS), data quality, master data, T-SQL and performance tuning. Major improvements include the Always On technologies and support for unstructured data types.

50K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo