Created
November 20, 2018 15:24
-
-
Save rincew1nd/497328d6b5fd6f864c703739c85cb2eb to your computer and use it in GitHub Desktop.
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
using System; | |
using System.Data.SqlClient; | |
namespace TestCGI | |
{ | |
class Program | |
{ | |
[STAThread] | |
static void Main(string[] args) | |
{ | |
using (var connection = new SqlConnection("Data Source=asdf;Initial Catalog=asdf;User ID=asdf;Password=1234;Connect Timeout=30")) | |
{ | |
connection.Open(); | |
} | |
Console.Write("Content-Type: text/html; charset=windows-1251\n\n"); | |
Environment.Exit(0); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment