Skip to content

Instantly share code, notes, and snippets.

@seanbamforth
Created February 24, 2015 11:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seanbamforth/839386abaca60f94fabf to your computer and use it in GitHub Desktop.
Save seanbamforth/839386abaca60f94fabf to your computer and use it in GitHub Desktop.
change collation on all tables in sql server (mssql)
SELECT 'ALTER TABLE [' + SYSOBJECTS.Name + ']' + ' ' + ' COLLATE Latin1_General_CI_AS '
FROM SYSOBJECTS
WHERE SYSOBJECTS.TYPE = 'U'
GO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment