I apologize. I pieced together my SQL and the result before. I'll try
to handle it consistently here. In database 'plibrary' I'm trying to
get some information about my tables.
use plibrary
go
sp_help
returns a whole list of object, among them:
PARCEL property user table
sp_help parcel
returns:
Server: Msg 15009, Level 16, State 1, Procedure sp_help, Line 71
The object 'parcel' does not exist in database 'plibrary'.
sp_help property.parcel
returns:
Server: Msg 170, Level 15, State 1, Line 1
Line 1: Incorrect syntax near '.'.
I don't have this problem with tables in 'Northwind' database, but I do
have the same problem in my 'raster' database.
I have recently restored the 'plibrary' database and had to re-run
sp_defaultdb for a bunch of users because the dbid for database
'plibrary' had changed. I'm wondering if there are other places where
the dbid is stored that may also need to be corrected for the new dbid
maybe?
Okay, onto the next thing.
select * from sysobjects where name = 'PARCEL'
returns (uid = 36):
PARCEL 1688393084 U 36 3 1619460099 384 0 0 2004-01-29
10:59:38.857 0 384 0 U 1 115 0 2004-01-29
10:59:38.857 0 353436333 337436276 353436333 0 0 0
select object_name(36)
returns: NULL
Now I see that if I connect as the table owner 'property' I do get a
result from sp_help, but shouldn't I be able to get that same
information from sp_help if I'm connected as 'sa' or some other user
with read privilege (the table is read-able by public)?
Thanks so much for your help.
D Bull
GIS Programmer/DBA
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!