public static SqlDataReader GetReader(string Query) { string ConnectionString = System.Web.Configuration.WebConfigurationManager.ConnectionStrings["CONNECTION_STRING_NAME"].ConnectionString; SqlConnection con = new SqlConnection(ConnectionString); SqlCommand command = new SqlCommand(); command.Connection = con; command.Connection.Open(); command.CommandText = Query; return command.ExecuteReader(); }
You need to create an account or log in to post comments to this site.