string connetionString = null; SqlConnection cnn; connetionString = "Data Source=.\\SQLEXPRESS;Initial Catalog=master ;Integrated Security=True"; cnn = new SqlConnection(connetionString); try { cnn.Open(); SqlCommand thisCommand = cnn.CreateCommand(); thisCommand.CommandText = "select * from spt_fallback_dev"; SqlDataReader thisReader = thisCommand.ExecuteReader(); if ( thisReader.Read()) { MessageBox.Show("its damn reading "); } thisReader.Close(); cnn.Close(); MessageBox.Show("Connection Open ! "); ...
master
connetionString = "Data Source=.\\SQLEXPRESS;Initial Catalog=master ;Integrated Security=True";
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)