How can I omit system databases and allow SQL Server 2008 agent job to move past ERROR_NUMBER 208?
问题 I have created a SQL Server 2008 Agent job that runs against all databases on the server. I am using the undocumented MS procedure, sp_MSforEachDB . I am specifying only certain databases to be processed and when these databases are found, if ERROR_NUMBER = 208 , I want a table to be created and processing to continue to the next database. I also want to omit the system databases so the tabel doesn't get created in a system database. I though by specifying the names of the databases I want to