无效的对象名称'my table name'asp.net

时间:2018-06-02 14:54:16

标签: asp.net sql-server vb.net sql-server-2008

我已在smarterasp.net主机上载了一个包含数据库的网站 我已经为该网站创建了RSS页面,但是当我尝试访问此页面时,会出现此错误:

Invalid object name 'tblRSS'.
Description: An unhandled exception occurred during the execution of the 
current web request. Please review the stack trace for more information 
about the error and where it originated in the code. 
Exception Details: System.Data.SqlClient.SqlException: Invalid object name ' 
tblRSS'.

Source Error: 
An unhandled exception was generated during the execution of the current web 
request. Information regarding the origin and location of the exception can 
be identified using the exception stack trace below.
Stack Trace: 
[SqlException (0x80131904): Invalid object name 'tblRSS'.]

我的代码是:

 Dim dt As DataTable = New DataTable()
    Dim conn As New SqlConnection("Data Source=SQL7002.site4now.net;Initial Catalog=DB_?????????;User Id=?????????_admin;Password=???????????;")

    Using (conn)
        Dim ad As SqlDataAdapter = New SqlDataAdapter("SELECT * from tblRSS", conn)
        ad.Fill(dt)
    End Using

我确定tblRSS表存在,你能帮助我吗?

0 个答案:

没有答案