how to change the collate to all the columns of the database?

Try this one – Query: DECLARE @collate SYSNAME SELECT @collate=”Cyrillic_General_CS_AS” SELECT ‘[‘ + SCHEMA_NAME(o.[schema_id]) + ‘].[‘ + o.name + ‘] -> ‘ + c.name , ‘ALTER TABLE [‘ + SCHEMA_NAME(o.[schema_id]) + ‘].[‘ + o.name + ‘] ALTER COLUMN [‘ + c.name + ‘] ‘ + UPPER(t.name) + CASE WHEN t.name NOT IN (‘ntext’, ‘text’) THEN … Read more

MySQL: Get character-set of database or table or column?

Here’s how I’d do it – For Schemas (or Databases – they are synonyms): SELECT default_character_set_name FROM information_schema.SCHEMATA WHERE schema_name = “mydatabasename”; For Tables: SELECT CCSA.character_set_name FROM information_schema.`TABLES` T, information_schema.`COLLATION_CHARACTER_SET_APPLICABILITY` CCSA WHERE CCSA.collation_name = T.table_collation AND T.table_schema = “mydatabasename” AND T.table_name = “tablename”; For Columns: SELECT character_set_name FROM information_schema.`COLUMNS` WHERE table_schema = “mydatabasename” AND table_name … Read more

Changing SQL Server collation to case insensitive from case sensitive?

You basically need to run the installation again to rebuild the master database with the new collation. You cannot change the entire server’s collation any other way. See: MSDN: Setting and changing the server collation How to change database or server collation (in the middle of the page) Update: if you want to change the … Read more

utf8_bin vs. utf_unicode_ci

It depends on what you need. The utf8_bin collation compares strings based purely on their Unicode code point values. If all of the code points have the same values, then the strings are equal. However, this falls apart when you have strings with different composition for combining marks (composed vs. decomposed) or characters that are … Read more

In MySQL, which collation should I choose?

Collation tells database how to perform string matching and sorting. It should match your charset. If you use UTF-8, the collation should be utf8_general_ci. This will sort in unicode order (case-insensitive) and it works for most languages. It also preserves ASCII and Latin1 order. The default collation is normally latin1.

store arabic in SQL database

You need to choose an Arabic collation for your varchar/char columns or use Unicode (nchar/nvarchar) CREATE TABLE #test ( col1 VARCHAR(100) COLLATE Latin1_General_100_CI_AI, col2 VARCHAR(100) COLLATE Arabic_CI_AI_KS_WS, col3 NVARCHAR(100) ) INSERT INTO #test VALUES(N’لا أتكلم العربية’,N’لا أتكلم العربية’,N’لا أتكلم العربية’) Note the N before values in insert statement above. If you do not mention it, … Read more

Difference between utf8mb4_unicode_ci and utf8mb4_unicode_520_ci collations in MariaDB/MySQL?

Well, you can read about the differences in the documentation. I can’t tell you what you should be using because every project is different. 10.1.3 Collation Naming Conventions MySQL collation names follow these conventions: A collation name starts with the name of the character set with which it is associated, followed by one or more … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)