Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

column truncated - how to increase column width #539

Open
iateadonut opened this issue Jan 19, 2022 · 0 comments
Open

column truncated - how to increase column width #539

iateadonut opened this issue Jan 19, 2022 · 0 comments

Comments

@iateadonut
Copy link

I'm trying to get all columns in a comma-separated list:

Select TABLE_SCHEMA, TABLE_NAME
    , Stuff(
        (
        Select ', ' + C.COLUMN_NAME
        From INFORMATION_SCHEMA.COLUMNS As C
        Where C.TABLE_SCHEMA = T.TABLE_SCHEMA
            And C.TABLE_NAME = T.TABLE_NAME
        Order By C.ORDINAL_POSITION
        For Xml Path('')
        ), 1, 2, '') As Columns
From INFORMATION_SCHEMA.TABLES As T
WHERE TABLE_NAME = 'Policies'

But the column is trucated:

-----------------------------------------------------------------------+
                                                                       |
-----------------------------------------------------------------------|
cationReceived, LastNotificationEmail, AppCheckNoClaims, AppCheckSe... |
-----------------------------------------------------------------------+

How can in increase the number of characters displayed in a column?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant