存储过程
create procedure upro_SelOnePic 
as  
set nocount on  
select ……
set nocount off
go
视图
use kindmanage
go
create view uview_SelOnePic
as
select ……
go
为什么存储过程和视图有同样的select语句,程序中调用存储过程绑定到gridview没有出错,程序中调用SQL视图绑定到gridview却在某几个字段出现错位呢??
比如我gridview的某列绑定字段“英文”,它却显示字段“中文”的数据呢。某列绑定字段“中文“,它却显示字段“价格”的数据呢??