How to solve "The SQL Server service failed to start. For
more information, see the SQL Server Books Online topics"
error.
Answer / saef-allah
Struggled with this one for 2 days and went through tons of
forums till I found this one:
http://social.msdn.microsoft.com/Forums/en-
US/sqlsetupandupgrade/thread/84b399b5-7d7b-46fa-8f86-
8c9af2cbf641
SokSa.Icy had the right idea.
My particular problem also involved going through the
registry to remove all instances of Visual Studio 2008 as
well as a .Net 3.5 hotfix that I could not get rid of.
Once I uninstalled and did everything this guy did, I also
went through the registry and searched/deleted all
instances of the framework hotfix to get it out of the
add / remove dialog box in control panel.
I also used wise registry cleaner to make sure I got all
inconsistencies out of the way, rebooted, and
installed .net 2.0 Express.
After a successful installation, I rebooted again and ran
sql server 2005 express installation and presto - back in
business...
God Bless the user forums on the Net - Microsoft would have
made a bundle off us by now in tech support fees...
| Is This Answer Correct ? | 14 Yes | 4 No |
What is Mutex error in Triggers?
What is live lock, deadlock and what is Lock escalation?
When do you get "getwmicomexception"?
On which table the SSIS SQL Server logs are stored?
How many types of internal joins are there in SQL Server?
What is SCD (Slowly Changing Dimensions)? What are its types?
when i save float data value 11.22 but this see in table 11.220000004758456 type ? how to save only two decimal point.
WHAT IS HTTP 500 Internal Server Error? CAN I SOLVE THIS?
How will you Handle Error in SQL SERVER 2008?
What is the meaning of lock escalation and why/how to stop this?
Difference between Bookmark lookup & RID lookup?
I have written the code as below. here problem is that dt remain null. how to solve thst please tell me. public partial class Form1 : Form { private DataTable DTable; private DataRow drow; public Form1() { InitializeComponent(); } private OleDbConnection getConnection() { OleDbConnection con=new OleDbConnection (@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\winApp for Student\winApp for Student\App_Data\SchooMgnSystem.mdb;Persist Security Info=True"); return con; } private void button1_Click(object sender, EventArgs e) { InsertData(); } private void InsertData() { if (DTable==null) { DTable = new DataTable(); DTable.Columns.Add("StudID", typeof(string)); DTable.Columns.Add("StudName", typeof (string)); DTable.Columns.Add("Address", typeof(string)); drow = DTable.NewRow(); drow[0] = txtStudID.Text; drow[1] = txtSTudName.Text; drow[2] = txtAddress.Text; DTable.Rows.Add(drow); grdStudent.DataSource = DTable; } else { drow = DTable.NewRow(); drow[0] = txtStudID.Text; drow[1] = txtSTudName.Text; drow[2] = txtAddress.Text; DTable.Rows.Add(drow); grdStudent.DataSource = DTable; } } private void button2_Click(object sender, EventArgs e) { string cmdstr; OleDbCommand cmd; OleDbConnection con = getConnection(); foreach (DataRow Drow in DTable.Rows) { cmdstr = "Insert into Student values('" + drow[0].ToString() + "','" + drow[1].ToString() + "','"+drow [2].ToString()+"')"; cmd = new OleDbCommand(cmdstr,con); try { con.Open(); cmd.ExecuteNonQuery(); } catch (Exception ex) { MessageBox.Show(ex.Message); } finally { con.Close(); } } }