This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DECLARE BULKnvarchar nvarchar(max) | |
SELECT CAST('<data><![CDATA[' + @BULKnvarchar + ']]></data>' as xml) | |
-- use tools like 'http://coderstoolbox.net/string/#!encoding=xml&action=decode&charset=us_ascii' this | |
-- to decode the xml inside data element |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sqlcmd -E -S "(localdb)\v11.0" -q "BACKUP DATABASE <DBNAME> TO DISK='<DRIVE>:\<FOLDER_PATH>\<BACKUP_FILE_NAME>.bak'" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// You need to install 'Microsoft.Web.Xdt' from nuget ==> Install-Package Microsoft.Web.Xdt | |
using System; | |
using System.Reflection; | |
using Microsoft.Web.XmlTransform; | |
namespace ConfigTransformer | |
{ | |
internal class Program | |
{ | |
private enum ExitCode : int |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
string name = "420"; | |
var prefix = "0"; | |
prefix += new string('0', 10 - name.Length - 1); | |
Console.WriteLine(zeros+name); | |
Console.WriteLine((zeros+name).Length); |
OlderNewer