Invalid object name 'xxx.PersonInfo'.

M

moni

Hi,

I am using a table named PersonInfo in my database monisha in the SQL
server.
I need to use this in a .aspx file , but its giving me the error of
invalid object name.

<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ConnectionStrings:monishaCS%>"
SelectCommand="SELECT [ID], [Name], , [PhoneNumber]
FROM [monisha.PersonInfo]">
</asp:SqlDataSource>

I have used it like that. Don know where I am going wrong. monishaCS
are my connection strings in my web.config file.

Pleassse help.
Thanks alot!
 
G

Guest

Likely that the connection string is pointing to a database which doesn't
have the table monisha.PersonInfo. Also, try your query without the owner
name 'monisha', in case it has changed.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top