单位需要从数据库中去读用户级别的存储过程,那么各位大侠,这个SQL怎么写啊?

解决方案 »

  1.   

    参考一下这个贴子的提问方式http://topic.csdn.net/u/20091130/20/8343ee6a-417c-4c2d-9415-fa46604a00cf.html
       
      1. 你的 create table xxx .. 语句
      2. 你的 insert into xxx ... 语句
      3. 结果是什么样,(并给以简单的算法描述)
      4. 你用的数据库名称和版本(经常有人在MS SQL server版问 MySQL)
      

  2.   

    select name from sysobjects where type='p'?
      

  3.   

    没那么复杂。我在数据库上新建了几个存储过程,现在我想要把这几个我建立的存储过程绑定到COMBOBOX上。怎么写啊?各位大虾!
      

  4.   

    private void Form1_Load(object sender, System.EventArgs e)
    {
    //在formload时绑定数据表yg到comboBox1
    SqlConnection conn=new SqlConnection("server=.;uid=sa;pwd=;database=gz");conn.Open();
    SqlDataAdapter da=new SqlDataAdapter("select * from sys.objects  where type='P' and name not like 'sp_%'",conn);
    DataSet ds=new DataSet();
    da.Fill(ds,"yg");DataRow dr = ds.Tables["yg"].NewRow();
    dr["ygid"] = "0";
    dr["ygname"] = "-请选择-";
    ds.Tables["yg"].Rows.InsertAt(dr, 0);
    this.comboBox1.DataSource=ds.Tables["yg"];
    this.comboBox1.DisplayMember="ygname"; //显示的列
    this.comboBox1.ValueMember="ygid"; //数据列,次列会在selectedvalue中显示
    conn.Close();}
      

  5.   

    我刚试了试,存储过程可是是汉字的。那我想可以是汉字的就最好了,不用写说明文件了,那么中文的存储过程绑定SQL怎么写?谢谢