If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Microsoft SQL Server > Schema Name is changing automatically

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-08-10, 09:54
capvenu capvenu is offline
Registered User
 
Join Date: Aug 2010
Posts: 25
Schema Name is changing automatically

Table's Schema Name is changing automatically..


Missing a letter in the schema name & it's showing table doesn't exist when i run dbccshowcontig.error 2501

any help is appreciated
Reply With Quote
  #2 (permalink)  
Old 09-08-10, 12:32
blindman blindman is offline
World Class Flame Warrior
 
Join Date: Jun 2003
Location: Ohio
Posts: 11,726
Are you running DDL code to create the table?

We really need more information to help you.
__________________
If it's not practically useful, then it's practically useless.

blindman
www.chess.com: "sqlblindman"
Reply With Quote
  #3 (permalink)  
Old 09-08-10, 15:06
capvenu capvenu is offline
Registered User
 
Join Date: Aug 2010
Posts: 25
Quote:
Originally Posted by blindman View Post
Are you running DDL code to create the table?

We really need more information to help you.
no.already existed table ........previously job was successful,now job failed due to object doesn't exist.

error 2501
Reply With Quote
  #4 (permalink)  
Old 09-08-10, 15:22
MCrowley MCrowley is offline
Wage drone 24601
 
Join Date: Jan 2003
Location: Massachusetts
Posts: 4,899
Changing schema names is not something that SQL Server will do spontaneously. Ask around, and find out who in your group has changed it to the wrong thing.
Reply With Quote
  #5 (permalink)  
Old 09-08-10, 15:32
capvenu capvenu is offline
Registered User
 
Join Date: Aug 2010
Posts: 25
sompsed MRS

one time it is showing wrong schema name(missing one letter in the schema name)

if i refresh the database it's showing correct schema name


rowcount also differing in this scenarios
Reply With Quote
  #6 (permalink)  
Old 09-08-10, 15:36
MCrowley MCrowley is offline
Wage drone 24601
 
Join Date: Jan 2003
Location: Massachusetts
Posts: 4,899
Sounds like you have two tables with similar names, then. Just different rowcounts. "Refreshing the database" (really refreshing SSMS) will re-order the list of tables alphabetically by schema name, then table name.
Reply With Quote
  #7 (permalink)  
Old 09-08-10, 15:44
capvenu capvenu is offline
Registered User
 
Join Date: Aug 2010
Posts: 25
i'm running the job with dbshowcontig ,job keep on failing due to this table doesn't exist(previously ran successfully)


Cannot find a table or object with the name "Servername\sqlsrvr.XYZ(table name)".


Check the system catalog. [SQLSTATE 42S02] (Error 2501) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0) [SQLSTATE 01000] (Error 0). The step failed.
Reply With Quote
  #8 (permalink)  
Old 09-09-10, 09:56
capvenu capvenu is offline
Registered User
 
Join Date: Aug 2010
Posts: 25
Any help is appreciated.

Thanks
Reply With Quote
  #9 (permalink)  
Old 09-09-10, 10:33
MCrowley MCrowley is offline
Wage drone 24601
 
Join Date: Jan 2003
Location: Massachusetts
Posts: 4,899
You need to help us, before we can help you. If you went to a doctor, and simply said "it hurts", the doctor would likely kick you out as a troublemaker. If you went to the doctor, and said "It hurts when I do this", and show the doctor what makes the pain, you may come away with a treatment.

In short, post the code that generates this error. And no, I do not mean
Code:
dbcc showcontig('tablethatobviouslydoesnotexist')
As I have said before, you should check the spelling of all of the parts involved. This includes the actual table name, and schema, as well as the table name and schema you are supplying to dbcc showcontig.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On