直接调用存储过程

sql = "EXEC [dbo].[xsp_ination] \"tblNEWS\",\"*\",\"id\",40," + pindex.ToString() + ",1,\"iType=" + type.ToString();   
SqlDataReader sr = ExecuteReader(sql);   
while (sr.Read())  
 {      ...   } 
  sr.Close(); 
posted @ 2011-03-23 13:44  小锋神  阅读(214)  评论(0编辑  收藏  举报