本文介绍了错误 - “无效对象名称Taluka”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

frendz在选择数据无效对象名称Taluka时出现此错误我的代码



frendz m getting this error while selecting the data "invalid object name Taluka" that my code

private void button1_Click(object sender, EventArgs e)
        {       SqlConnection cn = new SqlConnection("Data Source=AHASSAN-PC\\SQLSERVER2012;Initial Catalog=Sindh2_LARMIS_UAT_March;Integrated Security=True");
  cn.Open();

  SqlCommand cmd = new SqlCommand();
   cmd.Connection = cn;
   cmd.CommandText = "Select zilla_id from Taluka where taluka_id='18ae1965-9cab-49c2-bd34-1ab7d3cd55e2'";
     SqlDataAdapter sqlDataAdap = new SqlDataAdapter(cmd);
     DataSet ds = new DataSet();
     sqlDataAdap.Fill(ds, "ss");
     dataGridView1.DataSource = ds.Tables["ss"];

     dataGridView1.Rows[1].Visible = false;
     //dataGridView1.Columns[3].Visible = false;
   cn.Close();



请帮助我


kindly help me

推荐答案



这篇关于错误 - “无效对象名称Taluka”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-06 03:36