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