This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
USE ... | |
GO | |
DROP TRIGGER IF EXISTS set_table_page_compression | |
ON DATABASE | |
GO | |
CREATE TRIGGER set_table_page_compression | |
ON DATABASE | |
FOR CREATE_TABLE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-ChildItem -Path ./src -Filter 'вфт_*' -Recurse | ForEach-Object { if ($_.name -match 'вфт_(.+)_Персонал(.*)') {Rename-Item -Path $_.FullName -NewName $($_.name -replace 'вфт_(.+)_Персонал(.*)', 'вфт_Персонал_$1$2')}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rem Выполняет коммит от имени указанного автора/коммитера на указанные дату и время | |
rem Время указывается по московскому часовому поясу (+3 часа) | |
rem Пример: .\commit.cmd "Artem Kuznetsov" [email protected] "2021-03-05 01:30:00" "мой новый коммит от 05.03.2021" | |
set AUTHOR=%1 | |
set AUTHOR=%AUTHOR:"=% | |
set EMAIL=%2 | |
set EMAIL=%EMAIL:"=% | |
set GIT_COMMITTER_DATE=%3 | |
set GIT_COMMITTER_DATE=%GIT_COMMITTER_DATE:"=%.000000000 +0300 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
set version=%1 | |
set regport=%241 | |
set port=%240 | |
set range=%260:%291 | |
set work_dir=C:\Program Files\1cv8\srvinfo%regport% | |
set srvc_name="1C:Enterprise 8.3 Server Agent (%regport%)" | |
set binpath="C:\Program Files\1cv8\%version%\bin\ragent.exe -srvc -agent -regport %regport% -port %port% -range %range% -debug -http -d \"%work_dir%\"" | |
set description="1C:Enterprise 8.3 Server Agent (%regport%)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
chcp 1251 | |
set restoresrv=MyServer | |
set sqluser=MySQLUser | |
set sqlpassw=%1 | |
set v8ver=8.3.12.1790 | |
set restoreddb=MyDataBase | |
"%ProgramFiles%\1cv8\%v8ver%\bin\1cv8.exe" createinfobase Srvr=%restoresrv%;Ref=%restoreddb%;SQLSrvr=%restoresrv%;DBMS=MSSQLServer;SQLDB=%restoreddb%;SQLUID=%sqluser%;SQLPwd=%sqlpassw%;SQLYOffs=2000;CrSQLDB=n;DB=%restoreddb% /AddInList %restoreddb% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
USE [master] | |
ALTER DATABASE [MyDatabase] MODIFY FILE (NAME = N'CurrentLogicalFileName', NEWNAME = N'NewLogicalFileName') | |
go |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--USE ... | |
DECLARE | |
@PageCount INT = 128 | |
, @RebuildPercent INT = 30 | |
, @ReorganizePercent INT = 10 | |
, @WithRebuild BIT = 1 | |
, @IsOnlineRebuild BIT = 1 | |
, @IsVersion2012Plus BIT = | |
CASE WHEN CAST(SERVERPROPERTY('productversion') AS CHAR(2)) NOT IN ('8.', '9.', '10') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
USE [master] | |
GO | |
SET NOCOUNT ON | |
DECLARE | |
@db SYSNAME | |
, @sql NVARCHAR(MAX) | |
, @can_compress BIT | |
, @WithValidate BIT = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
USE [master] | |
GO | |
SET NOCOUNT ON | |
DECLARE | |
@db SYSNAME | |
, @sql NVARCHAR(MAX) | |
, @can_compress BIT | |
, @WithValidate BIT = 1 |
NewerOlder