-
Summary of commonly used functions and time processing in SqlServer
YEAR() The function returns an integer value that represents the year of the specified date, typically used as Year, such as:YEAR('2023-03-1416:50:08.543')--2023REPLACE() The string replacement function is generally used as: Replace (the searched string, the string to be replaced, and the replacement value), such as:REPLACE ('Test Added ',' of ',' Test Data ') -- Test Added Test DataSTUFF() The function is used to delete a specified length of character and insert another set of characters at the specified starting point...
Database Operation Tutorial 2023-05-12 12:13:30 -
Summary of several methods for removing duplicate data in SQL (window function for data deduplication)
catalogueMethod 1: distinctMethod 2: groupbyMethod 3: Window functionWhen using SQL to extract and analyze data, we often encounter scenarios where data is duplicated, requiring us to perform data deduplication and subsequent analysis.Taking the sales report of a certain e-commerce company as an example, we commonly use distinct or group by statements to deduplicate data...
Database Operation Tutorial 2023-05-12 12:13:26 -
Summary of three methods for creating SQL Server databases
catalogue1 Creating a database using SQL Server Management Studio2 Create a database using the CREATE DATABASE statement.3 Creating a database using a templatesummaryThere are three ways to create a database...
Database Operation Tutorial 2023-05-12 12:13:22 -
Steps to connect to a SQL Server database through Linux installation of ODBC
catalogue1. Download the ODBC installation package2...
Database Operation Tutorial 2023-05-12 12:13:06 -
Solution to Short Term Forced Expiration of SQL Server Database Passwords
1. Open Sqlserver, select the account under the login name, right-click, and click Properties2...
Database Operation Tutorial 2023-05-12 12:13:01 -
SQL Server 2022 AlwaysOn New Features including Availability Group Details
catalogueHow to create an availability group?How to use including availability groups?3. Metadata synchronization verification3...
Database Operation Tutorial 2023-05-12 12:12:54 -
SQLServer Index Fragmentation Query and Processing of Tables
1.2...
Database Operation Tutorial 2023-05-12 12:12:48 -
SQL Server 2012 High Availability Solution
SQL Server 20one2 provides multiple solutions for high availability, such as:one. By using alwayson, virtual IP addresses (VIPs) can be provided to achieve failover and read scalability...
Database Operation Tutorial 2023-05-12 12:12:46 -
SQL Server 2012 Building Database AlwaysOn (Database High Availability Cluster)
To achieve a highly available database cluster, the following aspects need to be considered:1. Database selectionSelect a database that supports high availability...
Database Operation Tutorial 2023-05-12 12:12:42 -
sql server The issue of not being able to fully utilize the number of logical cores in the CPU in 2016
Recently, I encountered a problem in my work where sqlserver2016 cannot fully utilize the CPU core. Through analysis tools, I can see that;There are a total of 72 CPU cores, but SQL Only 40 cores can be used, and many people have encountered this problem...
Database Operation Tutorial 2023-05-12 12:12:37 -
Using SQL; Server partition table function improves database read/write performance
Generally speaking, the first bottleneck point in a system is likely to be the database. For example, our production system has a high concurrency...
Database Operation Tutorial 2023-05-12 12:12:34 -
How to use Pycharm to connect to SQL Server (detailed tutorial)
SQL Sever1433 pycharmpycharmSQL SeverTipSQL Sever: ------------------------------ LAPTOP-40O6HVDS ------------------------------ : (provider: Shared Memory Provider, error: 0 - ) (Microsoft SQL Server: 233) SQL Sever SQL Sever Window create database soft2104soft2104soft2104pycharmuse master --drop database soft2104 -- yunmengzepycharmSQL Sever 123456123456pycharm db_ower SQL Sever SQL Sever: ------------------------------ LAPTOP-40O6HVDS ------------------------------ : (provider: Shared Memory Provider, error: 0 - ) (Microsoft SQL Server: 233) 1433 1433 1433winRcmdtelnet localhost 1433'telnet' winRcontrol Windows Telnet1winRcmdtelnet localhost 1433localhost....
Database Operation Tutorial 2023-05-12 12:12:22