netsh http show urlacl
netsh http delete urlacl http://+:80/Reports/
| public static class CsvParser | |
| { | |
| private static string CheckSpecialChar(string checkChar) | |
| { | |
| return checkChar.Replace("\"", ""); | |
| } | |
| public static Collection<UploadExtensionModel> ParseExtension(string fileName) | |
| { | |
| string[] lines; |
| "use strict"; | |
| var gulp = require('gulp'); | |
| var connect = require('gulp-connect'); | |
| var open = require('gulp-open'); | |
| var config = { | |
| port: 8005, | |
| devBaseUr: 'http://localhost', | |
| paths: { |
| CREATE DATABASE IF NOT EXISTS `asteriskrealtime`; | |
| USE `asteriskrealtime`; | |
| /*Table structure for table `queue_log` */ | |
| DROP TABLE IF EXISTS `queue_log`; | |
| CREATE TABLE `queue_log` ( | |
| `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Net.Sockets; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| namespace ConsoleApplication2 | |
| { | |
| class Program |
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Net.Sockets; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| using System.Windows; | |
| using System.Windows.Controls; | |
| using System.Windows.Data; |
| -- Identify repl errors | |
| USE [DISTRIBUTOR] | |
| SELECT * FROM MSrepl_errors | |
| ORDER BY time DESC | |
| -- Identify the publisher database id | |
| SELECT * FROM MSpublisher_databases | |
| -- Identify the ID number and command id of the command causing the problem. | |
| -- This will typically show up in the Replication Monitor. |
netsh http show urlacl
netsh http delete urlacl http://+:80/Reports/
| internal class DisposableAction : IDisposable | |
| { | |
| private readonly Action _action; | |
| public DisposableAction(Action action) | |
| { | |
| _action = action; | |
| } | |
| public void Dispose() |
| /******************************************************************** | |
| * * | |
| * Author: John Eisbrener * | |
| * Script Purpose: Script out Database Role Definition * | |
| * * | |
| ********************************************************************/ | |
| DECLARE @roleName VARCHAR(255) | |
| SET @roleName = 'DatabaseRoleName' |
| -- Remove database from Availability Group: | |
| Alter Database [StackExchange.Bicycles.Meta] SET HADR OFF; | |
| -- Apply t-logs to catch up. This can be done manually in SSMS or via: | |
| RESTORE LOG [StackExchange.Bicycles.Meta] FROM DISK = '\\ny-back01\backups\SQL\_Trans\SENetwork_AG\StackExchange.Bicycles.Meta\StackExchange.Bicycles.Meta_LOG_20160217_033201.trn' WITH NORECOVERY; | |
| -- Re-join database to availability group | |
| ALTER DATABASE [StackExchange.Bicycles.Meta] SET HADR AVAILABILITY GROUP = [SENetwork_AG]; | |
| ALTER DATABASE [StackExchange.Bicycles.Meta] SET HADR RESUME; |