|
|
Posted on
2009-05-07 18:27
wanderer
阅读( 218)
评论()
收藏
举报
 Code string connstring = System.Configuration.ConfigurationManager.ConnectionStrings["wanderer"].ConnectionString; SqlConnection sqlconn = new SqlConnection(connstring); sqlconn.Open(); SqlCommand comm = new SqlCommand("myclr2", sqlconn);
comm.CommandType = CommandType.StoredProcedure; comm.Parameters.Add("@my_id", SqlDbType.Int).Value = 1; comm.ExecuteReader();
 Code create procedure dbo.add_article_class @classname varchar(50),--名称 @parentid int,--父栏目ID @parentpath varchar(500),--路径 @depth int,--栏目层数 @rootid int,--根栏目ID @child int,--子栏目数目 @ptevid int,--同级上目录一个ID @nextid int,--同级下目录一个ID @orderid int--排序id as insert into article_class ( classname, parentid, parentpath, depth, rootid, child, ptevid, nextid, orderid) values (@classname, @parentid, @parentpath, @depth, @rootid, @child, @ptevid, @nextid, @orderid)
|