<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Sozezzo's notes</title><link>https://www.sozezzo.com/site/</link><description>Recent content on Sozezzo's notes</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>Copyright © 2000-2024 Sozezzo. All Rights Reserved.</copyright><lastBuildDate>Tue, 15 Oct 2024 00:00:00 +0000</lastBuildDate><atom:link href="https://www.sozezzo.com/site/index.xml" rel="self" type="application/rss+xml"/><item><title>Using API chatGPT - first notes</title><link>https://www.sozezzo.com/site/posts/the-begining-of-using-api-chapgpt/</link><pubDate>Sat, 29 Apr 2023 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/the-begining-of-using-api-chapgpt/</guid><description>The ChatGPT API (Application Programming Interface) is a service provided by OpenAI that allows developers to integrate ChatGPT into their applications, products, or services. ChatGPT is a language model based on the GPT architecture, and it can perform various natural language processing tasks, such as generating human-like text, answering questions, summarizing text, and more.
Using the ChatGPT API, developers can send text inputs (prompts or messages) to the model and receive generated text outputs (responses) in return.</description></item><item><title>Execute a query on remote Sql Server</title><link>https://www.sozezzo.com/site/posts/execute_remote_sql_query/</link><pubDate>Sat, 22 Apr 2023 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/execute_remote_sql_query/</guid><description>This code defines a stored procedure called sp_ExecuteRemoteQueryXML that allows you to execute a remote query on a different SQL Server instance and return the result as XML. This can be useful when you need to retrieve data from a remote server and process it as XML in your local SQL Server instance.
By utilizing the OPENROWSET function and dynamic SQL, the procedure establishes a connection to the remote server using the provided connection string and executes the specified query.</description></item><item><title>Creating Automated Browser Tests with Selenium WebDriver in C#</title><link>https://www.sozezzo.com/site/posts/automated-browser-tests-selenium/</link><pubDate>Tue, 13 Dec 2022 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/automated-browser-tests-selenium/</guid><description><![CDATA[Creating the first project with Selenium https://www.selenium.dev/
Start by create a new project : Consoloa App (.Net Framework)
Add the NuGet packages: Selenium.WebDriver
Edit the &ldquo;Program.cs&rdquo; file and add this code :
1 static void Main(string[] args) 2 { 3 IWebDriver driver = new ChromeDriver(); 4 driver.Navigate().GoToUrl(&#34;http://www.google.com&#34;); 5 Thread.Sleep(2000); 6 IWebElement ele = driver.FindElement(By.Name(&#34;q&#34;)); 7 ele.SendKeys(&#34;Selenium browser automated test&#34;); 8 Thread.Sleep(2000); 9 IWebElement ele1 = driver.FindElement(By.Name(&#34;btnK&#34;)); 10 ele1.Click(); 11 Thread.Sleep(20000); 12 13 } and run &hellip;]]></description></item><item><title>How to save/restore serializable object to/from file in C# ?</title><link>https://www.sozezzo.com/site/posts/save-restore-serializable-object-file/</link><pubDate>Tue, 13 Dec 2022 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/save-restore-serializable-object-file/</guid><description>How to save/restore serializable object to/from file in C# ?
Using binary file
Writes and reads ALL object properties and variables to / from the file (i.e. public, protected, internal, and private). The data saved to the file is not human readable, and thus cannot be edited outside of your application. Have to decorate class (and all classes that it contains) with a**[Serializable]** attribute. Use the**[NonSerialized]** attribute to exclude a variable from being written to the file; there is no way to prevent an auto-property from being serialized besides making it use a backing variable and putting the [NonSerialized] attribute on that.</description></item><item><title>Gradle Build tools Fundamentals</title><link>https://www.sozezzo.com/site/posts/gradle-fundamentals/</link><pubDate>Sat, 10 Dec 2022 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/gradle-fundamentals/</guid><description>Gradle# Convention bases build tool DSL to describe the build Support muit-projects Easy customizable Builds many languages Support dependencies Instalation# Setting up Gradle environment
First thing, go to the website: https://gradle.org/
https://gradle.org/releases/
Download the binary-only, and unzip at c:\Gradle\
Add the path of &amp;ldquo;C:\Gradle\gradle-xxx\bin&amp;rdquo; on %Path% environment variable.
Sources:
https://gradle.org/install/#prerequisites</description></item><item><title>How to check the deadlocks</title><link>https://www.sozezzo.com/site/posts/how-to-check-deadlock-online/</link><pubDate>Fri, 25 Nov 2022 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/how-to-check-deadlock-online/</guid><description>Demo Preparation
1 2Create Database [Deadlockdemo] 3go 4use [Deadlockdemo]; 5go 6CREATE TABLE dbo.invoices_demo ( 7 id int NOT NULL, 8 num nvarchar(20) NOT NULL, 9 customer nvarchar(100) NOT NULL, 10 created_at DateTime NOT NULL, 11 updated_at DateTime NOT NULL, 12 CONSTRAINT PK_invoices PRIMARY KEY (id) 13); 14 15CREATE TABLE dbo.invoice_items_demo ( 16 invoice_id int NOT NULL, 17 item_index int NOT NULL, 18 product nvarchar(100) NOT NULL, 19 qty int NOT NULL, 20 price money NOT NULL, 21 CONSTRAINT PK_invoice_items PRIMARY KEY (invoice_id, item_index) 22); 23 24INSERT INTO dbo.</description></item><item><title>Python basics Programming or Programing</title><link>https://www.sozezzo.com/site/posts/python-basics/</link><pubDate>Fri, 25 Nov 2022 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/python-basics/</guid><description><![CDATA[Why Python&hellip;
Versatile, data science, machine learning, web development and more&hellip; Strong community, there are a package for everything. Easy to learn, easy to read, concise, interpreted language.
Install Python&hellip;
Open Microfost Store
https://www.python.org/downloads/
and install Visual Studio Code
https://code.visualstudio.com/download
Config Visual Studio Code
Installing and using Python packagesInstall a library
1 2pip install selenium-stealth Install ChromeDriver
https://sites.google.com/chromium.org/driver
Writing the first Python program&hellip;
1from selenium import webdriver 2from selenium_stealth import stealth 3import time 4 5options = webdriver.]]></description></item><item><title>Groundhog Day</title><link>https://www.sozezzo.com/site/posts/groundhogday/</link><pubDate>Sat, 22 Jan 2022 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/groundhogday/</guid><description><![CDATA[Groundhog Day&hellip;
A few years ago, we needed an application.
Although there are hundreds of applications available on the internet, and everybody use this kind of application, and there are a lot of free open-source available. Well&hellip; We decided to create our version.
&hellip; after months of development, hours and hours of meetings, and bugs that were never fixed&hellip; we had our application.
Finally, after a few years, we decided to have a new application version&hellip;]]></description></item><item><title>Indexing facts</title><link>https://www.sozezzo.com/site/posts/indexingmyths/</link><pubDate>Wed, 19 Jan 2022 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/indexingmyths/</guid><description>Indexing is the fast way to be faster
The problem is, though &amp;hellip; how do you choose the right indexes? How do you choose the right index keys?
It&amp;rsquo;s very easy to choose the wrong indexes, in this case bad performance.
FILLFACTOR and PAD_INDEX
FILLFACTOR and PAD_INDEX are only used when the index is being built or rebuilt. FILLFACTOR = 0, it is the same of FILLFACTOR = 100 There is no formula to calculate FILLFACTOR A good start of FILLFACTOR is 70 when you know nothing about it.</description></item><item><title>Disk runs out of space</title><link>https://www.sozezzo.com/site/posts/diskrunsoutspace/</link><pubDate>Wed, 15 Sep 2021 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/diskrunsoutspace/</guid><description><![CDATA[When there is no more space
Compress folders to Save Storage Space 1 2Invoke-WmiMethod -Path &#34;Win32_Directory.Name=&#39;C:\Test&#39;&#34; -Name compress Command line
1echo Uninstall all previous versions of components 2DISM.exe /online /Cleanup-Image /StartComponentCleanup 3 4echo Remove files needed for uninstallation of service packs BUT It NOT be able to uninstall any currently installed service packs after. 5DISM.exe /online /Cleanup-Image /SPSuperseded 6 7 8echo remove all old versions of every component BUT It NOT be able to uninstall any currently installed service packs after.]]></description></item><item><title>Diagram Guide</title><link>https://www.sozezzo.com/site/posts/diagram/</link><pubDate>Wed, 01 Sep 2021 11:36:50 +0800</pubDate><guid>https://www.sozezzo.com/site/posts/diagram/</guid><description><![CDATA[<p>This article offers a sample of basic diagram usage that can be used in Hugo content files.</p>
<p>Please see also <a href="https://mermaid-js.github.io" target="_blank" rel="noopener noreferrer">Mermaid<i class="fas fa-external-link-square-alt ms-1"></i></a>.</p>]]></description></item><item><title>Find all CLR on SQL Server</title><link>https://www.sozezzo.com/site/posts/findallclrondatabase/</link><pubDate>Tue, 10 Aug 2021 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/findallclrondatabase/</guid><description>Find all CLRs on all databases can be hard work, this code help to find these CLRs.
Select all CLRs on a database:
1-- Select all CLRs on a database 2SELECT distinct 3 DB_NAME() AS DatabaseName, 4 udf.type AS Type, 5 udf.name AS Name, 6 udf.object_id AS ID, 7 udf.create_date AS CreateDate, 8 udf.modify_date AS DateLastModified, 9 ISNULL(sudf.name, N&amp;#39;&amp;#39;) AS Owner, 10 CAST(CASE WHEN udf.principal_id IS NULL THEN 1 11 ELSE 0 END AS bit) AS IsSchemaOwned, 12 SCHEMA_NAME(udf.</description></item><item><title>Time to change</title><link>https://www.sozezzo.com/site/posts/timetochange/</link><pubDate>Sun, 17 Jan 2021 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/timetochange/</guid><description>This time to change, after many years, I left Pluxml. Pluxml is an excellent CMS, it is easy to install, configure, fast, there are a lot of themes and plugins. There is no database, but I had some little issues as ..
Must edit online. Must use Pluxml interface to add new post. You cannot use a writing assistance software. The decision was not easy to take, I have looked for another option since June 2018.</description></item><item><title>Add on Find Your Tab</title><link>https://www.sozezzo.com/site/posts/add-on-find-your-tab/</link><pubDate>Tue, 01 Dec 2020 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/add-on-find-your-tab/</guid><description>A browser add-on to help you find a tab easier.
https://addons.mozilla.org/en-CA/firefox/addon/find-your-tab/</description></item><item><title>Markdown Syntax Guide</title><link>https://www.sozezzo.com/site/posts/markdown-syntax/</link><pubDate>Mon, 09 Nov 2020 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/markdown-syntax/</guid><description>&lt;p>This article offers a sample of basic Markdown syntax that can be used in Hugo content files, also it shows whether basic HTML elements are decorated with CSS in a Hugo theme.&lt;/p></description><enclosure url="https://www.sozezzo.com/site/images/markdown.png" length="10988" type="image/.png"/></item><item><title>SQL Server - Export SQL database to xml files</title><link>https://www.sozezzo.com/site/posts/sql-server-export-sql-database-to-xml-files/</link><pubDate>Fri, 30 Oct 2020 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/sql-server-export-sql-database-to-xml-files/</guid><description>SQL Script to export table data in xml files, or export schema data to xsd files This use OLE Automation Stored Procedures (Transact-SQL), and maybe, you need to change the global configuration settings of SQL Server. It can be an issue in production environment, and this case.
The SQL Script have three stored procedures : #spWriteStringToFile #spExportTableToXmlFile #spExportDatabaseToXmlFile
Check GitHub for last version : https://github.com/sozezzo/SqlServer/
You run #spExportDatabaseToXmlFile, and you can filter by the table name or the scheme name.</description></item><item><title>Find all accounts used for service logon</title><link>https://www.sozezzo.com/site/posts/find-all-accounts-used-for-service-logon/</link><pubDate>Mon, 10 Aug 2020 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/find-all-accounts-used-for-service-logon/</guid><description><![CDATA[This PowerShell script generates an html report listing all accounts used as logon account by services on servers in an Active Directory domain.
The script has filters to ignore accounts : NT Service, NT AUTHORITY and LocalSystem
https://github.com/sozezzo/Powershell/blob/master/Report/report-service-server.ps1
Apply filter by servers and services
1 2$FilterServerLike = &#34;*&#34; ## Select all servers 3$FilterServiceLike = &#34;*&#34; ## Select all services Ignore accounts
1 2$IgnoreAccount_NT_Service = 1 ## NT Service 3$IgnoreAccount_NT_AUTHORITY = 1 ## NT AUTHORITY 4$IgnoreAccount_LocalSystem = 1 ## LocalSystem Powershell script to find servers and services]]></description></item><item><title>SQL Server Data Dictionary Query - Data table</title><link>https://www.sozezzo.com/site/posts/sql-server-data-dictionary-query---data-table/</link><pubDate>Wed, 20 May 2020 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/sql-server-data-dictionary-query---data-table/</guid><description><![CDATA[This query returns list of tables and their columns with details.
1 2SELECT @@Servername AS ServerName 3 , DB_NAME() AS DatabaseName 4 , DB_ID() AS DatabaseId 5 , sc.name AS SchemaName 6 , tab.schema_id AS SchemaId 7 , tab.NAME AS TableName 8 , tab.object_id AS TableId 9 , col.NAME AS ColumnName 10 , col.column_id 11 , t.NAME AS DataTypeName 12 , CASE WHEN t.NAME IN(&#39;nchar&#39;, &#39;nvarchar&#39;) THEN col.max_length/2 ELSE col.max_length END AS Length_Size 13 , t.]]></description></item><item><title>Temporarily disable a trigger on a data table</title><link>https://www.sozezzo.com/site/posts/temporarily-disable-trigger-on-data-table/</link><pubDate>Thu, 16 Jan 2020 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/temporarily-disable-trigger-on-data-table/</guid><description><![CDATA[Disable all triggers on a table, you do what you have to do, after enable only the triggers that have been disabled.
Step 1 : Disable all triggers
1 2--#region Disable triggers 3 4DECLARE @triggers TABLE (SqlEnableTrigger NVARCHAR(MAX)); 5DECLARE @SchemaName VARCHAR(128) = &#39;mySchema&#39;; – ** TO DO ** 6DECLARE @TableName VARCHAR(128) = &#39;mytable&#39;; – ** TO DO ** 7DECLARE @SqlTrigger NVARCHAR(MAX); 8 9DELETE FROM @triggers; 10 11INSERT INTO @triggers (SqlEnableTrigger) 12SELECT &#39;ENABLE TRIGGER &#39; + QUOTENAME(sc.]]></description></item><item><title>Audit jobs</title><link>https://www.sozezzo.com/site/posts/audit-jobs/</link><pubDate>Wed, 15 Jan 2020 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/audit-jobs/</guid><description><![CDATA[A jobSql Job was changed. The questions are: When? by Who?
We suppose you always have a copy of yours jobs.
** Check the SQL Script for shared folder, your e-mail and SMTP server.
Delete old audit configuration – make sure you want to do that.
1 2print @@servername 3 4USE [master] 5 6GO 7 8BEGIN TRY ALTER SERVER AUDIT SPECIFICATION [ServerAuditSpecification] WITH (STATE = OFF); END TRY BEGIN CATCH END CATCH; 9 10BEGIN TRY DROP SERVER AUDIT SPECIFICATION [ServerAuditSpecification]; END TRY BEGIN CATCH END CATCH; 11 12GO 13 14BEGIN TRY ALTER SERVER AUDIT [ServerAudit] WITH (STATE = OFF); END TRY BEGIN CATCH END CATCH; 15 16BEGIN TRY DROP SERVER AUDIT [ServerAudit]; END TRY BEGIN CATCH END CATCH; 17 18GO 19 20--xp_cmdshell &#39;DIR L:Audit*&#39; 21 22exec xp_cmdshell &#39;MD C:Audit*&#39;; 23 24exec xp_cmdshell &#39;DEL C:Audit*.]]></description></item><item><title>Get job name on fly</title><link>https://www.sozezzo.com/site/posts/get-job-name-on-fly/</link><pubDate>Tue, 07 Jan 2020 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/get-job-name-on-fly/</guid><description><![CDATA[Get Job name when you are executing job. This is useful when you need to make reference to the job being executed.
1 2DECLARE @jobname sysname, @jobid uniqueidentifier 3 4SELECT @jobname=b.name,@jobid=b.job_id 5FROM sys.dm_exec_sessions a,msdb.dbo.sysjobs b 6WHERE a.session_id=@@spid 7AND 8(SUBSTRING(MASTER.dbo.FN_VARBINTOHEXSTR(CONVERT(VARBINARY(16), b.JOB_ID)),1,10)) = SUBSTRING(a.PROGRAM_NAME,30,10) 9PRINT &#39;Job Name : &#39; + @jobname Instead, you can Use Tokens in Job Steps. https://docs.microsoft.com/en-us/sql/ssms/agent/use-tokens-in-job-steps
1 2PRINT &#39;Job Name : &#39;+&#39;$(ESCAPE_SQUOTE(JOBNAME))&#39; 3PRINT &#39;Step Name : &#39;+&#39;$(ESCAPE_SQUOTE(STEPNAME))&#39; ]]></description></item><item><title>Get job name on fly</title><link>https://www.sozezzo.com/site/posts/how-create-a-file-data-using-the-command-line/</link><pubDate>Tue, 07 Jan 2020 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/how-create-a-file-data-using-the-command-line/</guid><description>How create a file with 1 GB of data using the command line in Windows Server 2019, you can use the fsutil command. Here&amp;rsquo;s an example:
1fsutil file createnew filename.txt 1073741824 In this command, filename.txt is the name of the file you want to create and 1073741824 is the size of the file in bytes (1 GB).
Note that this command will create a file filled with zeros, which may not be useful for your purposes.</description></item><item><title>Monitoring database size files before blow up</title><link>https://www.sozezzo.com/site/posts/monitoring-database-size-files-before-blow-up/</link><pubDate>Tue, 07 Jan 2020 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/monitoring-database-size-files-before-blow-up/</guid><description>you are already in trouble and it is too late when &amp;hellip;
The transaction log becomes full, SQL Server Database Engine issues a 9002 error. The SQL Server Database Filegroup is Full. Run out of disk space You must have the answer to theses questions:
Who many times the database base can still growth? Do we use the best Practices for Growing Database Files? Growing database files by a percentage is relatively harmless when databases are small.</description></item><item><title>List all table constraints (PK, UK, FK, Check and Default) in SQL Server</title><link>https://www.sozezzo.com/site/posts/list-all-table-constraintspk-uk-fk-checkdefault-in-sql-server/</link><pubDate>Thu, 05 Dec 2019 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/list-all-table-constraintspk-uk-fk-checkdefault-in-sql-server/</guid><description>Query lists all table (and view) constraints - primary keys, unique key constraints and indexes, foreign keys and check, default constraints, and isDisabled.
Columns# SchemaName Name - table or view schema and name object_type - object type: Table View constraint_type - type of constraint: Primary key Unique key Foregin key Check constraint Default constraint constraint_name - name of constraint or index details - details of this constraint: Primary key - PK column(s) Unique key - UK column(s) Foregin key - parent table name Check constraint - check definition Default constraint - column name and default value definition IsDisable – it is disabled or not.</description></item><item><title>Manually Enabling and disabling DNS-over-HTTPS - Firefox Config</title><link>https://www.sozezzo.com/site/posts/manually-enabling-and-disabling-dns-over-https/</link><pubDate>Sun, 10 Nov 2019 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/manually-enabling-and-disabling-dns-over-https/</guid><description>You can enable or disable DoH in your Firefox connection settings:
Click the menu button and select Options.
In the General panel, scroll down to Network Settings and click the Settings… button.
In the dialog box that opens, scroll down to Enable DNS over HTTPS.
On: Select the Enable DNS over HTTPS checkbox. Select a provider or set up a custom provider. Off: Deselect the Enable DNS over HTTPS checkbox. Click OK to save your changes and close the window.</description></item><item><title>Add on Youtube NonStop</title><link>https://www.sozezzo.com/site/posts/add-on-youtube-nonstop/</link><pubDate>Sat, 09 Nov 2019 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/add-on-youtube-nonstop/</guid><description>Tired of getting that &amp;ldquo;Video paused. Continue watching?&amp;rdquo; confirmation dialog?
This extension autoclicks it, so you can listen to your favorite music uninterrupted. Working on YouTube and YouTube Music!
https://addons.mozilla.org/en-US/firefox/addon/youtube-nonstop/?src=search</description></item><item><title>Change SID in Windows Server</title><link>https://www.sozezzo.com/site/posts/change-sid-in-windows-server/</link><pubDate>Thu, 31 Oct 2019 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/change-sid-in-windows-server/</guid><description>Why do I need to change it? Joining VM to the domain when we clone VMs&amp;hellip;
A SID, short for security identifier, is a number used to identify user, group, and computer accounts in Windows. SIDs are created when the account is first created in Windows and no two SIDs on a computer are ever the same. The term security ID is sometimes used in place of the SID or security identifier.</description></item><item><title>Javascript libraries</title><link>https://www.sozezzo.com/site/posts/javascript-libraries/</link><pubDate>Sun, 27 Oct 2019 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/javascript-libraries/</guid><description>A collection of awesome browser-side JavaScript libraries, resources and shiny things.
Package Managers# Host the javascript libraries and provide tools for fetching and packaging them.
npm - npm is the package manager for javascript. Bower - A package manager for the web. component - Client package management for building better web applications. spm - Brand new static package manager. jam - A package manager using a browser-focused and RequireJS compatible repository.</description></item><item><title>Add on Adblock Plus</title><link>https://www.sozezzo.com/site/posts/add-on-adblock-plus/</link><pubDate>Sat, 28 Sep 2019 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/add-on-adblock-plus/</guid><description>Blocks annoying video ads on YouTube, Facebook ads, banners and much more.
Adblock Plus blocks all annoying ads, and supports websites by not blocking unobtrusive ads by default (configurable).
Adblock Plus allows you to regain control of the internet and view the web the way you want to. The add-on is supported by over forty filter subscriptions in dozens of languages which automatically configure it for purposes ranging from removing online advertising to blocking all known malware domains.</description></item><item><title>Temporary Post Used For Theme Detection (58f4bacd-bad3-4f62-8b27-2489c163ec3c - 3bfe001a-32de-4114-a6b4-4005b770f6d7)</title><link>https://www.sozezzo.com/site/posts/temporary-post-used-for-theme-detection/</link><pubDate>Sat, 17 Aug 2019 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/temporary-post-used-for-theme-detection/</guid><description>This is a temporary post that was not deleted. Please delete this manually. (820657ab-6f50-4e08-8d8e-77bdd749a95e - 3bfe001a-32de-4114-a6b4-4005b770f6d7)</description></item><item><title>Add on Web Developer</title><link>https://www.sozezzo.com/site/posts/add-on-web-developer/</link><pubDate>Sat, 29 Jun 2019 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/add-on-web-developer/</guid><description>The Web Developer extension adds various web developer tools to the browser.
https://addons.mozilla.org/en-US/firefox/addon/web-developer/</description></item><item><title>Add on AdBlocker for YouTube by AdblockLite</title><link>https://www.sozezzo.com/site/posts/adblocker-for-youtube-by-adblocklite/</link><pubDate>Wed, 26 Jun 2019 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/adblocker-for-youtube-by-adblocklite/</guid><description># Ads just annoy me and I&amp;rsquo;ve never bought anything from an ad.
On YouTube, you have to listen then, no way, I will not waste minutes of my life waiting for ads.
AdBlocker for YouTube™ removes all annoying Ads from YouTube. Important features:
Allows you to remove annoying contents from your YouTube videos. You can also remove annotations from videos and musics (see options page). Loads videos and YouTube website faster.</description></item><item><title>PHP Tools for Visual Studio expired</title><link>https://www.sozezzo.com/site/posts/php-tools-for-visual-studio-expired/</link><pubDate>Sun, 28 Apr 2019 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/php-tools-for-visual-studio-expired/</guid><description>Tutorial to add more trial time.
Step 1 : Registry - Add fake date
Open Regedit
Find registry key
Computer\HKEY_CURRENT_USER\Software\DEVSENSE\PHP Tools for Visual Studio\VS 15.0
VS 15.0 it is my version of Visual Studio
Change registry
Delete : DisableStartupTrialWindow
Change date to future date : TrialStart ex: 2060-01-01T01:00:00
Step 2 : Visual Studio - Get an error
Open Visual Studio
Try to use PHP Tools for Visual Studio
We will have error 9.</description></item><item><title>Mongo DB - Document Database</title><link>https://www.sozezzo.com/site/posts/mongo-db-document-database/</link><pubDate>Sun, 07 Apr 2019 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/mongo-db-document-database/</guid><description>The big thing is … Mongo BD is NOT RDBMS!
In OOP are not tables and rows, objects use polymorphism, inheritance, and it is not uniform. Use objects with RDBMS can be hard.
Mongo DB has no schema to define, no tables and no relationships between collections of objects. Each document can be flat, simple, or complex as we wish. There are no locks of tables, or columns.
Durability vs Consistency</description></item><item><title>Add-on User-Agent Switcher</title><link>https://www.sozezzo.com/site/posts/addin-user-agent-switcher/</link><pubDate>Fri, 05 Apr 2019 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/addin-user-agent-switcher/</guid><description>Quickly and easily switch between popular user-agent strings.
https://mybrowseraddon.com/useragent-switcher.html
https://addons.mozilla.org/en-US/firefox/addon/user-agent-switcher-revived/?src=search</description></item><item><title>Add-on Decentraleyes</title><link>https://www.sozezzo.com/site/posts/addin-decentraleyes/</link><pubDate>Thu, 04 Apr 2019 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/addin-decentraleyes/</guid><description>Protects you against tracking through &amp;ldquo;free&amp;rdquo;, centralized, content delivery. It prevents a lot of requests from reaching networks like Google Hosted Libraries, and serves local files to keep sites from breaking. Complements regular content blockers.
https://addons.mozilla.org/en-US/firefox/addon/decentraleyes/?src=search</description></item><item><title>Add-on Google search link fix</title><link>https://www.sozezzo.com/site/posts/plugin-google-search-link-fix/</link><pubDate>Wed, 03 Apr 2019 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/plugin-google-search-link-fix/</guid><description>Prevents Google and Yandex search pages from modifying search result links when you click them.Google and Yandex search pages have the annoying habit of changing the result link when you click it. So if you right-click the link in order to copy it you get some gibberish instead of what you wanted.
This extension disables that behavior – on any Google or Yandex domain, without having to configure anything. Simply install and enjoy!</description></item><item><title>Add-on No Script</title><link>https://www.sozezzo.com/site/posts/plugin-no-script/</link><pubDate>Tue, 02 Apr 2019 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/plugin-no-script/</guid><description>he NoScript Firefox extension provides extra protection for Firefox, Seamonkey and other mozilla-based browsers: this free, open source add-on allows JavaScript, Java, Flash and other plugins to be executed only by trusted web sites of your choice (e.g. your online bank).
https://noscript.net/
https://addons.mozilla.org/en-CA/firefox/addon/noscript/</description></item><item><title>SQL Script to send a file by FTP</title><link>https://www.sozezzo.com/site/posts/sql-script-to-send-a-file-by-ftp/</link><pubDate>Fri, 15 Mar 2019 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/sql-script-to-send-a-file-by-ftp/</guid><description>This Stored procedure send a file by FTP.
Check if SQL Agent has access to the file and FTP server.
The little trick is to create a file that will run. It can have conflicts easily because filename is always the same. Next version will be with random name.
Use this code carefully, it is not 100% safe.
1 2USE master; 3 PRINT &amp;#39;-- Server name: &amp;#39;+@@servername 4 5IF EXISTS ( 6 SELECT * 7 FROM sysobjects 8 WHERE id = object_id(N&amp;#39;[dbo].</description></item><item><title>Install PHP on Windows Server 2016</title><link>https://www.sozezzo.com/site/posts/install-php-on-windows-server-2016/</link><pubDate>Sun, 10 Mar 2019 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/install-php-on-windows-server-2016/</guid><description>Easy steps to install PHP on Windows Server 2016
This tutorial was create for Windows Server 2016 x64, but you can do it on Windows Workstation x86, but you just need to use x86 everywhere.
# REQUIREMENTS# Windows Server 2016 IIS PHP bin files WinCache VC++ IIS service with CGI extension.# Before to install, verify if you already have it.
1 2Get-WindowsFeature web-cgi Powershell command to install
1 2Install-WindowsFeature -name web-server,web-cgi –IncludeManagementTools Installing PHP# Download PHP version you want to install.</description></item><item><title>Rich Content</title><link>https://www.sozezzo.com/site/posts/rich-content/</link><pubDate>Sun, 10 Mar 2019 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/rich-content/</guid><description><![CDATA[<p>Hugo ships with several <a href="https://gohugo.io/content-management/shortcodes/#use-hugo-s-built-in-shortcodes" target="_blank" rel="noopener noreferrer">Built-in Shortcodes<i class="fas fa-external-link-square-alt ms-1"></i></a> for rich content, along with a <a href="https://gohugo.io/about/hugo-and-gdpr/" target="_blank" rel="noopener noreferrer">Privacy Config<i class="fas fa-external-link-square-alt ms-1"></i></a> and a set of Simple Shortcodes that enable static and no-JS versions of various social media embeds.</p>]]></description></item><item><title>Placeholder Text</title><link>https://www.sozezzo.com/site/posts/placeholder-text/</link><pubDate>Sat, 09 Mar 2019 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/placeholder-text/</guid><description>&lt;p>Lorem est tota propiore conpellat pectoribus de pectora summo.&lt;/p></description></item><item><title>Math Typesetting</title><link>https://www.sozezzo.com/site/posts/math-typesetting/</link><pubDate>Fri, 08 Mar 2019 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/math-typesetting/</guid><description>&lt;p>Mathematical notation in a Hugo project can be enabled by using third party JavaScript libraries.&lt;/p></description></item><item><title>Emoji Support</title><link>https://www.sozezzo.com/site/posts/emoji-support/</link><pubDate>Tue, 05 Mar 2019 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/emoji-support/</guid><description>&lt;p>Emoji can be enabled in a Hugo project in a number of ways.&lt;/p></description></item><item><title>MySql Reset root password</title><link>https://www.sozezzo.com/site/posts/mysql-reset-root-password/</link><pubDate>Wed, 20 Feb 2019 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/mysql-reset-root-password/</guid><description><![CDATA[Step by step how you can change &lsquo;root&rsquo; password
You must have rights to stop/start services, and kill process.
Step 1: Stop MySql service run: services.msc &hellip;
Step 2 : Create file to reset password You can use your password and your file name. We use password : Pass1Word2 and file name : C:\temp\reset.txt
1 2USE mysql; 3UPDATE mysql.user SET Password=PASSWORD(&#39;Pass!Word@&#39;) WHERE User=&#39;root&#39;; 4FLUSH PRIVILEGES; Step 3 : Find our my.]]></description></item><item><title>Simple log connections SQLServer 2000</title><link>https://www.sozezzo.com/site/posts/simple-log-connections-sqlserver-2000/</link><pubDate>Tue, 06 Nov 2018 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/simple-log-connections-sqlserver-2000/</guid><description>This code create a table to log all connections.
It is very simple, it just logs when, who, from where and which database.
For this we use “master.dbo.sysprocesses” https://docs.microsoft.com/en-us/sql/relational-databases/system-compatibility-views/sys-sysprocesses-transact-sql?view=sql-server-2017
Create table to log on [Master] database.
1USE [master] GO CREATE TABLE [dbo].[dbaLogAccess] ( [dbaLogAccessId] [int] IDENTITY (1, 1) NOT NULL , [ConnectionDate] [datetime] NULL , [loginame] [nvarchar] (128) COLLATE SQL_Latin1_General_CP1_CI_AI NULL , [hostname] [nchar] (128) COLLATE SQL_Latin1_General_CP1_CI_AI NOT NULL , [dbname] [nvarchar] (128) COLLATE SQL_Latin1_General_CP1_CI_AI NULL ) ON [PRIMARY] Script to add logs, you can run each minute to update the log.</description></item><item><title>SQL Server Sp_msforeachdb query character without limitation</title><link>https://www.sozezzo.com/site/posts/sql-server-sp-msforeachdb-query-character-without-limitation/</link><pubDate>Wed, 24 Oct 2018 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/sql-server-sp-msforeachdb-query-character-without-limitation/</guid><description>When we write a query than is running for every database in the instance of SQL Server, we use Sp_msforeachdb.
If your query is bigger than 2000 chars, the query cannot work because Sp_msforeachdb has a character limitation of 2000 chars.
The solution is to re-create MySp_myforeachdb. We use sp_helptext to see the definition of sp_MSforeachdb and sp_MSforeach_worker, and we change to a new character limitation of 262144 chars.
Everything works as before but without character limitation of 2000 chars.</description></item><item><title>Reorganize or Rebuild Indexes</title><link>https://www.sozezzo.com/site/posts/reorganize-or-rebuild-indexes/</link><pubDate>Sun, 21 Oct 2018 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/reorganize-or-rebuild-indexes/</guid><description>This script remedy index fragmentation by reorganizing or rebuilding an index.
Small tables, small indexes, low fragmentation, we do not care, and keep simple &amp;amp; easy
We are talking about the guidance which is: •if a table has less than 10000 rows, to do nothing •if an index has less than 1000 pages, to do nothing •if the index has: less than 5% logical fragmentation, to do nothing between 5% and 30% logical fragmentation, reorganize it more than 30% logical fragmentation, rebuild it • New FILLFACTOR = 98%</description></item><item><title>Monitor new files</title><link>https://www.sozezzo.com/site/posts/monitor-new-files/</link><pubDate>Tue, 16 Oct 2018 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/monitor-new-files/</guid><description><![CDATA[It just monitor a folder for new files with Powershell.
1 2#My function 3function Do-MonitorNewFile-TODO($Event_name, $Event_FullPath, $Event_changeType, $Event_TimeGenerated) 4{ 5 Write-Host &#34;The file &#39;$Event_name&#39; was $Event_changeType at $Event_TimeGenerated&#34; -ForegroundColor red 6} 7 8function Do-MonitorNewFile($Sourcepath, $MonitorName) 9{ 10 # Remove previous event 11 Unregister-Event -SourceIdentifier &#34;$MonitorName&#34; -ErrorAction SilentlyContinue 12 Remove-Event -SourceIdentifier &#34;$MonitorName&#34; -ErrorAction SilentlyContinue 13 14 # Watcher 15 $watcher = New-Object System.IO.FileSystemWatcher 16 $watcher.IncludeSubdirectories = 1 17 $watcher.Path = $Sourcepath 18 $watcher.]]></description></item><item><title>Search all tables, all columns for a specific value SQL Server</title><link>https://www.sozezzo.com/site/posts/search-all-tables-all-columns-for-a-specific-value-sql-server/</link><pubDate>Thu, 07 Jun 2018 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/search-all-tables-all-columns-for-a-specific-value-sql-server/</guid><description><![CDATA[This script* search for a specific value that you can select sql type:
String - %my string% Number - exact number Date - exact format yyyy/MM/dd HH:mm:ss XML - %my string% You can limit how many result by tables using &ldquo;TOP n&rdquo;
You must select database to run this script, and avoid using production environment.
* Tested with Sql Server 2012, 2014 and 2016
1 2-- Set Parameters ------------ 3 4DECLARE @Search nvarchar(120) = &#39;2008&#39;; 5 6DECLARE @CheckString INT = 1; 7DECLARE @CheckNumber INT = 0; 8DECLARE @CheckDateTime INT = 0; -- cast(@castDateTime) 9DECLARE @CheckXml INT = 0; 10 11DECLARE @ReturnTop NVARCHAR(50) = &#39;TOP 100&#39;; 12DECLARE @castDateTime NVARCHAR(50) = &#39;yyyy/MM/dd HH:mm:ss&#39;; -- yyyy/MM/dd HH:mm:ss 13 14----------------------- 15SET NOCOUNT ON 16PRINT &#39;-- Server Name : &#39; + @@servername 17PRINT &#39;-- Database : &#39; + db_name() 18 19BEGIN TRY DROP TABLE #ColumnCast; END TRY BEGIN CATCH /* SELECT ERROR_NUMBER() AS ErrorNumber , ERROR_SEVERITY() AS ErrorSeverity , ERROR_STATE() AS ErrorState , ERROR_PROCEDURE() AS ErrorProcedure , ERROR_LINE() AS ErrorLine , ERROR_MESSAGE() AS ErrorMessage;*/ END CATCH; 20CREATE TABLE #Columncast ( [Typelist] nvarchar(MAX) , [Columncast] nvarchar(128) , [ColumnWhere] nvarchar(256) ); 21IF (@CheckString = 1) BEGIN INSERT INTO #Columncast ( [Typelist] , [Columncast] , [ColumnWhere] ) VALUES ( &#39;|nvarchar|varchar|char|nchar|&#39;, &#39;$ColumnName&#39;, &#39; $ColumnCast LIKE &#39;&#39;%$Search%&#39;&#39;&#39; ) END; 22IF (@CheckNumber = 1) BEGIN INSERT INTO #Columncast ( [Typelist] , [Columncast] , [ColumnWhere] ) VALUES ( &#39;|int|smallint|real|bigint|bigint|tinyint|float|bit|decimal|numeric|&#39;, &#39;CAST($ColumnName AS NVARCHAR(128))&#39;, &#39; $ColumnCast = &#39;&#39;$Search&#39;&#39;&#39; ) END; 23IF (@CheckDateTime = 1) BEGIN INSERT INTO #Columncast ( [Typelist] , [Columncast] , [ColumnWhere] ) VALUES ( &#39;|datetime|time|smalldatetime|&#39;, &#39;FORMAT($ColumnName, &#39;&#39;&#39;+@castDateTime+&#39;&#39;&#39;)&#39;, &#39; $ColumnCast = &#39;&#39;$Search&#39;&#39;&#39; ) END; 24IF (@CheckXml = 1) BEGIN INSERT INTO #Columncast ( [Typelist] , [Columncast] , [ColumnWhere] ) VALUES ( &#39;|xml|&#39;, &#39;CAST($ColumnName AS NVARCHAR(MAX))&#39;, &#39; $ColumnCast LIKE &#39;&#39;%$Search%&#39;&#39;&#39; ) END; 25 26BEGIN TRY DROP TABLE #Tables; END TRY BEGIN CATCH /* SELECT ERROR_NUMBER() AS ErrorNumber , ERROR_SEVERITY() AS ErrorSeverity , ERROR_STATE() AS ErrorState , ERROR_PROCEDURE() AS ErrorProcedure , ERROR_LINE() AS ErrorLine , ERROR_MESSAGE() AS ErrorMessage;*/ END CATCH; 27CREATE TABLE #Tables ( TableId int IDENTITY(1,1) NOT NULL, TableName nvarchar(512) , ColumnName nvarchar(256) , ColumnWhere nvarchar(256) , ColumnCast nvarchar(512), SqlScript nvarchar(max) ); 28 29DECLARE @Template nvarchar(max) = &#39;SELECT $ReturnTop &#39;&#39;$TableName&#39;&#39; as TableName, &#39;&#39;$ColumnName&#39;&#39; as ColumnName, $Columncast as ColumnValue FROM $TableName with(nolock) WHERE $ColumnWhere&#39;; 30 31DECLARE @CollateDatabase nvarchar(100); 32-- Fix Collation bug 33SELECT @CollateDatabase = collation_name FROM sys.]]></description></item><item><title>sp_whoisactive Downloads version SQL Script</title><link>https://www.sozezzo.com/site/posts/sp-whoisactive-downloads-version-sql-script/</link><pubDate>Thu, 26 Apr 2018 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/sp-whoisactive-downloads-version-sql-script/</guid><description><![CDATA[We have this great Website about the Stored Procedure : sp_whoisactive - Version 11.30 - December 10, 2017
This version does NOT create a stored procedure, it just run in an ad hoc manner.
1 2-- http://whoisactive.com 3 4SET QUOTED_IDENTIFIER ON; 5SET ANSI_PADDING ON; 6SET CONCAT_NULL_YIELDS_NULL ON; 7SET ANSI_WARNINGS ON; 8SET NUMERIC_ROUNDABORT OFF; 9SET ARITHABORT ON; 10GO 11 12DECLARE 13 --~ 14 --Filters--Both inclusive and exclusive 15 --Set either filter to &#39;&#39; to disable 16 --Valid filter types are: session, program, database, login, and host 17 --Session is a session ID, and either 0 or &#39;&#39; can be used to indicate &#34;all&#34; sessions 18 --All other filter types support % or _ as wildcards 19 @filter sysname = &#39;&#39; 20 , @filter_type VARCHAR(10) = &#39;session&#39; 21 , @not_filter sysname = &#39;&#39; 22 , @not_filter_type VARCHAR(10) = &#39;session&#39; 23 , 24 25 --Retrieve data about the calling session?]]></description></item><item><title>Why metadata matters</title><link>https://www.sozezzo.com/site/posts/why-metadata-matters/</link><pubDate>Fri, 06 Apr 2018 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/why-metadata-matters/</guid><description>Metadata is who you talk to when where for how long how often on what device or way.
&amp;ldquo;Metadata absolutely tells you everything about somebody’s life, if you have enough metadata you don’t really need content…. [It’s] sort of embarrassing how predictable we are as human beings.&amp;rdquo;
They know you rang a phone sex service at 2:24 am and spoke for 18 minutes. But they don&amp;rsquo;t know what you talked about.</description></item><item><title>Nettoyer une nouvelle installation de Windows 10</title><link>https://www.sozezzo.com/site/posts/windows10/</link><pubDate>Tue, 27 Mar 2018 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/windows10/</guid><description>Préambule# Note : tout est réalisé (sous vos yeux ébahis) dans une VM Virtualbox.
Ce n&amp;rsquo;est pas la peine de commencer à troller. Oui, on essaie de parler libre ici. Mais l&amp;rsquo;idée est aussi de filer des astuces qui peuvent être utiles à tout le monde. Or, parfois, « tout le monde » a un Windows 10. Et pour plein de raisons (Progiciel mono-OS, proche qui ne veut pas / n&amp;rsquo;est pas prêt à tester autre chose), il faut réinstaller son Windows.</description></item><item><title>Resistance Is Futile. To Change Habits, Try Replacement Instead.</title><link>https://www.sozezzo.com/site/posts/resistance-is-futile-to-change-habits-try-replacement-instead/</link><pubDate>Sun, 25 Mar 2018 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/resistance-is-futile-to-change-habits-try-replacement-instead/</guid><description>Carl Jung quote: “What you resist not only persists but will grow in size.”
Source : https://www.nytimes.com/2018/03/19/your-money/resistance-is-futile-to-change-habits-try-replacement-instead.html</description></item><item><title>Get column creation datatype for declaration</title><link>https://www.sozezzo.com/site/posts/get-column-creation-datatype-for-declaration/</link><pubDate>Tue, 13 Mar 2018 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/get-column-creation-datatype-for-declaration/</guid><description>This is quick way to get a string containing the sql datatype required for a column declaration, a create table, a print variables, or convert data to XML and XML to data, based on temp table and column information.
How to use:
1. Create your select statement 2. Define if you use or not prefix - you have prefix to column names and variable names. 3. Select and run the template to create your snippet code.</description></item><item><title>How to print VARCHAR(MAX) using Print Statement?</title><link>https://www.sozezzo.com/site/posts/how-to-print-varchar-max-using-print-statement/</link><pubDate>Wed, 07 Mar 2018 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/how-to-print-varchar-max-using-print-statement/</guid><description>SSMS default maximum number of characters displayed in each column is 256. You can change this option on: Option/Query Results/SQL Server/Results to Text but, the maximum value is 8192 characters.
This is a solution when you need to print more that 8192 characters:
1use master; 2go 3drop proc if exists sp_Print; 4go 5create or alter proc sp_Print 6( @Text nvarchar(max) ) 7 as 8begin 9 declare @pText nvarchar(max) = @Text; 10 declare @pTextNewLine nvarchar(2) = CHAR(13) + CHAR(10); -- ** it is a good practice to use CR and LF together.</description></item><item><title>Rebuild all indexes for all tables and all databases</title><link>https://www.sozezzo.com/site/posts/rebuild-all-indexes-for-all-tables-and-all-databases/</link><pubDate>Wed, 21 Feb 2018 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/rebuild-all-indexes-for-all-tables-and-all-databases/</guid><description><![CDATA[Maintain database indexes
You can just create script or run right now the reindex. Verify the configuration to filter databases or to change the FILLFACTOR.
1 2PRINT &#39;-- ***************************************** --&#39; 3PRINT &#39;-- Reindex all tables&#39; 4PRINT &#39;-- on selected databases&#39; 5PRINT &#39;-- ***************************************** --&#39; 6PRINT &#39;--&#39; 7PRINT &#39;/*&#39; 8PRINT @@servername; 9PRINT Getdate(); 10PRINT &#39;*/&#39; 11SET NOCOUNT ON; 12 13-- CONFIGURATION 14DECLARE @runScriptRightNow INT = 0; 15DECLARE @fillfactor AS NVARCHAR(10) = &#39;99&#39; -- occuped% -- &lt;a href=&#34;https://docs.]]></description></item><item><title>Create backup operator</title><link>https://www.sozezzo.com/site/posts/create-backup-operator/</link><pubDate>Sun, 18 Feb 2018 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/create-backup-operator/</guid><description><![CDATA[Create backup operator login
1 2PRINT &#39;-- Create backup operator login&#39; 3 4DECLARE @loginName as NVARCHAR(256) = N&#39;UserDbBackupOperator&#39; 5DECLARE @password as nvarchar(128) = N&#39;MyDbBackupStrongPassword&#39; 6 7DECLARE @sql AS NVARCHAR(MAX) 8If not Exists (select loginname from master.dbo.syslogins where name = @loginName ) 9Begin 10 Select @SQL = &#39;CREATE LOGIN &#39; + QUOTENAME(@loginName) + &#39;WITH PASSWORD=N&#39;&#39;&#39;+@password+&#39;&#39;&#39;, DEFAULT_DATABASE=[master], CHECK_EXPIRATION=OFF, CHECK_POLICY=OFF&#39;; 11 EXEC sp_executesql @sql 12End 13select @sql = &#39;USE [?];IF (NOT EXISTS(SELECT * FROM [?]]></description></item><item><title>Get List of Linked Servers and associated logins</title><link>https://www.sozezzo.com/site/posts/get-list-of-linked-servers-and-associated-logins/</link><pubDate>Tue, 23 Jan 2018 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/get-list-of-linked-servers-and-associated-logins/</guid><description><![CDATA[Script to get Linked server list. We have repeated linked server name if it has more than one associated remote login.
1 2SELECT @@SERVERNAME AS &#39;Server Name&#39; 3, sys.servers.server_id AS &#39;IdLinkedServer&#39; 4, sys.servers.name AS &#39;Linked Server Name&#39; 5, CASE sys.servers.Server_id WHEN 0 THEN &#39;Current Server&#39; 6 ELSE &#39;Remote Server&#39; END AS &#39;Server &#39; 7, sys.servers.product 8, sys.servers.provider 9, sys.servers.data_source 10, sys.servers.catalog 11, CASE sys.linked_logins.uses_self_credential WHEN 1 THEN &#39;Uses Self Credentials&#39; 12 ELSE sys.]]></description></item><item><title>Powershell - Multi-line Comment and Uncomment</title><link>https://www.sozezzo.com/site/posts/powershell-multi-line-comment-and-uncomment/</link><pubDate>Mon, 22 Jan 2018 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/powershell-multi-line-comment-and-uncomment/</guid><description><![CDATA[Source : http://blog.danskingdom.com/powershell-ise-multiline-comment-and-uncomment-done-right-and-other-ise-gui-must-haves/
Ctrl + K Comment Selected Lines Ctrl + Shift + K Uncomment Selected Lines 1 2# Define our constant variables. 3[string]$NEW_LINE_STRING = &#34;`r`n&#34; 4[string]$COMMENT_STRING = &#34;#&#34; 5 6function Select-EntireLinesInIseSelectedTextAndReturnFirstAndLastSelectedLineNumbers([bool]$DoNothingWhenNotCertainOfWhichLinesToSelect = $false) 7{ 8&lt;# 9 .SYNOPSIS 10 Exands the selected text to make sure the entire lines are selected. 11 Returns $null if we can&#39;t determine with certainty which lines to select and the 12 13 .DESCRIPTION 14 Exands the selected text to make sure the entire lines are selected.]]></description></item><item><title>Force to shrink log file over AlwaysOn</title><link>https://www.sozezzo.com/site/posts/force-to-shrink-log-file-over-alwayson/</link><pubDate>Mon, 04 Dec 2017 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/force-to-shrink-log-file-over-alwayson/</guid><description>Context: Database log file is huge and you are not able to shrink it. You do not have more free space. Disaster is coming, or it is already there.
What you have done? I hope you never use this script, but if you need to use this script, you must to think how you never use again. This atomic database bomb.
Shrink database is bad practice (Increases fragmentation and reduces performance).</description></item><item><title>Resuming data movement on database HADR</title><link>https://www.sozezzo.com/site/posts/resuming-data-movement-on-database-hadr/</link><pubDate>Thu, 09 Nov 2017 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/resuming-data-movement-on-database-hadr/</guid><description><![CDATA[When we have un have an unhealthy data synchronization state, we can always use graphic interface to resume data movement.
This script resume when the database need it, but you must connect on secondary server to run it.
1 2-- You can use SQLCMD Mode 3-- :CONNECT &lt;MyServer&gt; 4PRINT &#39;-- SQL Script to SET HADR RESUME&#39; 5PRINT &#39;&#39; 6SET NOCOUNT ON; 7DECLARE @sql nvarchar(MAX); 8 9DECLARE @dbname nvarchar(255); 10BEGIN TRY DROP TABLE #db; END TRY BEGIN CATCH END CATCH; 11SELECT sys.]]></description></item><item><title>Disable all the SQL jobs at once</title><link>https://www.sozezzo.com/site/posts/disable-all-the-sql-jobs-at-once/</link><pubDate>Fri, 15 Sep 2017 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/disable-all-the-sql-jobs-at-once/</guid><description><![CDATA[When you have several sql jobs that need to be disabled all. If you can, you can just turn off SQL Agent but, sometime, it is not possible.
This script generates the script to enable and disable.
1 2--generate disable 3SELECT &#39;exec msdb..sp_update_job @job_name = &#39;&#39;&#39;+NAME+&#39;&#39;&#39;, @enabled = 0&#39; FROM msdb..sysjobs 4 5--generate enable 6SELECT &#39;exec msdb..sp_update_job @job_name = &#39;&#39;&#39;+NAME+&#39;&#39;&#39;, @enabled = 1&#39; FROM msdb..sysjobs When you have your jobs organized by category, you can use this script:]]></description></item><item><title>Broker Service between two servers</title><link>https://www.sozezzo.com/site/posts/broker-service-between-two-servers/</link><pubDate>Tue, 05 Sep 2017 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/broker-service-between-two-servers/</guid><description>We have a lot of blogs and documents that can explain how service broker works.
https://msdn.microsoft.com/en-us/library/bb839489(v=sql.105).aspx
This step by step how to configure SQL Server Service Broker between two servers.
You have two Windows Servers with SQL Server each one with a database. We will use this list of SQL variables: $(SQLServer1) Name of Windows Server 1 $(SQLServer2) Name of Windows Server 2 $(SQLInstance1) Name of instance of SQL Server 1 $(SQLInstance2) Name of instance of SQL Server 2 $(Database1) Name of Database 1 $(Database2) Name of Database 2 $(Password) Password to create master key.</description></item><item><title>Setting Up Database Mirroring</title><link>https://www.sozezzo.com/site/posts/setting-up-database-mirroring/</link><pubDate>Fri, 02 Jun 2017 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/setting-up-database-mirroring/</guid><description>Create mirror between two server without witness (High safety without automatic failover - synchronous).
This exemple use TechNet Virtual Labs : Exploring AlwaysOn Availability Groups in SQL Server 2014
This script will not change anything in your database, it just will create the scripts for.
All script was create for TechLabs :
Primary Server SQL Server : SQLONE Secondary Server SQL Server : SQLTWO Mirroring User : contoso\SQLService Temp Path : \\SQLONE\s$ Mirroing Port : 5022 ENDPOINT name : Hadr_endpoint</description></item><item><title>How do I enable a service broker queue when it is disabled?</title><link>https://www.sozezzo.com/site/posts/how-do-i-enable-a-service-broker-queue-when-it-is-disabled/</link><pubDate>Tue, 23 May 2017 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/how-do-i-enable-a-service-broker-queue-when-it-is-disabled/</guid><description><![CDATA[You can manually disable or enable the service through SQL Server Management Studio or run the ALTER QUEUE command for:
1 2-- Enable 3ALTER QUEUE [queuename] WITH STATUS = ON; 4 5-- Disable 6ALTER QUEUE [queuename] WITH STATUS = OFF; But, it can be complicated when you need over all database.
This script enable all queue over all databases:
1 2print &#39;-- SQL Script enable all queue on all databases&#39; 3print &#39;-- &#39;+ @@servername 4print &#39;-- &#39;+ CAST(getdate() as nvarchar(50)); 5SET NOCOUNT ON; 6Declare @sql nvarchar(max); 7declare @dbname nvarchar(255); 8BEGIN TRY drop table #db; END TRY BEGIN CATCH END CATCH; 9SELECT * INTO #db FROM sys.]]></description></item><item><title>Keep just a process - command line</title><link>https://www.sozezzo.com/site/posts/keep-just-a-process-command-line/</link><pubDate>Fri, 28 Apr 2017 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/keep-just-a-process-command-line/</guid><description><![CDATA[ 1&lt;/p&gt; 2 3&lt;p&gt;echo off 4cls 5set token=0 6tasklist /FI &#34;imagename eq cmd.exe&#34; /NH /FO csv &amp;gt; tk.lst 7type tk.lst 8echo.---------------- 9for /F &#34;eol=; tokens=2,3* delims=,&#34; %%i in (tk.lst) do call :process %%i 10goto :eof&lt;/p&gt; 11 12&lt;p&gt;:process&lt;/p&gt; 13 14&lt;p&gt;if &#34;%token%&#34;==&#34;0&#34; ( 15 set token=1 16 goto :eof 17) 18 19echo %date% %time% 20taskkill /F /PID %1&lt;/p&gt; 21 22&lt;p&gt;goto :eof&lt;/p&gt; 23 24&lt;p&gt; &lt;/p&gt; 25 26&lt;p&gt; ]]></description></item><item><title>Get info about SQL Server</title><link>https://www.sozezzo.com/site/posts/get-info-about-sql-server/</link><pubDate>Mon, 24 Apr 2017 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/get-info-about-sql-server/</guid><description><![CDATA[Check SQL Version
1 2SELECT 3@@servername AS ServerName 4, CASE WHEN CONVERT(VARCHAR(128), SERVERPROPERTY (&#39;productversion&#39;)) LIKE &#39;8%&#39; THEN &#39;SQL2000&#39; 5WHEN CONVERT(VARCHAR(128), SERVERPROPERTY (&#39;productversion&#39;)) LIKE &#39;9%&#39; THEN &#39;SQL2005&#39; 6WHEN CONVERT(VARCHAR(128), SERVERPROPERTY (&#39;productversion&#39;)) LIKE &#39;10.0%&#39; THEN &#39;SQL2008&#39; 7WHEN CONVERT(VARCHAR(128), SERVERPROPERTY (&#39;productversion&#39;)) LIKE &#39;10.5%&#39; THEN &#39;SQL2008 R2&#39; 8WHEN CONVERT(VARCHAR(128), SERVERPROPERTY (&#39;productversion&#39;)) LIKE &#39;11%&#39; THEN &#39;SQL2012&#39; 9WHEN CONVERT(VARCHAR(128), SERVERPROPERTY (&#39;productversion&#39;)) LIKE &#39;12%&#39; THEN &#39;SQL2014&#39; 10WHEN CONVERT(VARCHAR(128), SERVERPROPERTY (&#39;productversion&#39;)) LIKE &#39;13%&#39; THEN &#39;SQL2016&#39; 11ELSE &#39;unknown&#39; END AS MajorVersion , SERVERPROPERTY(&#39;ProductLevel&#39;) AS ProductLevel 12, SERVERPROPERTY(&#39;ProductVersion&#39;) AS ProductVersion , SERVERPROPERTY(&#39;Edition&#39;) AS Edition 13, (SELECT COUNT(*) AS CPUs FROM sys.]]></description></item><item><title>101 commandes indispensables sous linux</title><link>https://www.sozezzo.com/site/posts/101-commandes-indispensables-sous-linux/</link><pubDate>Fri, 21 Apr 2017 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/101-commandes-indispensables-sous-linux/</guid><description>Plan de l’article# Commandes de bases Manipuler les fichiers Flux de redirection Gestion du multitache et tache de fond Users, groups et CHMOD Système Web Gestion réseau Commandes spécifiques aux ordis Apple Commandes de bases, navigation dans les fichiers# ls liste les fichiers d’un dossier. Options : -a pour les fichiers cachés, -l pour la liste détaillées, -h pour les tailles en unités « human readable ».
cd change directory, la commande permet de naviguer dans l’arborescence.</description></item><item><title>Unblock cellphone</title><link>https://www.sozezzo.com/site/posts/unblock-cellphone/</link><pubDate>Tue, 11 Apr 2017 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/unblock-cellphone/</guid><description><![CDATA[Faire déverrouiller votre appareil dans un magasin de détail ou un concessionnaire (c&rsquo;est &ldquo;se faire voler&rdquo;).
Il vous impose un frais d’environ 50$ (taxes exigibles en sus) Vous devez satisfaire une série des critères. Vous pouvez perdre la garantie. L&rsquo;avertissement que certaines options pourraient ne plus fonctionner correctement. Pourquoi débloquer mon cellulaire?
Économiser de l&rsquo;argent. Être libre d&rsquo;utiliser n&rsquo;importe quel opérateur de cellulaire. C&rsquo;est écolo, on recycle. Mais, la question est toujours là.]]></description></item><item><title>The most costy queries by CPU</title><link>https://www.sozezzo.com/site/posts/the-most-costy-queries-by-cpu/</link><pubDate>Fri, 31 Mar 2017 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/the-most-costy-queries-by-cpu/</guid><description>Before to start to change everything, you must have a baseline that it established in normal load operation for comparisons.
1 2SELECT TOP 20 3 qs.sql_handle 4, DB_NAME(CAST(pa.value as INT)) as DatabaseName 5, qs.execution_count 6, qs.total_worker_time AS Total_CPU 7, total_CPU_inSeconds = qs.total_worker_time/1000000 8, average_CPU_inSeconds = (qs.total_worker_time/1000000) / qs.execution_count 9, qs.total_elapsed_time 10, total_elapsed_time_inSeconds = qs.total_elapsed_time/1000000 11, st.text , qp.query_plan 12FROM sys.dm_exec_query_stats AS qs 13CROSS APPLY sys.dm_exec_query_plan (qs.plan_handle) AS qp 14CROSS APPLY sys.</description></item><item><title>Force Drop login</title><link>https://www.sozezzo.com/site/posts/force-drop-login/</link><pubDate>Tue, 17 Jan 2017 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/force-drop-login/</guid><description>A login cannot be dropped while it is logged in. A login that owns any securable, server-level object, or SQL Server Agent job cannot be dropped.
This code can be used to drop Login from SQL Server and user name associated with this Login in different databases.
1 2------------------------------------ 3-- Drop user - SQL Script -- 4------------------------------------ 5-- 6-- Login name to delete 7DECLARE @userToDelete nvarchar(200) = &amp;#39;TestLogin&amp;#39;; 8-- 9-- 10IF (NOT EXISTS (SELECT * FROM sys.</description></item><item><title>Enable broker service on all databases</title><link>https://www.sozezzo.com/site/posts/enable-broker-service-on-all-databases/</link><pubDate>Mon, 31 Oct 2016 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/enable-broker-service-on-all-databases/</guid><description>Enable broker service on all databases but it check if Service Broker is enabled.
1 2-- ***************************************** -- 3-- SQL Script to ENABLE_BROKER 4-- ***************************************** -- 5-- 6PRINT @@servername; 7PRINT Getdate(); 8BEGIN TRY DROP TABLE #dbs; END TRY BEGIN CATCH END CATCH; 9 10--#region Select databases to Enable Broker Service 11 12SELECT [name] INTO #dbs 13FROM sys.databases 14WHERE 15 database_id &amp;gt; 4 16 AND is_broker_enabled = 0 -- check if Service Broker is enabled.</description></item><item><title>Drop all databases SQL Server</title><link>https://www.sozezzo.com/site/posts/drop-all-database-sql-server/</link><pubDate>Sun, 23 Oct 2016 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/drop-all-database-sql-server/</guid><description>We have many ways to drop a database, but if you want to drop many databases.
You can have some problems with opened connections, but this script kill all connection and drop the database.
1 2-- ***************************************** -- 3-- SQL Script to drop databases 4-- ***************************************** -- 5-- 6PRINT @@servername; 7PRINT Getdate(); 8BEGIN TRY DROP TABLE #dbs; END TRY BEGIN CATCH END CATCH; 9 10--#region Select databases to DROP 11 12SELECT [name] INTO #dbs 13FROM sys.</description></item><item><title>Recover ‘SA’ password</title><link>https://www.sozezzo.com/site/posts/recover-sa-password/</link><pubDate>Thu, 22 Sep 2016 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/recover-sa-password/</guid><description>How reset the ‘sa’ password of SQL Server:
Plan A - If you have an account in sysadmin role then you can use SSMS or T-SQL:
1 2GO 3ALTER LOGIN [sa] WITH DEFAULT_DATABASE=[master] 4GO 5USE [master] 6GO 7ALTER LOGIN [sa] WITH PASSWORD=N&amp;#39;Pass1word$&amp;#39; 8GO Plan B- If you do not have an account in sysadmin role, but you are local administrator.
Restart SQL Server in single-user mode; Open ‘sqlcmd’ and add yourself in the sysadmin role; Undo step 1; That’s all pretty easy.</description></item><item><title>General Interference with Organizations and Production</title><link>https://www.sozezzo.com/site/posts/general-interference-with-organizations-and-production/</link><pubDate>Tue, 09 Aug 2016 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/general-interference-with-organizations-and-production/</guid><description><![CDATA[(11) General Interference with Organizations and Production# (a) Organizations and Conferences# (1) Insist on doing everything through &ldquo;channels.&rdquo; Never permit short-cuts to be taken in order to, expedite decisions.
(2) Make &ldquo;speeches.&rdquo; Talk as frequently as possible and at great length. Illustrate your &ldquo;points&rdquo; by long anecdotes and accounts of personal experiences. Never hesitate to make a few appropriate &ldquo;patriotic&rdquo; comments.
(3) When possible, refer all matters to committees, for &ldquo;further study and consideration.]]></description></item><item><title>Unused indexes</title><link>https://www.sozezzo.com/site/posts/unused-indexes/</link><pubDate>Thu, 07 Jul 2016 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/unused-indexes/</guid><description><![CDATA[Unused indexes should be deleted, but you would not drop all the unused indexes without deep analyse.
This a script delete all unused indexes.
- Nonclustered indexes
Non primary keys Non unique Non unused (#Total reads &lt; 100) Finding Unused Indexes &ndash; Only Nonclustered
1 2SELECT 3 db_name() as DatabaseName 4 ,sys.schemas.NAME AS ShemaName 5 ,sys.tables.NAME AS TableName 6 ,sys.indexes.NAME AS IndexName 7 ,8 * SUM(sys.allocation_units.used_pages) AS IndexSize 8 ,sys.dm_db_index_usage_stats.user_updates AS &#39;Total Writes&#39; 9 ,sys.]]></description></item><item><title>Opened transactions - Sql Server</title><link>https://www.sozezzo.com/site/posts/opened-transactions-sql-server/</link><pubDate>Thu, 23 Jun 2016 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/opened-transactions-sql-server/</guid><description><![CDATA[Script to show all opened transactions:
1 2SELECT d.name as DatabaseName 3, ses.host_name as [host_name] 4, ses.login_time AS session_login_time 5, ses.last_request_start_time 6, ses.last_request_end_time 7, ses.login_name 8, ses.nt_user_name 9, ses.STATUS 10, tst.session_id as SPID 11, tst.enlist_count AS nr_active_reqs_in_session 12, tst.is_user_transaction 13, CASE tst.is_user_transaction WHEN 1 THEN &#39;Transaction initiated by user request&#39; 14 WHEN 0 THEN &#39;System transaction&#39; END AS tran_status 15, tst.is_local 16, CASE tst.is_local WHEN 1 THEN &#39;Local transaction&#39; 17 WHEN 0 THEN &#39;Distributed transaction&#39; END AS is_local_description 18, tat.]]></description></item><item><title>Concatenating Column Values into a Comma-Separated List</title><link>https://www.sozezzo.com/site/posts/concatenating-column-values-into-a-comma-separated-list/</link><pubDate>Tue, 17 May 2016 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/concatenating-column-values-into-a-comma-separated-list/</guid><description><![CDATA[We can easily concatenate column values into a comma-separated list with a variable, but this solution we can avoid to use a variable.
1PRINT &#39;-- Concatenating Column Values into a Comma-Separated List&#39; 2 3GO 4 5--#region Create my test table 6 7begin try drop table YourTable ; end try begin catch end catch -- begin try catch 8 9create table YourTable (colKey nvarchar(50), colVal nvarchar(1), colOrderBy int); 10 11insert YourTable values (&#39;a&#39;,3, 1), (&#39;a&#39;, 1, 2), (&#39;b&#39;,8, 3), (&#39;b&#39;,7, 1), (&#39;b&#39;,6, 2); 12 13--#endregion Create my test table 14 15GO 16 17SELECT DISTINCT colKey 18 19,STUFF(( 20 21 SELECT (&#39;, &#39; + CAST(tbDetail.]]></description></item><item><title>15 Techniques infaillibles pour prendre votre interlocuteur pour un con</title><link>https://www.sozezzo.com/site/posts/15-techniques-infaillibles-pour-prendre-votre-interlocuteur/</link><pubDate>Thu, 05 May 2016 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/15-techniques-infaillibles-pour-prendre-votre-interlocuteur/</guid><description>Des gens d’une mauvaise foi absolue, vous en avez forcément dans votre entourage. En général, ceux-ci sont prêts à user de toutes les malhonnêtetés argumentatives pour tenter de vous convaincre… ce qui est souvent très énervant! Mais voyez plutôt le bon côté des choses, ces abrutis vous offrent sur un plateau un véritable terrain d’expérimentations qui vous permettra de devenir expert ès sophisme. C’est parti pour une visite guidée des arguments les plus fallacieux qu’on peut vous opposer!</description></item><item><title>Writing to Config file WITHOUT System.Configuration (Windows CE)</title><link>https://www.sozezzo.com/site/posts/writing-to-config-file-without-system-configuration-windows-ce/</link><pubDate>Wed, 13 Apr 2016 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/writing-to-config-file-without-system-configuration-windows-ce/</guid><description>A config file for a .NET application is a text file that has a name of myapplication.exe.config.
The Windows CE does not make things easy for you! It allows you to add a file named “App.config” to your project and it will copy it to the appropriate bin directory and rename it to myapplication.exe.config, but you cannot access it.
App.condig is nothing more than XML. Here&amp;rsquo;s my version to access config file by Windows CE Application :</description></item><item><title>What is “sexism”?</title><link>https://www.sozezzo.com/site/posts/what-is-sexism/</link><pubDate>Tue, 29 Mar 2016 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/what-is-sexism/</guid><description>Site d&amp;rsquo;origine : https://scontent-cdg2-1.xx.fbcdn.net/hphotos-xlf1/v/t1.0-9/12814146_907823359338020_9217280933448877328_n.jpg?oh=50e23fa42fbdc935831538222b83150d&amp;oe=5765B8BD</description></item><item><title>Shrink all database</title><link>https://www.sozezzo.com/site/posts/shrink-all-database/</link><pubDate>Fri, 18 Mar 2016 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/shrink-all-database/</guid><description><![CDATA[This script backup and shrink all database.
Everybody says to never use it but shrinking is necessary if your log/data has grown out of control, or as part of a process to remove excessive fragmentation.
Source: http://www.sqlskills.com/blogs/paul/why-you-should-not-shrink-your-data-files/
https://www.brentozar.com/archive/2009/08/stop-shrinking-your-database-files-seriously-now/
Attention : It has parameter, check it.
This SQL Script does:
Create backup but it is overwrite. SHRINK DATABASE SHRINK Files 1 2PRINT &#39;/*----------------------------------&#39; 3PRINT &#39;Shrink all databases without fragmentation&#39; 4PRINT &#39;&#39; 5PRINT &#39;Shrinking is necessary &#39; 6PRINT &#39;if your log/data has grown out of control,&#39; 7PRINT &#39;&#39; 8PRINT &#39; * You must check the parameters *&#39; 9PRINT &#39;&#39; 10PRINT &#39;Server Name : &#39; + @@servername 11PRINT &#39;Date : &#39; + CAST(Getdate() as nvarchar(max)) 12PRINT &#39;&#39; 13 14DECLARE @ParameterLocalBackupFile AS NVARCHAR(MAX) = &#39;D:\SQLServer\backup.]]></description></item><item><title>Create a new password</title><link>https://www.sozezzo.com/site/posts/create-a-new-password/</link><pubDate>Fri, 11 Mar 2016 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/create-a-new-password/</guid><description>To create a password, stay paranoid and trust no one.
This page you can copy it and run offline to create new strong password.
You can check your password.
This source to create password is nice, but they force you to use their web site, you can &amp;ldquo;not&amp;rdquo; copy it. http://passwordsgenerator.net/</description></item><item><title>Confiance en l’informatique</title><link>https://www.sozezzo.com/site/posts/confiance-en-linformatique/</link><pubDate>Mon, 29 Feb 2016 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/confiance-en-linformatique/</guid><description><![CDATA[Pouvez-vous faire confiance à votre ordinateur ?# De qui votre ordinateur doit-il recevoir ses ordres ?
De vous bien sur !
Vous l&rsquo;avez acheté. Les logiciels que vous utilisez sont vendus par des sociétés sérieuses, et vous n&rsquo;en avez piraté aucun. Vous payez sa connexion Internet. Il vous sert à traiter vos données. Ce n&rsquo;est qu&rsquo;un simple outil, une machine à écrire avec un peu d&rsquo;intelligence&hellip;
Et pourtant&hellip;
Quand a-t-il planté pour la dernière fois ?]]></description></item><item><title>Conversion d’une variable XML à une table</title><link>https://www.sozezzo.com/site/posts/conversion-dune-variable-xml-a-une-table/</link><pubDate>Mon, 29 Feb 2016 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/conversion-dune-variable-xml-a-une-table/</guid><description><![CDATA[XML original:
1 2declare @xml xml = &#39; 3&lt;MyRow rowValue2=&#34;NewValue3&#34;&gt; 4 &lt;IdProduct&gt;312345&lt;/IdProduct&gt; 5 &lt;CodeProduct&gt;CAPEX&lt;/CodeProduct&gt; 6 &lt;IdCaract1&gt;12&lt;/IdCaract1&gt; 7 &lt;IdCaract2&gt;23&lt;/IdCaract2&gt; 8 &lt;Description&gt;XML Support in Microsoft SQL Server&lt;/Description&gt; 9 &lt;item&gt; 10 &lt;myitem&gt;13&lt;/myitem&gt; 11 &lt;/item&gt; 12 &lt;item&gt; 13 &lt;myitem&gt;14&lt;/myitem&gt; 14 &lt;/item&gt; 15&lt;/MyRow&gt; 16&lt;MyRow rowValue1=&#34;myNewRow1&#34; rowValue2=&#34;NewValue2&#34;&gt; 17 &lt;IdProduct CanBeDeleted=&#34;Yes&#34;&gt;312345&lt;/IdProduct&gt; 18 &lt;CodeProduct&gt;TOPEX&lt;/CodeProduct&gt; 19 &lt;IdCaract1&gt;13&lt;/IdCaract1&gt; 20 &lt;IdCaract2&gt;14&lt;/IdCaract2&gt; 21 &lt;Description&gt;Server-Side Support&lt;/Description&gt; 22&lt;/MyRow&gt; 23&#39; Sélection de données 1:
1 2SELECT 3 Tbl.Col.value(&#39;IdProduct[1]&#39;, &#39;int&#39;) as IdProduct, 4 Tbl.Col.value(&#39;CodeProduct[1]&#39;, &#39;nvarchar(10)&#39;) as CodeProduct, 5 Tbl.]]></description></item><item><title>Update an user-defined error message</title><link>https://www.sozezzo.com/site/posts/update-a-user-defined-error-message/</link><pubDate>Wed, 24 Feb 2016 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/update-a-user-defined-error-message/</guid><description><![CDATA[Script pour créer un script de création et manutention de messages d&rsquo;erreur.
Il y a de scripts sur l&rsquo;internet qui peut vous aider, mais ces scripts ne sont pas &ldquo;Safe to run&rdquo;.
Sources :
https://msdn.microsoft.com/en-us/library/ms178649.aspx
http://sqlmag.com/blog/migrating-custom-error-messages-between-servers
1 2PRINT &#39;------------------------------------&#39; 3PRINT &#39;-- Script to update/add SysMessages&#39; 4PRINT &#39;--&#39; 5PRINT &#39;-- Date :&#39; + cast(GETDATE() as nvarchar(max)) 6PRINT &#39;-- Source :&#39; + @@servername 7PRINT &#39;------------------------------------&#39; 8 9SET NOCOUNT ON; 10DECLARE @crlf CHAR(2); 11DECLARE @tab CHAR(1); 12DECLARE @sql NVARCHAR(MAX); 13DECLARE @sqlResult NVARCHAR(MAX); 14SET @crlf = CHAR(13) + CHAR(10); 15SET @tab = CHAR(9); 16 17SET @sql = &#39; 18IF (EXISTS ( 19 SELECT M.]]></description></item><item><title>Script To Kill Terminal Sessions</title><link>https://www.sozezzo.com/site/posts/script-to-kill-terminal-sessions/</link><pubDate>Tue, 02 Feb 2016 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/script-to-kill-terminal-sessions/</guid><description><![CDATA[Save this script on batch file, update server list, and run.
1 2echo off 3cls 4echo computerName1 &gt; computers.txt 5echo computerName2 &gt; computers.txt 6echo computerName3 &gt; computers.txt 7echo computerName4 &gt; computers.txt 8FOR /F %%A IN (computers.txt) DO ( 9 10 echo ------------------------------------------ 11 echo Check server : %%A 12 echo. 13 qwinsta /server:%%A 14 echo. 15 FOR /f &#34;tokens=2&#34; %%i IN (&#39;qwinsta /SERVER:%%A ^| find /i &#34;disc&#34;&#39;) DO ( 16 ECHO %%i | rwinsta %%i /SERVER:%%A /V 17 ) 18 echo.]]></description></item><item><title>Deadlock</title><link>https://www.sozezzo.com/site/posts/deadlock/</link><pubDate>Wed, 23 Dec 2015 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/deadlock/</guid><description>We have same SQL Scripts to try to find out about what it happens when we have or had deadlocks.
Get current running commands. Create event to find blocked processes and deadlocks. Sources :
Deadlocking https://technet.microsoft.com/en-us/library/ms177433%28v=sql.105%29.aspx
How to isolate the current running commands in SQL Server https://www.mssqltips.com/sqlservertip/1811/how-to-isolate-the-current-running-commands-in-sql-server/
How To Monitor Deadlocks in SQL Server http://blogs.technet.com/b/mspfe/archive/2012/06/28/how_2d00_to_2d00_monitor_2d00_deadlocks_2d00_in_2d00_sql_2d00_server.aspx
A very quick guide to deadlock diagnosis in SQL Server https://dzone.com/articles/very-quick-guide-deadlock
Finding Blocked Processes and Deadlocks using SQL Server Extended Events http://www.</description></item><item><title>FIX ERROR 17892 Database login issue due to logon-trigger</title><link>https://www.sozezzo.com/site/posts/fix-error-17892-database-login-issue-due-to-logon-trigger/</link><pubDate>Fri, 13 Nov 2015 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/fix-error-17892-database-login-issue-due-to-logon-trigger/</guid><description>If you see messages like that..
Failed to retrieve data for this request.
Failed to connect to server
Logon failed for login
OR
Cannot connect to server…
We have an easy solution! You just need disable all server trigger!
but&amp;hellip;
When it’s happen, “maybe” you don’t know the trigger’s list or you don’t have so much time.
The solution can be very easy:
Step 1 : Connect to server because you must run on the server.</description></item><item><title>Migrer des bases de données étrangères</title><link>https://www.sozezzo.com/site/posts/migrer-des-bases-de-donnees-etrangeres/</link><pubDate>Thu, 05 Nov 2015 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/migrer-des-bases-de-donnees-etrangeres/</guid><description>Une autre journée de migration de bases de données..
Je pense qu’une bonne journée de travail est une journée vraiment plate que j&amp;rsquo;ai envie d’endormir, donc pas de surprise, pas d’improvisation, pas d’espace à la créativité parce que tout est comme l’on a prévu.
Parfois, nous sommes carrément obligés à migrer de bases de données sans faire tous les tests nécessaires. J’arrive au bureau, et je sens que je ne vais pas avoir une journée plate.</description></item><item><title>Migrer une base de données</title><link>https://www.sozezzo.com/site/posts/migrer-une-base-de-donnees/</link><pubDate>Tue, 03 Nov 2015 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/migrer-une-base-de-donnees/</guid><description>Migrer une base de données vers un nouveau serveur est assez simple…
si…
Il y a seulement une base de données; Il n’y a pas des objets à migrer; Il n’y a pas de dépendances physiques; Alors, le SQL script proposé fait une partie du processus :
Ferme toutes les connexions vers la base de données à migrer; Restreins l’accès à la base de données; Fais une copie de sauvegarde de la base de données; Restaure l’accès à la base de données à multi-utilisateur; Mise hors ligne la base de données; Le SQL script ajoute des scripts pour :</description></item><item><title>HTTP Status Codes</title><link>https://www.sozezzo.com/site/posts/http-status-codes/</link><pubDate>Tue, 27 Oct 2015 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/http-status-codes/</guid><description>This page is created from HTTP status code information found at ietf.org and Wikipedia. Click on the category heading or the status code link to read more.
1xx Informational# This class of status code indicates a provisional response, consisting only of the Status-Line and optional headers, and is terminated by an empty line. There are no required headers for this class of status code. Since HTTP/1.0 did not define any 1xx status codes, servers MUST NOT send a 1xx response to an HTTP/1.</description></item><item><title>SQL script to find database owners using T-SQL and create SQL Script to change it to sa</title><link>https://www.sozezzo.com/site/posts/sql-script-to-find-database-owners-using-t-sql-and-create-sql-script-to/</link><pubDate>Thu, 22 Oct 2015 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/sql-script-to-find-database-owners-using-t-sql-and-create-sql-script-to/</guid><description><![CDATA[Microsoft provides system stored procedures (dbo.sp_changedbowner) for changing the db owner. Keep in mind, a user database should have a db owner associated with it; dont mis interpret this witj db_owner role.
I personally prefer setting the db owner to ‘sa’
1 2SELECT NAME, 3 suser_sname(owner_sid) AS &#39;owner&#39;, 4 CASE 5 WHEN suser_sname(owner_sid) = &#39;sa&#39; 6 THEN &#39;&#39; 7 ELSE &#39;USE [&#39; + NAME + &#39;]; EXEC dbo.sp_changedbowner @loginame = N&#39;&#39;sa&#39;&#39;;&#39; 8 END ScriptSql 9FROM sys.]]></description></item><item><title>To copy, or not to copy</title><link>https://www.sozezzo.com/site/posts/to-copy-or-not-to-copy/</link><pubDate>Wed, 21 Oct 2015 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/to-copy-or-not-to-copy/</guid><description><![CDATA[J&rsquo;ai écrit sur mon profil que tous les services web fermeront un jour&hellip; mais j&rsquo;oublie mes propres mots. La dernière victime est mon propre blogue. J&rsquo;y explique&hellip; J&rsquo;utilise certains plug-ins officiels et pas officiels, mais je ne pouvais pas imaginer qu&rsquo;il pourrait aussi disparaitre.
Ahh!!! Oui, la page du site web qui avait le plug-in a été fermée ou effacée. Alors, il n&rsquo;est plus simplement là.
Voici les liens:
http://wiki.pluxml.org/index.php?page=Plugins+non+officiels]]></description></item><item><title>Activer toutes les versions de Windows et d’Office avec Microsoft Toolkit !</title><link>https://www.sozezzo.com/site/posts/activer-toutes-les-versions-de-windows-et-doffice-avec-microsoft-toolkit/</link><pubDate>Sun, 11 Oct 2015 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/activer-toutes-les-versions-de-windows-et-doffice-avec-microsoft-toolkit/</guid><description><![CDATA[Alors, cela peut être pratique quand l&rsquo;on peut avoir un lab. Créer de virtuelles machines sans avoir le souci d&rsquo;activer ou non les logiciels Microsoft.
Downloads:
2.6 BETA 5 EXE MD5: EA54A3ED8C40AA405B9645C166137318 EXE SHA-1: C4DE105BC0D4DEBF2EAB7563FC3127F6677A43C3 Torrent: Download
Site d&rsquo;origine : http://geekz0ne.fr/2014/02/21/activer-windows-et-office-3-2/
Microsoft Toolkit est un utilitaire très pratique pour toutes les versions de Windows et d&rsquo;Office, il utilise la technologie d&rsquo;activation en volume disponible sur les versions Professional et supérieur, aussi appelé KMS pour Key Management Server (Serveur de Gestion de Clés).]]></description></item><item><title>Script to fix database for all online databases.</title><link>https://www.sozezzo.com/site/posts/script-to-fix-database-for-all-online-databases/</link><pubDate>Tue, 15 Sep 2015 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/script-to-fix-database-for-all-online-databases/</guid><description><![CDATA[Set database owner = &lsquo;sa&rsquo;
Set RECOVERY = Simple &amp; Shrink databases
1 2print &#39;-- SQL Script to fix owner and Recouvery mode&#39; 3print &#39;&#39; 4SET NOCOUNT ON; 5Declare @sql nvarchar(max); 6declare @dbname nvarchar(255); 7BEGIN TRY drop table #db; END TRY BEGIN CATCH END CATCH; 8SELECT * INTO #db 9FROM sys.databases f 10WHERE f.state_desc = &#39;ONLINE&#39; 11 AND (f.database_id &gt; 4) 12 13while ((select count(*) from #db)&gt;0) 14BEGIN 15 16 Set @sql = &#39;&#39;; 17 SELECT top 1 18 @dbname = name, 19 @sql = 20 21 -- change db owner to SA 22 + case when suser_sname(f.]]></description></item><item><title>Create SQL Script to Backup/Restore databases</title><link>https://www.sozezzo.com/site/posts/create-sql-script-to-backup-restore-databases/</link><pubDate>Tue, 25 Aug 2015 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/create-sql-script-to-backup-restore-databases/</guid><description><![CDATA[Create SQL Script to create SQL Script to backup databases and to restore databases.
- Fix owner user : &lsquo;sa&rsquo;
- Shrink databases
Tip: You can use a shared folder;
Tip: You can disconnect all users before to restore a database;
Tip: You can add this SQL Script to protect executing on the wrong SQL Server;
1 2IF (NOT(@@servername = &#39;MyServerName&#39;)) 3BEGIN 4 PRINT &#39;You MUST execute over MyServerName&#39;; 5 RETURN; 6END SQL Stript to backup databases]]></description></item><item><title>How to Check the last restart for DB Server</title><link>https://www.sozezzo.com/site/posts/how-to-check-the-last-restart-for-db-server/</link><pubDate>Mon, 24 Aug 2015 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/how-to-check-the-last-restart-for-db-server/</guid><description><![CDATA[ 1 2go 3-- Last SQL Server instance restart. 4SELECT sqlserver_start_time FROM sys.dm_os_sys_info; 5go 6-- Last SQL Agent Server restart. 7SELECT login_time as &#39;sqlserver_agent_start_time&#39; FROM master.dbo.sysprocesses WHERE program_name = N&#39;SQLAgent - Generic Refresher&#39;; 8go 9-- Last DB windows server restart. 10exec xp_cmdshell &#39;systeminfo | find &#34;Time:&#34;&#39;; 11go ]]></description></item><item><title>Tests du SAP Web Service avec WSDL</title><link>https://www.sozezzo.com/site/posts/tests-du-sap-web-service-avec-wsdl/</link><pubDate>Wed, 12 Aug 2015 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/tests-du-sap-web-service-avec-wsdl/</guid><description>Web service avec SAP PI + WSDL + Tests
Problématique:
Le SAP rendre disponible des Web Services par PI (Process Integration) pour réaliser des transactions entre les clients et le SAP.
Les clients peuvent être des applications développées sur plusieurs plateformes, en tous cas, pendant le processus du développement du client, il faut avoir certaines conditions et disponibilités:
instance du SAP/PI configuré; bonnes données pour les tests; contrôle du temps de réponse; Le WSDL est le point de départ du développement du client.</description></item><item><title>xp_cmdshell</title><link>https://www.sozezzo.com/site/posts/xp-cmdshell/</link><pubDate>Fri, 07 Aug 2015 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/xp-cmdshell/</guid><description><![CDATA[We can spawn a Windows command shell and passes in a string for execution. Any output is returned as rows of text. (msdn) ex:
1 2xp_cmdshell &#39;dir C:\&#39; Set configuration
1 2-- -------------------------------- 3-- Set Configuration 4-- -------------------------------- 5-- 6 7-- To allow advanced options to be changed. 8EXEC sp_configure &#39;show advanced options&#39;, 1; 9GO 10-- To update the currently configured value for advanced options. 11RECONFIGURE 12GO 13-- To enable the feature.]]></description></item><item><title>A picture is worth a thousand words -- Javascript</title><link>https://www.sozezzo.com/site/posts/a-picture-is-worth-a-thousand-words-javascript/</link><pubDate>Tue, 07 Jul 2015 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/a-picture-is-worth-a-thousand-words-javascript/</guid><description>source : https://raw.githubusercontent.com/coodict/javascript-in-one-pic/master/js%20in%20one%20pic.png</description></item><item><title>24 juin - Fête du Québec - Jour de migration</title><link>https://www.sozezzo.com/site/posts/24-juin-fete-du-quebec-jour-de-migration/</link><pubDate>Mon, 29 Jun 2015 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/24-juin-fete-du-quebec-jour-de-migration/</guid><description><![CDATA[Je ne suis pas québécois de souche, mais j&rsquo;aime la fête du Québec. Si bien que c&rsquo;était déjà un jour de fête lointainement avant la &ldquo;découverte de l&rsquo;Amérique&rdquo;. Mais, c&rsquo;est quoi? Qu&rsquo;on décide de faire au jour de fête du Québec??? On migre des bases de données. J&rsquo;ai préparé quelques jours avant des scripts pour migrer les bases de données. J&rsquo;ai testé quelques fois et j&rsquo;ai vérifié la sécurité. La procédure pour cette migration était la beauté de la simplicité.]]></description></item><item><title>Mon fils de nouvelles</title><link>https://www.sozezzo.com/site/posts/mon-fils-de-nouvelles/</link><pubDate>Tue, 09 Jun 2015 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/mon-fils-de-nouvelles/</guid><description><![CDATA[Once upon a time&hellip; je voulais avoir une blog loin chez google. Merci, google :). Ça a pris un temps, j&rsquo;ai commencé avec mon shaarli - toujours actif - et finalement, voilà mon blog indépendant est une réalité, et j&rsquo;ai ajouté un fil de nouvelle d’un river de shaarlis&hellip; justqu&rsquo;à là c&rsquo;était bien&hellip; oui, sauf maintenant que je passe une bonne partie de mon temps à regarder mon fils de nouvelles.]]></description></item><item><title>Jeudi, la journée qui ne veut pas finir...</title><link>https://www.sozezzo.com/site/posts/jeudi-la-journee-qui-ne-veut-pas-finir/</link><pubDate>Wed, 03 Jun 2015 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/jeudi-la-journee-qui-ne-veut-pas-finir/</guid><description><![CDATA[Finalement la crise est finie, le vendredi arrive, j&rsquo;ai couché très tard, ou très tôt, ça dépend d&rsquo;où on le voit. J&rsquo;ai regardé la série &ldquo;Mad Men - in English of course&rdquo;. Je crois vraiment que la crise est finie, je reçois encore des messages, mais aussi, je reçois le rapport d&rsquo;avancement avec les courriels.
Dans ma chambre, je suis guide par le soleil, et je garde mes mauvaises habitudes de me réveiller avec le soleil.]]></description></item><item><title>Une journéé comme tant dautres</title><link>https://www.sozezzo.com/site/posts/une-journee-comme-tant-d-autres/</link><pubDate>Fri, 29 May 2015 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/une-journee-comme-tant-d-autres/</guid><description><![CDATA[Tout commence avec un appel quelques journées avant pour vérifier la possibilité d&rsquo;un arrêt de la communication. La raison? Une petite mise à jour du SAP. J&rsquo;ai dit &ldquo;pas de problème.&rdquo;. Incroyable que l&rsquo;on peut être naïf. Bien sûr, on ne change pas les interfaces, et la couche de communication.
Mercredi matin, je reçois la confirmation pour la programmation d&rsquo;arrêt de la communication à jeudi au midi quart. Et, des courriels sont envoyés pour confirmer la programmation.]]></description></item><item><title>How to Script User and Role Object Permissions in SQL Server for Database</title><link>https://www.sozezzo.com/site/posts/how-to-script-user-and-role-object-permissions-in-sql-server/</link><pubDate>Fri, 01 May 2015 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/how-to-script-user-and-role-object-permissions-in-sql-server/</guid><description><![CDATA[This article is nice ( we have a little bug ) , and the SQL script is not execute-safe (if you run twice, you have errors ).
It is for a specific database, when you need to save all SQL Server, you must run for each database.
1 2PRINT &#39;-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&#39; 3PRINT &#39;-- SQL Security script &#39; 4PRINT &#39;-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&#39; 5PRINT &#39;--&#39; 6PRINT &#39;-- Server [&#39; + @@servername+ &#39;]&#39; 7PRINT &#39;-- database [&#39; + db_name()+ &#39;]&#39; 8PRINT &#39;--&#39; 9PRINT &#39;-- * Add Database user&#39; 10PRINT &#39;-- * Add Roles&#39; 11PRINT &#39;-- * Set Object Specific Permissions&#39; 12PRINT &#39;-- * DO NOT delete anything&#39; 13PRINT &#39;--&#39; 14PRINT &#39;-- Created At: &#39; + CONVERT(VARCHAR, GETDATE(), 102) +&#39; &#39; + CONVERT(VARCHAR, GETDATE(), 108) 15PRINT &#39;-- Created By: &#39; + SUSER_NAME() 16PRINT &#39;-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&#39; 17PRINT &#39;&#39; 18PRINT &#39;USE [&#39; + DB_NAME() + &#39;]&#39; 19PRINT &#39;GO&#39; 20PRINT &#39;PRINT @@Servername;&#39; 21PRINT &#39;&#39; 22PRINT &#39;GO&#39; 23/* 24Ref.]]></description></item><item><title>Script to create script to copy datatable between two database</title><link>https://www.sozezzo.com/site/posts/metacoding-transfer/</link><pubDate>Tue, 28 Apr 2015 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/metacoding-transfer/</guid><description><![CDATA[Script to create script to copy data from two datatable when tables are equal. This code is very useful when partially we save data.We can delete data after some date but we must have a column date.
Read the conditions to run this script.
1 2------------------------------- 3-- Script to create script to copy datatable betweeen two database 4-- 5-- Condition: 6-- We must have a primary key; 7-- Primary key must be int; 8-- If we use Linked server, we can not use XML column 9-- We must run this script on database source 10-- 11------------------------------- 12 13------------------------------- 14-- SET Parameters 15DECLARE @DBSource as nvarchar(100); 16DECLARE @SchemaSource as nvarchar(100); 17DECLARE @TableSource as nvarchar(100); 18DECLARE @KeyIDSource as nvarchar(100); 19DECLARE @CopyByRun as int; 20DECLARE @DeleteOldDate as int; 21DECLARE @DeleteOldDateColumn as nvarchar(100); 22DECLARE @DeleteOldDateKeepMonths as nvarchar(100); 23 24DECLARE @DBDestination as nvarchar(100); 25DECLARE @SchemaDestination as nvarchar(100); 26DECLARE @TableDestination as nvarchar(100); 27 28SET @DBSource = &#39;NORTHWND&#39;; 29SET @SchemaSource = &#39;dbo&#39;; 30SET @TableSource = &#39;Orders&#39;; 31SET @KeyIDSource = &#39;OrderID&#39;; 32SET @CopyByRun = 100000; 33SET @DeleteOldDate = 1; 34SET @DeleteOldDateColumn = &#39;OrderDate&#39;; 35SET @DeleteOldDateKeepMonths = 1; 36 37SET @DBDestination = &#39;NorthWindNEW&#39;; 38SET @SchemaDestination = &#39;dbo&#39;; 39SET @TableDestination = &#39;Orders&#39;; 40------------------------------- 41 42SET NOCOUNT ON; 43DECLARE @KeyId AS nvarchar(100); 44DECLARE @TableSourceFullName AS nvarchar(500); 45DECLARE @TableDestinationFullName AS nvarchar(500); 46 47SET @KeyId = &lt;a href=&#34;mailto:&#39;@&#39;+@KeyIDSource&#34;&gt;&#39;@&#39;+@KeyIDSource&lt;/a&gt;; 48SET @TableSourceFullName = @DBSource+&#39;.]]></description></item><item><title>Zerobin with QRCode</title><link>https://www.sozezzo.com/site/posts/zerobin-with-qrcode/</link><pubDate>Sat, 25 Apr 2015 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/zerobin-with-qrcode/</guid><description><![CDATA[A minimalist, opensource online pastebin-like where the server has zero knowledge of pasted data. Data is encrypted/decrypted in the browser using 256 bits AES&hellip;
http://sebsauvage.net/wiki/doku.php?id=php:zerobin
with so many features BUT without QR Code.
We can be sometime lazy to type URL on &ldquo;Smartphone&rdquo;, but the &ldquo;Smartphone&rdquo; can read QR Code.
We use version alpha 0.19, GitHub access to source code.
Basic requirements:
Not too much change the original code; Not compromise security; Easy to understand; Advices:]]></description></item><item><title>Create a XML select from a table definition.</title><link>https://www.sozezzo.com/site/posts/create-a-xml-select-from-a-table-definition/</link><pubDate>Fri, 24 Apr 2015 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/create-a-xml-select-from-a-table-definition/</guid><description><![CDATA[Transform table definition to XML select, it can be useful when we need to create many XML select or re-create it.
Result:
1 2SELECT 3 [Message].value(&#39;(msg_Customers/Customers/CustomerID)[1]&#39;, &#39;nchar(5)&#39;) as [CustomerID] 4, [Message].value(&#39;(msg_Customers/Customers/CompanyName)[1]&#39;, &#39;nvarchar(40)&#39;) as [CompanyName] 5, [Message].value(&#39;(msg_Customers/Customers/ContactName)[1]&#39;, &#39;nvarchar(30)&#39;) as [ContactName] 6, [Message].value(&#39;(msg_Customers/Customers/ContactTitle)[1]&#39;, &#39;nvarchar(30)&#39;) as [ContactTitle] 7, [Message].value(&#39;(msg_Customers/Customers/Address)[1]&#39;, &#39;nvarchar(60)&#39;) as [Address] 8, [Message].value(&#39;(msg_Customers/Customers/City)[1]&#39;, &#39;nvarchar(15)&#39;) as [City] 9, [Message].value(&#39;(msg_Customers/Customers/Region)[1]&#39;, &#39;nvarchar(15)&#39;) as [Region] 10, [Message].value(&#39;(msg_Customers/Customers/PostalCode)[1]&#39;, &#39;nvarchar(10)&#39;) as [PostalCode] 11, [Message].value(&#39;(msg_Customers/Customers/Country)[1]&#39;, &#39;nvarchar(15)&#39;) as [Country] 12, [Message].]]></description></item><item><title>Calculation SQL Table size</title><link>https://www.sozezzo.com/site/posts/calculation-sql-table-size/</link><pubDate>Thu, 23 Apr 2015 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/calculation-sql-table-size/</guid><description>We have many ways to obtain the size of all tables using SQL Server.
This is a nice solution but we do not really need to use temporary table.
http://therightstuff.de/2007/11/19/How-To-Obtain-The-Size-Of-All-Tables-In-A-SQL-Server-Database.aspx
If we run the script twice, we have an error.
Well, this version uses a variable and we have another solution.
Reports and corrects pages and row count inaccuracies in the catalog views. These inaccuracies may cause incorrect space usage reports returned by the sp_spaceused system stored procedure.</description></item><item><title>Convert XML to table and table to XML</title><link>https://www.sozezzo.com/site/posts/convert-xml-to-table-and-table-to-xml/</link><pubDate>Thu, 23 Apr 2015 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/convert-xml-to-table-and-table-to-xml/</guid><description>We have a lot of articles about how to do but most of the time it is too much information.
This article tries to answer 2 questions!
How can we create XML column from a SQL query? How can we create a table from XML column?
This example use NorthWind database:
https://northwinddatabase.codeplex.com/releases/view/71634
1 2USE [NORTHWND] 3 4GO 5 6SET ANSI_NULLS ON 7 8SET QUOTED_IDENTIFIER ON 9 10GO 11 12BEGIN TRY DROP TABLE [dbo].</description></item><item><title>Representational State Transfer (REST)</title><link>https://www.sozezzo.com/site/posts/representational-state-transfer-rest/</link><pubDate>Thu, 16 Apr 2015 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/representational-state-transfer-rest/</guid><description>REST is an architectural style for designing networked applications. It is an alternate to using complex mechanisms like COBRA, RPC, and SOAP to connect between client and server. REST makes communication between remote computers easy by using the simple HTTP protocol which support for CRUD (Create, Read, Update, and Delete) operations on the server. In a way, our World Wide Web is also based on the REST architecture.
source: https://www.ics.uci.edu/~fielding/pubs/dissertation/rest_arch_style.htm</description></item><item><title>Add a reference reference programmatically vba-Excel</title><link>https://www.sozezzo.com/site/posts/add-a-reference-reference-programmatically-vba-excel/</link><pubDate>Wed, 08 Apr 2015 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/add-a-reference-reference-programmatically-vba-excel/</guid><description><![CDATA[Ce code vous permet d&rsquo;ajouter une référence à une bibliothèque spécifique en temps d&rsquo;exécution. C&rsquo;est très utile quand on partage les classeurs entre différentes versions d&rsquo;Excel.
J’ai vu cette page : http://www.vbaexpress.com/kb/getarticle.php?kb_id=267
On a toujours les «MAIS ».
Mais, comment peut-on trouver le GUID?
1. Ouvrir le «References – VBA Project »
On va ajouter le « Microsoft SQL Distribution Control 10.0 »
2. Ouvrir le « Regedit » et chercher la référence par le nom.]]></description></item><item><title>Liste de champs des tables</title><link>https://www.sozezzo.com/site/posts/liste-de-champs-des-tables/</link><pubDate>Thu, 02 Apr 2015 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/liste-de-champs-des-tables/</guid><description><![CDATA[Créer le même code à adapter à chaque table selon les champs et le type.
Cela peut être une activité assez plate. On peut créer un code qui crée notre code. Peut-on appeler une métacreation, ou métacodification, mais, peut-être, il n&rsquo;existe pas ce mot en français.
Alors, ce SQL script nous liste les champs de tables, et après, c&rsquo;est une autre histoire.
1BEGIN TRY DROP TABLE #TMP END TRY BEGIN CATCH END CATCH; 2SELECT 3 TABLE_SCHEMA 4 ,TABLE_NAME 5 ,ORDINAL_POSITION AS rownumber 6 ,COLUMN_NAME AS &#39;ColumnName&#39; 7 ,DATA_TYPE + CASE WHEN CHARacter_maximum_length IS NOT NULL THEN &#39;(&#39; + CAST(CHARacter_maximum_length AS NVARCHAR(100)) + &#39;)&#39; ELSE &#39;&#39; END AS &#39;DataType&#39; 8 ,IS_NULLABLE 9INTO #TMP 10FROM INFORMATION_SCHEMA.]]></description></item><item><title>Finding Table and Primary Key and Foreign Key</title><link>https://www.sozezzo.com/site/posts/finding-table-and-primary-key-and-foreign-key/</link><pubDate>Wed, 01 Apr 2015 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/finding-table-and-primary-key-and-foreign-key/</guid><description>SQL Server does not help to easily determine the dependencies between tables. This research presents the parent table and the child tables and columns used.
https://msdn.microsoft.com/en-us/library/ms179610.aspx http://stackoverflow.com/questions/925738/how-to-find-foreign-key-dependencies-in-sql-server
well, however, we have many databases with bad design that didn’t have foreign keys defined but that did have related data.
1 2SELECT 3 ROW_NUMBER() OVER (ORDER BY ForeignKeyTable.name) as rownumber 4 , PARENTSchemas.name AS PARENT_SchemaName 5 , PARENTObject.name AS PARENT_TableName 6 , PARENTColumn.</description></item><item><title>Metodo 1 - como baixar musica do Youtube</title><link>https://www.sozezzo.com/site/posts/metodo-1-como-baixar-musica-do-youtube/</link><pubDate>Wed, 18 Mar 2015 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/metodo-1-como-baixar-musica-do-youtube/</guid><description>Existe enumeras maneiras de baixar musicas do youtube.
Metodo zero instalação: Não precisa instalar nada. O processo se resume em copiar o endereço do video e usar um site que converte o video para ser baixado.
http://www.youtube-mp3.org/
Estes outros sites funcionam basicamente da mesma maneira. http://savedeo.com/ http://savefrom.net/ https://www.dredown.com/youtube http://www.clipconverter.cc/ http://deturl.com/ http://keepvid.com/ http://www.tubeoffline.com/
Passo 1: Copiar o endereço do video
Passo 2: Abrir o site: http://www.youtube-mp3.org/ Colar endereço do video no site:</description></item><item><title>Récuperer les utilisateurs orphelins</title><link>https://www.sozezzo.com/site/posts/user/</link><pubDate>Wed, 18 Mar 2015 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/user/</guid><description><![CDATA[Après restaure la base de données MS SQL, il est possible que certains utilisateurs de la base de données soient orphelins. Alors, voici les SQL scripts pour les réparer.
Répare tous les utilisateurs orphelins de toutes bases de données:
1 2DECLARE @sql as nvarchar(max); 3SET @sql = &#39; 4USE[?];PRINT&#39;&#39;Database: &#39;&#39;+db_name();DECLARE @username VARCHAR(25);DECLARE 5GetOrphanUsers CURSOR FOR SELECT UserName=NAME FROM sysusers WHERE issqluser=1AND(sid IS 6NOT NULL AND sid&lt;&gt;0x0)AND SUSER_SNAME(sid)IS NULL ORDER BY NAME;OPEN GetOrphanUsers;FETCH 7NEXT FROM GetOrphanUsers INTO @username;WHILE @@FETCH_STATUS=0BEGIN IF @username=&#39;&#39;dbo&#39;&#39; 8EXEC sp_changedbowner&#39;&#39;sa&#39;&#39;;ELSE BEGIN BEGIN TRY EXEC sp_change_users_login&#39;&#39;update_one&#39;&#39; 9,@username,@username;END TRY BEGIN CATCH PRINT&#39;&#39;Fail to fix database user: &#39;&#39;+@username;END CATCH 10;END FETCH NEXT FROM GetOrphanUsers INTO @username;END;CLOSE GetOrphanUsers;DEALLOCATE 11GetOrphanUsers;&#39;; 12EXEC sp_MSforeachdb @sql Stored Procedures :]]></description></item><item><title>Pi Day</title><link>https://www.sozezzo.com/site/posts/pi-day/</link><pubDate>Sat, 14 Mar 2015 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/pi-day/</guid><description>Le 14 mars 2015 est une journée exceptionnelle. C&amp;rsquo;est le pi day aujourd&amp;rsquo;hui! Happy birthday PI !
À 9 heures 26 minutes et 53 secondes, il était exactement “pi” avec ses neuf premières décimales: 3,141592653&amp;hellip;</description></item><item><title>Kill all SQL Server connections</title><link>https://www.sozezzo.com/site/posts/kill-all-sql-server-connections/</link><pubDate>Fri, 13 Mar 2015 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/kill-all-sql-server-connections/</guid><description><![CDATA[Sometimes I want to have control over a SQL Server database, but always some connection blocks.
We can use this
1 2USE MASTER; 3ALTER DATABASE MyDatabase SET SINGLE_USER WITH ROLLBACK IMMEDIATE; BUT, sometime, we cannot do it! Well, we have this solution&hellip;
1 2SET NOCOUNT ON; 3DECLARE @ToKill AS NVARCHAR(max); 4SET @ToKill = &#39;&#39;; 5--SELECT @toKill = @ToKill + &#39;kill &#39; + cast(spid AS NVARCHAR(10)) + &#39;;&#39; 6SELECT @toKill = @ToKill + &#39;begin try kill &#39; + cast(spid AS NVARCHAR(10)) + &#39;; print &#39;&#39;Ok to kill : &#39; + cast(spid AS NVARCHAR(10)) + &#39;&#39;&#39;; end try begin catch print &#39;&#39;Fail to kill : &#39; + cast(spid AS NVARCHAR(10)) + &#39;&#39;&#39;; end catch;&#39; 7FROM master.]]></description></item><item><title>Command Line Arguments Parser</title><link>https://www.sozezzo.com/site/posts/command-line-arguments-parser/</link><pubDate>Mon, 09 Mar 2015 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/command-line-arguments-parser/</guid><description><![CDATA[Chaque fois que je dois créer une application du type console, c&rsquo;est le même problème.
Alors, je publie la version que je vais utiliser sur toutes mes applications. Effet, j&rsquo;ai analysé plusieurs solutions, et détails techniques de chaque solution et j&rsquo;ai fini pour choisir une solution publiée sur CodeProject.
Ma version de la solution est normalisée selon le standard du Reshaper, et il y a un *petit* changement de l&rsquo;expression régulier.]]></description></item><item><title>C# Generic Convert XML to Object</title><link>https://www.sozezzo.com/site/posts/c-generic-convert-xml-to-object/</link><pubDate>Thu, 26 Feb 2015 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/c-generic-convert-xml-to-object/</guid><description><![CDATA[Easy way to convert a generic objet to xml string and xml string to generic object.
public static string Serialize&lt;t&gt;(T xml);
public static void Deserialize&lt;t&gt;(ref T obj, string xml);
1 2/// &lt;summary&gt; 3/// Deserialize xml --&gt; obj 4/// &lt;/summary&gt; 5/// &lt;typeparam name=&#34;T&#34;&gt;&lt;/typeparam&gt; 6/// &lt;param name=&#34;obj&#34;&gt;&lt;/param&gt; 7/// &lt;param name=&#34;xml&#34;&gt;&lt;/param&gt; 8public static void Deserialize&lt;T&gt;(ref T obj, string xml) 9{ 10 var serializer 11 = new System.Xml.Serialization.XmlSerializer(typeof(T)); 12 using (var reader = new System.]]></description></item><item><title>Convert a text to a Title</title><link>https://www.sozezzo.com/site/posts/convert-a-text-to-a-title/</link><pubDate>Wed, 25 Feb 2015 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/convert-a-text-to-a-title/</guid><description><![CDATA[How convert a text to a Title text with TSQL. It&rsquo;s &ldquo;easy&rdquo; solution.
1 2CREATE FUNCTION udf_TitleCase (@InputString VARCHAR(4000)) 3RETURNS VARCHAR(4000) 4AS 5BEGIN 6 DECLARE @Index INT 7 DECLARE @Char CHAR(1) 8 DECLARE @OutputString VARCHAR(255) 9 10 SET @OutputString = LOWER(@InputString) 11 SET @Index = 2 12 SET @OutputString = STUFF(@OutputString, 1, 1, UPPER(SUBSTRING(@InputString, 1, 1))) 13 14 WHILE @Index &lt;= LEN(@InputString) 15 BEGIN 16 SET @Char = SUBSTRING(@InputString, @Index, 1) 17 18 IF @Char IN (&#39; &#39;, &#39;;&#39;, &#39;:&#39;, &#39;!]]></description></item><item><title>Send email by sql</title><link>https://www.sozezzo.com/site/posts/send-email-by-sql/</link><pubDate>Wed, 25 Feb 2015 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/send-email-by-sql/</guid><description><![CDATA[How can we send email by sql script ?
To enable Database Mail XP
1 2USE msdb; 3GO 4EXEC sp_configure &#39;Database Mail XPs&#39; 5GO 6RECONFIGURE 7GO 8EXEC sp_configure &#39;Database Mail XPs&#39;, 1 9GO 10RECONFIGURE 11GO 12EXEC sp_configure &#39;Database Mail XPs&#39; 13GO To configure database mail
1 2USE msdb 3GO 4 5DECLARE @ProfileName VARCHAR(255) 6DECLARE @AccountName VARCHAR(255) 7DECLARE @SMTPAddress VARCHAR(255) 8DECLARE @EmailAddress VARCHAR(128) 9DECLARE @DisplayUser VARCHAR(128) 10 11SET @ProfileName = &#39;DBMailProfile&#39;; 12SET @AccountName = &#39;DBMailAccount&#39;; 13SET @SMTPAddress = &#39;smtp.]]></description></item><item><title>Table dictionary</title><link>https://www.sozezzo.com/site/posts/table-dictionary/</link><pubDate>Wed, 25 Feb 2015 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/table-dictionary/</guid><description><![CDATA[On a besoin *parfois* de connaitre ou avoir la liste de toutes les tables et les colonnes
Ce script crée une table avec toutes définitions.
ex:
1 2select * from _text_table_dictionary 3where Datatype = &#39;datetime&#39; 1 2PRINT @@servername; 3GO 4 5IF EXISTS ( 6 SELECT * 7 FROM dbo.sysobjects 8 WHERE id = object_id(N&#39;[dbo].[_text_table_dictionary]&#39;) 9 AND OBJECTPROPERTY(id, N&#39;IsUserTable&#39;) = 1 10 ) 11 DROP TABLE [dbo].[_text_table_dictionary] 12GO 13 14CREATE TABLE [dbo].]]></description></item><item><title>ASP.NET Events</title><link>https://www.sozezzo.com/site/posts/asp-net-events/</link><pubDate>Thu, 12 Feb 2015 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/asp-net-events/</guid><description>PreInit
Vérifier s’il est la première fois que l’on appelle une page : IsPostBack Créer ou recréer de contrôles dynamiques; Configurer la page « Master »; Configurer le thème dynamiquement; Lire et écrire des values de propriétés; S’il est un « PostBack »
Vérifier les valeurs des contrôles avant le « restore » du « ViewState »; Récrire des valeurs de propriétés; Init
L’événement qui est déclenché en premier; Événement est utilisé pour initialiser les propriétés du contrôle; **IniComplete **</description></item><item><title>Je nai rien cacher.</title><link>https://www.sozezzo.com/site/posts/je-n-ai-rien-cacher/</link><pubDate>Sun, 01 Feb 2015 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/je-n-ai-rien-cacher/</guid><description>*- If you have nothing to hide, you have nothing to fear.
It&amp;rsquo;s not that I have something to hide, I have nothing I want you to see.* Puis-je vous demander le mot de passe de votre ordinateur, de votre boîte mail et de votre compte Facebook ? Promis, je ne ferai rien de mal, seulement lire.# Comment oseriez-vous répondre non ? Lorsque vous n&amp;rsquo;avez rien à cacher, vous ne pouvez pas faire de distinction entre ce que vous admettez rendre public et ce qui vous dérange un peu plus.</description></item><item><title>Le père Noël, il nexiste pas</title><link>https://www.sozezzo.com/site/posts/le-pere-noel-il-n-existe-pas/</link><pubDate>Sun, 01 Feb 2015 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/le-pere-noel-il-n-existe-pas/</guid><description>Site d&amp;rsquo;origine : http://melaka.free.fr/psiko/charlie/neel.jpg</description></item><item><title>Cyberdéfense la guerre de demain a déj commencé | Valérie LEROUX</title><link>https://www.sozezzo.com/site/posts/cyberdefense-la-guerre-de-demain-a-dej-commence-valerie-leroux/</link><pubDate>Mon, 19 Jan 2015 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/cyberdefense-la-guerre-de-demain-a-dej-commence-valerie-leroux/</guid><description><![CDATA[Installé devant un rideau d&rsquo;écrans, un cybersoldat en treillis scrute attentivement les informations qui défilent. Soudain une mention «SUSPICIOUS» (suspect) se détache en rouge sur l&rsquo;un des ordinateurs.
«J&rsquo;ai relevé une alerte sur un site, un utilisateur qui essaie d&rsquo;aller sur un serveur cloud», lâche le sous-officier qui, avec une trentaine d&rsquo;autres militaires, surveille 24 heures sur 24 les réseaux du ministère de la Défense, à l&rsquo;affût du moindre intrus mal ou très mal intentionné.]]></description></item><item><title>How to connect to a Wireless WIFI Network from the Command line in Windows 7</title><link>https://www.sozezzo.com/site/posts/how-to-connect-to-a-wireless-wifi-network-from-the/</link><pubDate>Sun, 04 Jan 2015 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/how-to-connect-to-a-wireless-wifi-network-from-the/</guid><description><![CDATA[For the humorless amongst you who didn&rsquo;t find these Updated for 2011 - McDonald&rsquo;s WiFi Guide with updates for Mac OS X Lion and Windows 7 to be HIGH-LARIOUS, the question was asked, &ldquo;well, sir, how do you connect to a Wireless WIFI Network from the Command line in Windows 7?&rdquo;
The answer, is, ahem, thusly:
C:\&gt;netsh wlan connect name=HANSELMAN-N
Connection request was completed successfully.
netsh wlan connect name=Brossard ssid=Brossard interface=&ldquo;Wireless Network Connection&rdquo; &gt; Connection request was completed successfully.]]></description></item><item><title>Search columns in SQL Server 2005 database</title><link>https://www.sozezzo.com/site/posts/search-columns-in-sql-server-2005-database/</link><pubDate>Sun, 04 Jan 2015 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/search-columns-in-sql-server-2005-database/</guid><description><![CDATA[&ndash; Since SQL Server 2005 Management Studio lacks the Object Search feature, here is the simple query to find any column in a database
1 2Select O.name objectName, C.name ColumnName 3from sys.columns C inner join sys.objects O 4ON C.object_id=O.object_id 5where C.name like &amp;lsquo;%ColumntoFind%&amp;rsquo;order by O.name,C.name &ndash; This query works for SQL Server 20005. Just replace “ColumnToFind” with your required column name.
1SELECT 2OBJECT_NAME(c.OBJECT_ID) TableName 3,c.name AS ColumnName 4,SCHEMA_NAME(t.schema_id) AS SchemaName 5,t.]]></description></item><item><title>«Tu» et «vous» expliqués aux Américains</title><link>https://www.sozezzo.com/site/posts/tu-et-vous-expliques-aux-americains/</link><pubDate>Mon, 29 Dec 2014 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/tu-et-vous-expliques-aux-americains/</guid><description>C’est pourtant simple ! Il faut tutoyer Dieu, mais vouvoyer son patron – à moins que l’on travaille à « Le Google ». On lance le « vous » aux personnes que l’on ne connaît pas, mais on dit « tu » à son conjoint… sauf si votre mari est l’ancien président français Jacques Chirac !
Site d&amp;rsquo;origine : http://www.lactualite.com/blogues/le-fouineur/tu-et-vous-expliques-aux-americains/
Dans le Los Angeles Times, William Alexander s’est amusé à réaliser un diagramme de décision pour apprendre aux Américains la distinction entre le tutoiement et le vouvoiement, un concept étranger aux anglophones.</description></item><item><title>Tutoriel sur les serveurs</title><link>https://www.sozezzo.com/site/posts/tpc-ip-network-protocol/</link><pubDate>Mon, 29 Dec 2014 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/tpc-ip-network-protocol/</guid><description><![CDATA[Le document présente la suite de protocoles TCP/IP.
Ce document sert d&rsquo;introduction à l&rsquo;ensemble des cours et TP sur les différents protocoles
Ensemble de documents réalisés pour la freeduc-sup.
Site d&rsquo;origine : http://www.linux-france.org/prj/edu/archinet/systeme/index_monopage.html#id2499341
Présentation du document : les outils de l&rsquo;administrateur réseau# Ce document présente les principaux fichiers de configuration d&rsquo;une machine en réseau, et les commandes d&rsquo;administration réseau.
Il est composé de 6 parties:
Les fichiers de configuration réseau]]></description></item><item><title>How to (Automatically) Backup Your Website into Dropbox</title><link>https://www.sozezzo.com/site/posts/how-to-automatically-backup-your-website-into-dropbox/</link><pubDate>Sat, 27 Dec 2014 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/how-to-automatically-backup-your-website-into-dropbox/</guid><description>Site d&amp;rsquo;origine : http://www.hongkiat.com/blog/auto-backup-website-dropbox/
As owners of websites, one of the more important things you should do is to regularly backup the website. Most web hosting providers will enable daily or weekly backups, mainly for their disaster recovery purpose only. If you want to personally oversee a backup of your website, you can do it by yourself using the Backup function in hosting control panels like cPanel, Plesk and DirectAdmin. As a webmaster or domain owner, you are responsible for this task.</description></item><item><title>inMyPluxml - LE plugin de sauvegarde de vos pages internet</title><link>https://www.sozezzo.com/site/posts/inmypluxml-le-plugin-de-sauvegarde-de-vos-pages-internet/</link><pubDate>Sat, 27 Dec 2014 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/inmypluxml-le-plugin-de-sauvegarde-de-vos-pages-internet/</guid><description><![CDATA[Site d&rsquo;origine : http://www.ecyseo.net/article/30/inmypluxml-shaarli-et-poche-reunis-dans-pluxml.html
Suite à une demande de Lunatic sur le forum de Pluxml, je me suis mis en tête de coupler les fonctionnalités de Shaarli et Poche tout en utilisant la puissance de Pluxml. De cette réflexion est né inMyPluxml, un plugin pour Pluxml.
Comment l&rsquo;utiliser ?# Comme d&rsquo;habitude avec les plugins de Pluxml, l&rsquo;utilisation est simple. Il suffit de télécharger l&rsquo;archive, de la décompresser, de renommer le dossier crée en supprimant &ldquo;-master&rdquo; ajouté par Github et de le placer dans le dossier des plugins de votre Pluxml.]]></description></item><item><title>Exécuter IE sur Android, iOS et OS X</title><link>https://www.sozezzo.com/site/posts/remoteie-executer-ie-sur-android-ios-et-os-x/</link><pubDate>Fri, 26 Dec 2014 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/remoteie-executer-ie-sur-android-ios-et-os-x/</guid><description>It&amp;rsquo;s Web Proxy too.
Site d&amp;rsquo;origine : http://www.blog-nouvelles-technologies.fr/56917/remoteie-microsoft-permet-dexecuter-ie-sur-android-ios-et-os-x/
https://remote.modern.ie/subscribe
Vous avez toujours pesté contre Microsoft, son navigateur et le fait que celui-ci ne pouvait être exécuté uniquement sur un périphérique sous Windows ? Alors que le premier point a été corrigé au fil des ans, notamment depuis l’arrivée d’Internet Explorer 10, le second est sur le point d’être de l’histoire ancienne.
Ainsi, et comme annoncé hier soir, sachez que vous pouvez maintenant exécuter la dernière version d’Internet Explorer sur votre dispositif Android ou iOS et mettre votre machine sous OS X.</description></item><item><title>F-Droid</title><link>https://www.sozezzo.com/site/posts/f-droid/</link><pubDate>Fri, 26 Dec 2014 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/f-droid/</guid><description>Why we must check permissions BEFORE to install an Android Application
Site d&amp;rsquo;origine : https://f-droid.org/repository/browse/?fdid=com.actisec.clipcaster
Proof of concept that shows how easily any installed app can read passwords when they&amp;rsquo;re used from password management applications.
Proof of concept that shows how easily any installed app can read passwords when they&amp;rsquo;re used from password management applications.
Read the website for additional information.
License: FreeBSD
Website: https://github.com/activems/clipcaster/blob/HEAD/README.md Issue Tracker: https://github.com/activems/clipcaster/issues Source Code: https://github.</description></item><item><title>how to redirect page to https in php?</title><link>https://www.sozezzo.com/site/posts/how-to-redirect-page-to-https-in-php/</link><pubDate>Fri, 26 Dec 2014 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/how-to-redirect-page-to-https-in-php/</guid><description><![CDATA[Site d&rsquo;origine : http://stackoverflow.com/questions/9135290/how-to-redirect-page-to-https-in-php
Ajouter aux fichier : index.php
# Add to redirect to HTTPS if(!isset($_SERVER[&lsquo;HTTPS&rsquo;]) || $_SERVER[&lsquo;HTTPS&rsquo;] == &quot;&quot; || $_SERVER[&lsquo;HTTPS&rsquo;] == &ldquo;off&rdquo;){ $redirect = &ldquo;https://&rdquo;.$_SERVER[&lsquo;HTTP_HOST&rsquo;].$_SERVER[&lsquo;REQUEST_URI&rsquo;]; header(&ldquo;Location: $redirect&rdquo;); exit; }
If you allow them to post to /login.php over plain HTTP and then redirect to HTTPS, you defeat the purpose of using HTTPS because the login information has already been sent in plain text over the internet.
What you could do to prevent the user from changing the URL, is make it so the login page rejects the login if it is not over HTTPS.]]></description></item><item><title>Nouvel articlemy</title><link>https://www.sozezzo.com/site/posts/space-2014-goodnews/</link><pubDate>Fri, 26 Dec 2014 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/space-2014-goodnews/</guid><description>Site d&amp;rsquo;origine : http://www.wired.com/2014/12/most-amazing-space-discoveries-2014/#slide-id-1676585
In April, astronomers discovered the first Earth-size planet within a star’s habitable zone, the region where liquid water can exist. This artist’s concept shows the planet, dubbed Kepler-186f, which is 1.1 times the size of Earth. The ultimate goal is to find another planet just like Earth, and this one—although more like a cousin than a twin—is close. NASA Ames/SETI Institute/JPL-Caltech In April, astronomers discovered the first Earth-size planet within a star’s habitable zone, the region where liquid water can exist.</description></item><item><title>Gripe ou rhume</title><link>https://www.sozezzo.com/site/posts/gripe-ou-rhume/</link><pubDate>Mon, 21 Oct 2013 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/gripe-ou-rhume/</guid><description><![CDATA[Je n&rsquo;a pas eu l&rsquo;intention d&rsquo;avoir mon blogue avec ça&hellip;.
Mais, je l&rsquo;ai trouvé assez intéressant.
http://www.lepharmachien.com/20121004rhumevsgrippe/
&hellip;.]]></description></item><item><title>My blog, why not?</title><link>https://www.sozezzo.com/site/posts/premier-article/</link><pubDate>Mon, 21 Oct 2013 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/premier-article/</guid><description><![CDATA[Portugueis, English, or français&hellip;. Mes annotations. My stuffs&hellip;.
I will try to abandon shaarli because inMyPluxml is parfait.
My old blogs stay privately, but I will transfer it to here!
1 2&lt;pre&gt; 3/* Test */ 4function writeMessage() { 5 echo &#34;You are really a nice person, Have a nice time!&#34;; 6} 7 8/* Calling a PHP Function */ 9writeMessage(); 10&lt;/pre&gt; ]]></description></item><item><title/><link>https://www.sozezzo.com/site/posts/2022-01-15-test-editor-visual-studio-code/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/2022-01-15-test-editor-visual-studio-code/</guid><description><![CDATA[title: Test Editor Visual Studio Codeslug: test-editor-visual-studio-codedescription: nullauthor: nulldate: &lsquo;2022-01-15T22:23:09.626Z&rsquo;lastmod: 2019-08-22T15:20:28.000Zdraft: truetags: []categories: []# Test to use images
copy and paste
..
.
1GO 2CREATE OR ALTER PROCEDURE #checkLinkedServer 3 @servername ntext 4AS 5BEGIN 6 SET NOCOUNT ON; 7 DECLARE @retval int = 0, 8 @sysservername sysname; 9 BEGIN TRY 10 SELECT @sysservername = CONVERT(sysname, @servername); 11 EXEC @retval = sys.sp_testlinkedserver @sysservername; 12 SELECT 1; 13 END TRY 14 BEGIN CATCH 15 SELECT 0; 16 END CATCH; 17END 18GO 19 20 21go 22exec #checkLinkedServer &#39;PIOLEDB&#39; ]]></description></item><item><title/><link>https://www.sozezzo.com/site/posts/a-tutorial-on-how-to-get-into-an-admin-account-on-windows-7/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.sozezzo.com/site/posts/a-tutorial-on-how-to-get-into-an-admin-account-on-windows-7/</guid><description><![CDATA[+++ title = &ldquo;A tutorial on how to get into an admin account on Windows 7.&rdquo; draft = false date = 2015-02-03 categories = [&ldquo;it&rdquo;] tags = [&ldquo;security fail&rdquo;,&ldquo;windows 7&rdquo;,&ldquo;security&rdquo;] +++
Golden rule of computer security: If a hacker has physical access to a computer, nothing can stop him!
“With great power comes great responsibility” ― it was not me!
by PeregrineX
Step 1:# WARNING: I am NOT responsible for any expulsions or such if you do this at school/work!]]></description></item></channel></rss>