<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://www.nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FC_Sharp%2FDatabase_ADO.net%2FDatabase_Utilities</id>
		<title>Csharp/C Sharp/Database ADO.net/Database Utilities - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://www.nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FC_Sharp%2FDatabase_ADO.net%2FDatabase_Utilities"/>
		<link rel="alternate" type="text/html" href="http://www.nfex.ru/index.php?title=Csharp/C_Sharp/Database_ADO.net/Database_Utilities&amp;action=history"/>
		<updated>2026-04-13T20:17:40Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://www.nfex.ru/index.php?title=Csharp/C_Sharp/Database_ADO.net/Database_Utilities&amp;diff=1023&amp;oldid=prev</id>
		<title> в 15:31, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://www.nfex.ru/index.php?title=Csharp/C_Sharp/Database_ADO.net/Database_Utilities&amp;diff=1023&amp;oldid=prev"/>
				<updated>2010-05-26T15:31:19Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 15:31, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://www.nfex.ru/index.php?title=Csharp/C_Sharp/Database_ADO.net/Database_Utilities&amp;diff=1024&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://www.nfex.ru/index.php?title=Csharp/C_Sharp/Database_ADO.net/Database_Utilities&amp;diff=1024&amp;oldid=prev"/>
				<updated>2010-05-26T11:42:46Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Execute your Sql query ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
using System;&lt;br /&gt;
using System.Drawing;&lt;br /&gt;
using System.Collections;&lt;br /&gt;
using System.ruponentModel;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
using System.Data.SqlClient;&lt;br /&gt;
public class Queries : System.Windows.Forms.Form {&lt;br /&gt;
    private System.Windows.Forms.TextBox txtResult;&lt;br /&gt;
    private System.Windows.Forms.Label label1;&lt;br /&gt;
    private System.Windows.Forms.Label label2;&lt;br /&gt;
    private System.Windows.Forms.Button cmdExecute;&lt;br /&gt;
    private System.Windows.Forms.TextBox txtSql;&lt;br /&gt;
    private System.ruponentModel.Container components = null;&lt;br /&gt;
    public Queries() {&lt;br /&gt;
        InitializeComponent();&lt;br /&gt;
    }&lt;br /&gt;
    private void InitializeComponent() {&lt;br /&gt;
        this.txtSql = new System.Windows.Forms.TextBox();&lt;br /&gt;
        this.txtResult = new System.Windows.Forms.TextBox();&lt;br /&gt;
        this.label1 = new System.Windows.Forms.Label();&lt;br /&gt;
        this.label2 = new System.Windows.Forms.Label();&lt;br /&gt;
        this.cmdExecute = new System.Windows.Forms.Button();&lt;br /&gt;
        this.SuspendLayout();&lt;br /&gt;
        this.txtSql.Location = new System.Drawing.Point(0, 32);&lt;br /&gt;
        this.txtSql.Multiline = true;&lt;br /&gt;
        this.txtSql.Name = &amp;quot;txtSql&amp;quot;;&lt;br /&gt;
        this.txtSql.Size = new System.Drawing.Size(400, 72);&lt;br /&gt;
        this.txtSql.TabIndex = 0;&lt;br /&gt;
        this.txtSql.Text = &amp;quot;&amp;quot;;&lt;br /&gt;
        this.txtResult.Location = new System.Drawing.Point(0, 184);&lt;br /&gt;
        this.txtResult.Multiline = true;&lt;br /&gt;
        this.txtResult.Name = &amp;quot;txtResult&amp;quot;;&lt;br /&gt;
        this.txtResult.Size = new System.Drawing.Size(400, 88);&lt;br /&gt;
        this.txtResult.TabIndex = 1;&lt;br /&gt;
        this.txtResult.Text = &amp;quot;&amp;quot;;&lt;br /&gt;
        this.label1.Font = new System.Drawing.Font(&amp;quot;Microsoft Sans Serif&amp;quot;, 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));&lt;br /&gt;
        this.label1.Location = new System.Drawing.Point(8, 8);&lt;br /&gt;
        this.label1.Name = &amp;quot;label1&amp;quot;;&lt;br /&gt;
        this.label1.Size = new System.Drawing.Size(384, 16);&lt;br /&gt;
        this.label1.TabIndex = 2;&lt;br /&gt;
        this.label1.Text = &amp;quot;Type a SQL statement in the text box.&amp;quot;;&lt;br /&gt;
        this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;&lt;br /&gt;
        this.label2.Font = new System.Drawing.Font(&amp;quot;Microsoft Sans Serif&amp;quot;, 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));&lt;br /&gt;
        this.label2.Location = new System.Drawing.Point(0, 160);&lt;br /&gt;
        this.label2.Name = &amp;quot;label2&amp;quot;;&lt;br /&gt;
        this.label2.Size = new System.Drawing.Size(392, 16);&lt;br /&gt;
        this.label2.TabIndex = 3;&lt;br /&gt;
        this.label2.Text = &amp;quot;Execution Result&amp;quot;;&lt;br /&gt;
        this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;&lt;br /&gt;
        this.cmdExecute.Location = new System.Drawing.Point(152, 112);&lt;br /&gt;
        this.cmdExecute.Name = &amp;quot;cmdExecute&amp;quot;;&lt;br /&gt;
        this.cmdExecute.Size = new System.Drawing.Size(104, 32);&lt;br /&gt;
        this.cmdExecute.TabIndex = 4;&lt;br /&gt;
        this.cmdExecute.Text = &amp;quot;Execute Command&amp;quot;;&lt;br /&gt;
        this.cmdExecute.Click += new System.EventHandler(this.cmdExecute_Click);&lt;br /&gt;
        this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);&lt;br /&gt;
        this.ClientSize = new System.Drawing.Size(400, 275);&lt;br /&gt;
        this.Controls.Add(this.cmdExecute);&lt;br /&gt;
        this.Controls.Add(this.label2);&lt;br /&gt;
        this.Controls.Add(this.label1);&lt;br /&gt;
        this.Controls.Add(this.txtResult);&lt;br /&gt;
        this.Controls.Add(this.txtSql);&lt;br /&gt;
        this.Name = &amp;quot;Queries&amp;quot;;&lt;br /&gt;
        this.Text = &amp;quot;Tables and Relationships&amp;quot;;&lt;br /&gt;
        this.ResumeLayout(false);&lt;br /&gt;
   }&lt;br /&gt;
   private void cmdExecute_Click(object sender, System.EventArgs e) {&lt;br /&gt;
        try{&lt;br /&gt;
            SqlConnection conn = new SqlConnection(@&amp;quot;server=(local)\SQLEXPRESS;database=MyDatabase;Integrated Security=SSPI&amp;quot;); &lt;br /&gt;
            conn.Open();&lt;br /&gt;
            string strSQL=txtSql.Text;&lt;br /&gt;
            SqlCommand cmd= new SqlCommand(strSQL, conn);&lt;br /&gt;
            cmd.ExecuteReader();&lt;br /&gt;
            conn.Close();&lt;br /&gt;
            txtResult.Text = &amp;quot;SQL executed successfully.&amp;quot;;&lt;br /&gt;
         } catch (System.Data.SqlClient.SqlException ex) {&lt;br /&gt;
            txtResult.Text =&lt;br /&gt;
               &amp;quot;There was an error in executing the SQL. &amp;quot; +&lt;br /&gt;
               &amp;quot;Error Message:&amp;quot; + ex.Message; &lt;br /&gt;
         }&lt;br /&gt;
   }&lt;br /&gt;
   static void Main() {&lt;br /&gt;
      Application.Run(new Queries());&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>