{"id":31542082,"url":"https://github.com/mlorvand/collationdetails","last_synced_at":"2026-05-17T17:02:25.534Z","repository":{"id":314717996,"uuid":"1056519779","full_name":"mlorvand/CollationDetails","owner":"mlorvand","description":"This SQL script provides a complete overview of collation settings for all text-based columns (char, varchar, nchar, nvarchar, etc.) across user tables in a database.","archived":false,"fork":false,"pushed_at":"2025-09-14T09:13:04.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-04T11:41:43.577Z","etag":null,"topics":["collation","database","dba","sql","sql-best-practices","sql-server","sql-tips","tsql"],"latest_commit_sha":null,"homepage":"","language":"TSQL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mlorvand.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-14T09:11:58.000Z","updated_at":"2025-09-14T09:17:41.000Z","dependencies_parsed_at":"2025-09-14T11:30:19.575Z","dependency_job_id":"0046033f-b111-4a2e-bd53-a897195c70a0","html_url":"https://github.com/mlorvand/CollationDetails","commit_stats":null,"previous_names":["mlorvand/collationdetails"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mlorvand/CollationDetails","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlorvand%2FCollationDetails","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlorvand%2FCollationDetails/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlorvand%2FCollationDetails/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlorvand%2FCollationDetails/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mlorvand","download_url":"https://codeload.github.com/mlorvand/CollationDetails/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlorvand%2FCollationDetails/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33147339,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["collation","database","dba","sql","sql-best-practices","sql-server","sql-tips","tsql"],"created_at":"2025-10-04T11:30:07.673Z","updated_at":"2026-05-17T17:02:25.530Z","avatar_url":"https://github.com/mlorvand.png","language":"TSQL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sql-collation-checker\nScript for analyzing SQL Server table columns and their collation settings\n\n# 🔤 SQL Server Collation Insight Script\n\n## 🇬🇧 English\n\nThis SQL script provides a complete overview of **collation settings** for all text-based columns (`char`, `varchar`, `nchar`, `nvarchar`, etc.) across user tables in a database.  \nIt helps DBAs and developers identify inconsistent collations that might cause errors in queries or migrations.\n\n### 🧠 Key Features\n- List of all user tables and their columns  \n- Data type of each column  \n- Collation name applied to each text column  \n- Excludes non-text columns (numeric, binary, etc.)  \n\n\u003e 💡 Useful for troubleshooting issues like *\"Cannot resolve collation conflict...\"* in SQL Server.\n\n---\n\n## 🇮🇷 فارسی\n\nاین اسکریپت SQL نمایی کامل از **Collation** مربوط به ستون‌های متنی (`varchar`، `nvarchar` و …) در جداول دیتابیس ارائه می‌دهد.  \nابزاری کاربردی برای DBAها و توسعه‌دهندگان جهت یافتن ناسازگاری‌های collation که ممکن است باعث خطا در کوئری‌ها یا مهاجرت داده شود.  \n\n### 💎 ویژگی‌ها\n- نمایش نام جدول و ستون  \n- نمایش نوع داده هر ستون  \n- نمایش collation هر ستون متنی  \n- حذف ستون‌های غیرمتنی (عددی، باینری و …)  \n\n\u003e 📌 مناسب برای عیب‌یابی خطاهایی مثل *\"Cannot resolve collation conflict...\"* در SQL Server.\n\n---\n\n## 🇸🇦 العربية\n\nيوفر هذا السكربت SQL نظرة شاملة على إعدادات **Collation** للأعمدة النصية (`varchar`, `nvarchar`, إلخ) في جميع جداول قاعدة البيانات.  \nأداة مفيدة لمسؤولي قواعد البيانات والمطورين لاكتشاف التعارضات في collation التي قد تسبب أخطاء في الاستعلامات أو أثناء الترحيل.\n\n### ✨ الميزات\n- عرض أسماء الجداول والأعمدة  \n- عرض نوع البيانات لكل عمود  \n- عرض إعداد collation لكل عمود نصي  \n- استبعاد الأعمدة غير النصية (رقمية، ثنائية، إلخ)  \n\n\u003e 🛠 مناسب لحل مشاكل مثل *\"Cannot resolve collation conflict...\"* في SQL Server.\n\n---\n\n## 📎 Sample Output\n\n| TableName | ColumnName | DataType | CollationName          |\n|-----------|------------|----------|------------------------|\n| Customers | FirstName  | nvarchar | SQL_Latin1_General_CP1_CI_AS |\n| Orders    | OrderCode  | varchar  | Persian_100_CI_AS      |\n\n---\n\n## 🚀 How to Use\n1. Open **SQL Server Management Studio (SSMS)**.  \n2. Connect to your database.  \n3. Run the script in a new query window.  \n4. Review column collations to detect mismatches or inconsistencies.  \n\n---\n\n## 💬 Contact\nMade with ❤️ by Mehdi Lorvand  \nGitHub: [mlorvand](https://github.com/mlorvand)  \nLinkedIn: [Mahdi Lorvand](https://www.linkedin.com/in/mahdi-lorvand-08aa151a4/)  \n# CollationDetails\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlorvand%2Fcollationdetails","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmlorvand%2Fcollationdetails","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlorvand%2Fcollationdetails/lists"}