What is the exact text of the exception that you catch when you execute
the delete operation?
Peer code review time:
> connectionString = "Provider=SQLOLEDB;Data
> Source=Ravi;Initial Catalog=Master;" +
> "Integrated Security=SSPI;";
> }
>
> OleDbConnection connection = new OleDbConnection
> (connectionString);
If your code will always be executing against SQL Server, and only SQL
Server, then consider using the SQL Server Managed Provider classes
(SqlCommand, SqlConnection, et al) for better performance.
> String StrCreateDb = "Create Database
> ["+textBox1.Text+"]";
Consider using StringBuilder to concatenate strings for better
performance:
System.Text.StringBuilder createDB = new System.Text.StringBuilder();
createDB.AppendFormat("CREATE DATABASE [{0}]", textBox1.Text);
string StrCreateDb = createDB.ToString();
> for(int x=0; x<=200000;x++)
> {
> }
Huh?