disable "offline" database scanning

Olga Nazarova 1 Reputation point

Hellow! We have more than 10 bases "offline". They will be disabled for a few more months. SQL still speaks to them every minute. This creates
unnecessary load on the server. How to disable scanning of databases "offline"?

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,261 questions
SQL Server Analysis Services
SQL Server Analysis Services
A Microsoft online analytical data engine used in decision support and business analytics, providing the analytical data for business reports and client applications such as Power BI, Excel, Reporting Services reports, and other data visualization tools.
1,231 questions
0 comments No comments
{count} votes

5 answers

Sort by: Most helpful
  1. Olaf Helper 38,861 Reputation points

    SQL still speaks to them every minute

    I don't understand what you mean with this, may can you explain it more detailed, please?
    If you take a database offline, then SQL Server don't do anything further with that database. It's only keeps the database basic informations like name and files.

    0 comments No comments

  2. CathyJi-MSFT 21,111 Reputation points Microsoft Vendor

    Hi @Olga Nazarova ,

    Sorry, I can't understand your issue.

    > How to disable scanning of databases "offline"?

    Could you please explain that how SQL server scan the database? This will help us to understand your issue.

    When the database is in offline state, the database is unavailable. So what did you real mean with you say the SQL still speaking to offline databases?

    0 comments No comments

  3. Olga Nazarova 1 Reputation point

    We are transferring databases offline. In the sql and windows event log, we observe every minute a check of the availability of disconnected databases.
    Login failed for user ".." Reason: Could not open explicitly specified database "base 1..n"


    The databases are disconnected, but the database server user checks the connection 1-2 times a minute.

  4. CathyJi-MSFT 21,111 Reputation points Microsoft Vendor

    Hi @Olga Nazarova ,

    Agree with Tom. Did you have any SQL server agent job that need to access the offline database frequently? Or did you have any application that use these offline databases?

    If you get more related error message from event log, please share them to us.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    0 comments No comments

  5. Olga Nazarova 1 Reputation point

    I think you are right. I will check the thought..