If you accessing MSSQL 2005 with MSSQL 2008 management studio, you might getting error of The server principal is not able to access the database when log into the database server.
To fix it,
1. Connect to SQL Server Management Studio.
2. Connect to the SQL server.
3. Click “View” and then select on the “Object Explorer Details”. (This step could be done from shortcut F7) Continue reading MSSQL: The server principal is not able to access the database
Wonder why cPanel database size is not calculated and it is always showing zero (0) in the database section?
You may fix this by 2 options,
1. Log into WHM(Web Host Manager).
2. Go to Server Configuration and look for Tweak Settings.
3. Look for “Include databases in disk usage calculations” and enable it.
4. Save it.
1. Log into SSH.
2. Open the file named /var/cpanel/cpanel.config.
3. Search “disk_usage_include_sqldbs” and change the value to 1.
4. Lastly, run the command as below,
Today, I just noticed that the SQL Server backup is not generated and it is kinda weird.
After looking around from MSDN, it is found out there are some restriction from the backup operation.
– Backup not running due to any databases in offline status.
– Concurrency restriction during backup.
For more information, you may refer to the URL as below.
For some purchase, you might want to show the database from your instance and you are actually could done it with just a query.
With the simply query as below, it will show all of the databases from your instances.
SELECT * FROM sys.sysdatabases
It is very easy if you have ASP.Net script and want to connect to MySQL databases.
Today, Mick Genie will share how to connect your MySQL database with your ASP.Net script.
<%@ Page Language=”VB” debug=”true” %>
<%@ Import Namespace = “System.Data” %>
<%@ Import Namespace = “MySql.Data.MySqlClient” %>
<script language=”VB” runat=”server”>
Sub Page_Load(sender As Object, e As EventArgs)
Dim myConnection As MySqlConnection
Dim myDataAdapter As MySqlDataAdapter
Dim myDataSet As DataSet
Dim strSQL As String
Dim iRecordCount As Integer
myConnection = New MySqlConnection(“server=localhost; user id=mickgenie; password=password; database=database;”)
strSQL = “SELECT * FROM mytable;”
myDataAdapter = New MySqlDataAdapter(strSQL, myConnection)
myDataSet = New Dataset()
MySQLDataGrid.DataSource = myDataSet
<title>Simple MySQL Database Query</title>
<asp:DataGrid id=”MySQLDataGrid” runat=”server” />
From the above code, you may change the setting from myConnection and you shall be able to connect without any problem.