sqlException是未处理的无效对象名称“unc_tb” [英] sqlException was unhandled invalid object name "unc_tb"

查看:101
本文介绍了sqlException是未处理的无效对象名称“unc_tb”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在visual basic中创建了一个表单,我想连接sql连接我编写代码来创建数据库和表并且没有错误但我有一条消息显示sqlException未处理无效的对象名称unc_tb在程序行(da.Fill(ds,unc_tb)和运行模式下的表格没有出现

如何解决这个问题

提前致谢

Dalia

I made a form in visual basic and I want to connect with sql connection I write the code to create database and tables and there are no errors but I have a message that appear sqlException was unhandled invalid object name "unc_tb" at the line of program (da.Fill(ds,"unc_tb") and the form in run mode don''t appear
How can I solve this problem
Thanks in advance
Dalia

推荐答案

看看 五个不同的DataAdapter.Fill()方法重载 [ ^ ] by a a href => http://www.codeproject.com/Members/Ravindra-TC [ ^ ]并尝试da.Fill(ds)而不是da.Fill(ds,dd_tb)
Take a look at Five different overloads of the DataAdapter.Fill() method[^] by http://www.codeproject.com/Members/Ravindra-T-C[^] and try da.Fill(ds) instead of da.Fill(ds, "dd_tb")


这篇关于sqlException是未处理的无效对象名称“unc_tb”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆