Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / DB Engine / SQL Server / March 2008

Tip: Looking for answers? Try searching our database.

strange error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
tulip - 19 Mar 2008 21:48 GMT
I have those errors Invalid object name 'msdb..sysJobs'.
=========================================================================
the error comes from the query
select count(*) from msdb..sysJobs j, msdb..sysjobschedules s where
j.enabled = 1 and j.job_id = s.job_id

I run the query on same servers with sysjobs, everything is fine. But why
sysJobs can't be accepted?  so strange, any idea please? thank you
Aaron Bertrand [SQL Server MVP] - 19 Mar 2008 22:13 GMT
Sounds like you have a case sensitive collation on that server.  I suggest
always using the actual case and not creating your own punctuation for these
objects, for exactly this reason.

Also, I strongly recommend getting out of the bad habit of writing old-style
joins.  The proper, more modern, more standard, and more readable query
would be:

SELECT COUNT(*)
FROM msdb.dbo.sysjobs j
INNER JOIN msdb.dbo.sysjobschedules s
ON j.job_id = s.job_id
WHERE j.enabled = 1;

>I have those errors Invalid object name 'msdb..sysJobs'.
> =========================================================================
[quoted text clipped - 4 lines]
> I run the query on same servers with sysjobs, everything is fine. But why
> sysJobs can't be accepted?  so strange, any idea please? thank you
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.