Pages

Thursday, February 18, 2010

Test Blog Post

Here I am testing the google-code-prettify technique which I learned about from Vivian's Tech Blog.

Here is some C#:

private void buttonRestore_Click(object sender, EventArgs e)
{
string fileName = comboBoxFileName.Text;
if (string.IsNullOrEmpty(fileName))
{
MessageBox.Show("Enter Path", "Please enter a path from which to list files",
MessageBoxButtons.OK, MessageBoxIcon.Warning);
return;
}
if (!backgroundWorkerRestore.IsBusy)
{
richTextBoxErrorMessages.Text = string.Empty;
progressBar1.Visible = true;
m_restoreMessage = string.Empty;
buttonRestore.Enabled = false;
backgroundWorkerRestore.RunWorkerAsync(fileName);
}


//richTextBoxErrorMessages.Text = "Database Restored";
}

Here is some T-SQL:

SELECT * FROM ::fn_listExtendedProperty (N'AA_VERSION','user', 'dbo', 'table', N'tb_Auction', DEFAULT, DEFAULT)



It really works well.

No comments:

Post a Comment