Where does the stored procedure Searchinall come from?

All we need is an easy explanation of the problem, so here it is.

When I create a new database in SSMS either using the creation wizard or the CREATE DATABASE command the database will contain a stored procedure called Searchinall. This procedure has never been added to new databases previously, but since 2 days it will be created in every new database, no matter how I create it. I have tried creating a database from a different Computer on this server as well, but the stored procedure will still appear.

When I tried looking online for a procedure Searchinall I could not find any results, so I suspect it is not a new feature and nothing that should be created by default.

Could someone have maybe accidentally added it as a default stored procedure to be created in every new database on the server?
If so, how can I disable it?

How to solve :

I know you bored from this bug, So we are here to help you! Take a deep breath and look at the explanation of your problem. We have many solutions to this problem, But we recommend you to use the first method because it is tested & true method that will 100% work for you.

Method 1

When you create a new database in SQL Server the Model database is used as a template. Your new database will contain any stored procedurethat is in the model database.

From what you are describing it seems that the stored procedure, Searchinall is a custom procedure added to the model database by someone in your organization and then automatically included in any database that you created.

Method 2

Usually, it is placed in the model database, that serves as default template when you create a new database. Try to look into it.

Method 3

Look in the model database. That is where new databases are copied from

Note: Use and implement method 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply