看看这个例子
http://community.csdn.net/Expert/topic/3216/3216671.xml?temp=.6849024
你把我的所有拷贝过去运行就好了,
注意,一定要配置连接字符串