战神白起
一战成名
最近一段时间,在网上闲逛中找到了小山那篇功能齐全的DataGrid 文章,如获至宝。下载源程并作了修改,但运行过程中出现了以下的错误。

Exception Details: System.Data.SqlClient.SqlException: 对象名 'province' 无效。

Source Error:

Line 105:			SqlDataAdapter	sda =new SqlDataAdapter(sql,constring);
Line 106:			DataSet ds=new DataSet();
Line 107:			sda.Fill(ds);
Line 108:			return ds;
Line 109:		}

Source File: c:\inetpub\wwwroot\webapplication2\webform1.aspx.cs    Line: 107

百思不得其解之时,几经思索,才发现问题就出在建立数据表时,province表名出了点状况,拼错了。

出现了Microsoft OLE DB Provider for SQL Server 错误 80040e37。
posted on 2006-03-03 08:47  战神白起  阅读(3616)  评论(1编辑  收藏  举报