PostgreSQL: Warning: Console code page (437) differs from Windows code page (1252)

From the psql documentation: psql is built as a “console application”. Since the Windows console windows use a different encoding than the rest of the system, you must take special care when using 8-bit characters within psql. If psql detects a problematic console code page, it will warn you at startup. To change the console … Read more

A network-related or instance-specific error occurred while establishing a connection to SQL Server [closed]

Sql Server fire this error when your application don’t have enough rights to access the database. there are several reason about this error . To fix this error you should follow the following instruction. Try to connect sql server from your server using management studio . if you use windows authentication to connect sql server … Read more

Quick ways to test OLE DB Connection String

The following method has proven useful for me. It’s super quick and practical and doesn’t require PowerShell: Open up Notepad and create an empty text file, then click File -> click Save -> and save it with the File name: TestConnection.udl to your desktop. Go to your desktop and double-click on the TestConnection.udl file you … Read more

How to fix “The ConnectionString property has not been initialized”

Referencing the connection string should be done as such: MySQLHelper.ExecuteNonQuery( ConfigurationManager.ConnectionStrings[“MyDB”].ConnectionString, CommandType.Text, sqlQuery, sqlParams); ConfigurationManager.AppSettings[“ConnectionString”] would be looking in the AppSettings for something named ConnectionString, which it would not find. This is why your error message indicated the “ConnectionString” property has not been initialized, because it is looking for an initialized property of AppSettings named … Read more

“Cannot drop database because it is currently in use”. How to fix?

The problem is that your application probably still holds some connection to the database (or another application holds connection as well). Database cannot be deleted where there is any other opened connection. The first problem can be probably solved by turning connection pooling off (add Pooling=false to your connection string) or clear the pool before … Read more

How to increase MySQL connections(max_connections)?

If you need to increase MySQL Connections without MySQL restart do like below mysql> show variables like ‘max_connections’; +—————–+——-+ | Variable_name | Value | +—————–+——-+ | max_connections | 100 | +—————–+——-+ 1 row in set (0.00 sec) mysql> SET GLOBAL max_connections = 150; Query OK, 0 rows affected (0.00 sec) mysql> show variables like ‘max_connections’; … Read more

MySQL – Persistent connection vs connection pooling

Having persistent connections does not imply that all threads use the same connection. It just “says” that you keep the connection open (in contradiction to open a connection each time you need one). Opening a connection is an expensive operation, so – in general – you try to avoid opening connections more often than necessary. … Read more

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