Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 view runs but can't do a select on the view

Author  Topic 

esthera
Master Smack Fu Yak Hacker

1410 Posts

Posted - 2008-08-19 : 06:50:31
I have a view and when I run the view it returns all the records.

if i do select * from parlastplace (name of the view) I get the error

Server: Msg 208, Level 16, State 1, Procedure parlastplace, Line 3
Invalid object name 'Placements'.
Server: Msg 4413, Level 16, State 1, Line 1
Could not use view or function 'parlastplace' because of binding errors.

Please advise what the issue can be?

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-08-19 : 06:55:24
seems like you've created it on wrong db or you dont have included table Placements created already.
Go to Top of Page

esthera
Master Smack Fu Yak Hacker

1410 Posts

Posted - 2008-08-19 : 07:40:59
there is only 1 db
and the placements table is there
Go to Top of Page

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2008-08-19 : 07:46:27
table is of different owner ?


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2008-08-19 : 08:41:50
quote:
Originally posted by esthera

I have a view and when I run the view it returns all the records.

if i do select * from parlastplace (name of the view) I get the error

Server: Msg 208, Level 16, State 1, Procedure parlastplace, Line 3
Invalid object name 'Placements'.
Server: Msg 4413, Level 16, State 1, Line 1
Could not use view or function 'parlastplace' because of binding errors.

Please advise what the issue can be?


See if the columns used in the view exist in the table being referenced

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-08-19 : 09:50:46
can you post the view definition?
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2008-08-19 : 22:59:47
Looks like view's owner is not dbo.
Go to Top of Page
   

- Advertisement -