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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Administration
 Database owner not able to see a column
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

sunsanvin
Flowing Fount of Yak Knowledge

India
1274 Posts

Posted - 07/04/2013 :  08:41:58  Show Profile  Send sunsanvin a Yahoo! Message  Reply with Quote
Hi Team,
I've two datbases, dev and test. both are of same data. I've a user for both the databases ABC. this user is DBowner on both the databases.

there is one table xyz_address.
it has 14 coulmns, onr of those is primary key column. with Identity property. I'm doing alt+f1 on the same table on both the databases. surprisingly, on dev database, the primary key column is not coming up. rest of columns are available. I tried select * from that table. other than that column, all the data is coming up.

select <column_name> from xyz_address is giving error as invalid column, but is working on testDB. what is this strange issue? please provideme your inputs.

Cheers

Arnav
Even you learn 1%, Learn it with 100% confidence.

visakh16
Very Important crosS Applying yaK Herder

India
52326 Posts

Posted - 07/04/2013 :  08:49:41  Show Profile  Reply with Quote
firset check column exists in dev db


SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME='xyz_address' AND COLUMN_NAME = 'your pk column name'


------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000