直接调用存储过程

sql = "EXEC [dbo].[xsp_ination] \"tblNEWS\",\"*\",\"id\",40," + pindex.ToString() + ",1,\"iType=" + type.ToString();   
SqlDataReader sr = ExecuteReader(sql);   
while (sr.Read())  
 {      ...   } 
  sr.Close(); 

你可能感兴趣的:(存储过程)