Skip to content
blog.KimConnect.com
Menu
Codes
Windows
Linux
Virtualization
Networking
Database
Category:
Database
blog.KimConnect.com
>>
Codes
,
Database
,
Virtualization
Read More
April 2, 2024
April 2, 2024
kimconnect
kimconnect
How To Link Containers Using Docker Compose
This yields several advantages:1. Direct linking between containers is architectually efficient to direct traffic between…
0 Comments
Read More
January 26, 2023
January 26, 2023
kimconnect
kimconnect
How To Recover SQLSERVER Service from Being Unable to Start
# startSqlService.ps1 # special provision to deal with SQL Server not starting up due to…
0 Comments
Read More
March 10, 2022
March 10, 2022
kimconnect
kimconnect
PowerShell: Automatically Fix SQL Server by Killing Long Running Queries
# autofixSqlLongRunningQueries.ps1 # version 0.01 # This version is limited to SQL Server Localhost execution,…
0 Comments
Read More
January 31, 2022
January 31, 2022
kimconnect
kimconnect
T-SQL: Ad-hoc Commands to Backup All Databases
-- turn on Windows cmd shell EXEC sp_configure 'show advanced options', 1; GO RECONFIGURE; GO…
0 Comments
Read More
January 18, 2022
January 18, 2022
kimconnect
kimconnect
Microsoft SQL Server Connection Timeout
Error Message: Resolution: a. Check SQL Server's Query Execution Timeout: SSMS > Login > Tools…
0 Comments
Read More
January 11, 2022
January 11, 2022
kimconnect
kimconnect
Microsoft SQL Server Replication Setup Error Number MSSQL_REPL2110 and Resolution
Symptom: The distribution agent failed to create temporary files in 'C:\Program Files\Microsoft SQL Server\130\COM' directory…
0 Comments
Read More
November 23, 2021
November 23, 2021
kimconnect
kimconnect
SQL: Truncate Transaction Logs
Overview: Significance: many small teams lack Database Admin resource to babysit SQL databases; therefore, certain…
0 Comments
Read More
October 29, 2021
October 29, 2021
kimconnect
kimconnect
T-SQL: How To Rename Database in Microsoft SQL Server
The T-SQL USE master; GO ALTER DATABASE TEST_MSCRM SET SINGLE_USER WITH ROLLBACK IMMEDIATE; GO ALTER…
0 Comments
Read More
October 6, 2021
October 6, 2021
kimconnect
kimconnect
PowerShell: Detect Microsoft SQL Version and Installed Location
function getSqlInfo{ $results=@() $instances=(get-itemproperty 'HKLM:\SOFTWARE\Microsoft\Microsoft SQL Server').InstalledInstances foreach ($i in $instances){ $p=(Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Microsoft SQL Server\Instance…
0 Comments
Read More
September 29, 2021
September 29, 2021
kimconnect
kimconnect
PowerShell: Get SQL Job History
$computername='sql01' function getSqlJobHistory($sqlServerName){ try{ if(!(get-module SqlServer)){ Install-Module -Name SqlServer } Import-Module -Name SqlServer $sqlServerInstance=Get-SqlInstance -ServerInstance…
0 Comments
Read More
September 29, 2021
September 29, 2021
kimconnect
kimconnect
PowerShell: Get SQL Server Backup Statuses
$computername='sql01' function getSqlBackupInfo ($sqlInstanceName=$env:computername, $dbName){ [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.Smo") $location=if($sqlInstanceName.Contains("`\")){ "SQLSERVER:\SQL\$sqlInstanceName\Databases" }else{ "SQLSERVER:\SQL\$sqlInstanceName\DEFAULT\Databases" } function getPacificTime($time){ if($time){ [System.TimeZoneInfo]::ConvertTimeBySystemTimeZoneId($time,'Pacific…
0 Comments
Read More
September 24, 2021
September 24, 2021
kimconnect
kimconnect
Use PowerShell to Set Microsoft SQL Database Owner
$owner='CAP\SQL Admins' $databaseName='TestDb' $sqlServer=$env:computername function setDbOwner{ param( $principle=$env:USERDOMAIN+'\Domain Admins', $databaseName='TestDB', $sqlServer ) function includeSqlTools{ $ErrorActionPreference='stop'…
0 Comments
Read More
September 24, 2021
September 24, 2021
kimconnect
kimconnect
Use PowerShell to Grant SysAdmin Role to Certain Users
$principle=$env:USERDOMAIN+'\Domain Admins' $sqlServer=$env:computername function includeSqlTools{ $ErrorActionPreference='stop' try{ $trustedPsgallery=(Get-PSRepository PSGallery).InstallationPolicy -eq 'Trusted' if(!$trustedPsgallery){ Set-PSRepository -Name PSGallery…
0 Comments
Read More
September 8, 2021
September 8, 2021
kimconnect
kimconnect
ODBC Driver 32-bit & 64-bit
The 32-bit version: Run: odbcad32.exe > check the list of installed 32-bit drivers as illustrated…
0 Comments
Read More
August 3, 2021
August 3, 2021
kimconnect
kimconnect
How To Move WordPress Site To Kubernetes Cluster
a. Create backups of source files and database - Logon to Current Hosting Provider to…
0 Comments
Read More
March 25, 2021
March 25, 2021
kimconnect
kimconnect
Microsoft SQL: Login failed for user ‘sa’. (.Net SqlClient Data Provider)
Error: ===================================Cannot connect to SQL-SERVER===================================Login failed for user 'sa'. (.Net SqlClient Data Provider) Resolution: 1.…
0 Comments
Read More
January 27, 2021
January 27, 2021
kimconnect
kimconnect
How to Get Table Sizes of a Database in Microsoft SQL Server
Obtain Table Sizes of One or Multiple Names -- Get sizes of multiple tables use…
0 Comments
Read More
January 15, 2021
January 15, 2021
kimconnect
kimconnect
Microsoft SQL Server: How to Use T SQL to Move Transaction Log Files
Automated Script: # moveDbStorage.ps1 # Version 0.0.1 # This version is intended for a local…
0 Comments
Read More
December 29, 2020
December 29, 2020
kimconnect
kimconnect
Microsoft SQL: Shrink vs Truncate
Shrink The shrink command is to reduce the physical log file size of a database.…
0 Comments
Read More
December 2, 2020
December 2, 2020
kimconnect
kimconnect
Microsoft Dynamics 365: System Administrator Profile Corruption Problem
Symptoms: Field Security Profile Does Not List Enabled Custom Fields Certain forms would show a…
0 Comments
Posts navigation
1
2
…
5
Next page
Search
Archives
October 2024
September 2024
August 2024
June 2024
May 2024
April 2024
March 2023
February 2023
January 2023
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
Meta
Register
Log in
Tag Cloud