How to save MiniProfiler data to Sql Database?
See original GitHub issueI’m using the NuGet Package ‘MiniProfiler.AspNetCore.Mvc’ on my ASP .Net Core 2.2.
I want write the data from the MiniProfiler directly to my Sql database.
In the example in the startup.cs is something writen about options.Storage = new SqlServerStorage("");
SqlServerStorage does not seem to be available.
Is there another way to save the data to the database or do I need to include something else to get it to work?
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
how to store MVC MiniProfiler results
I want to save the results of the MVC MiniProfiler to a sql server database. I profile a high load mvc4 page to...
Read more >How-To Profile SQL Server (…or anything else using ADO. ...
MiniProfiler takes a wrapping approach to profiling, which means profiling SQL Server, MySQL, etc. is all the same because they're all based on...
Read more >MiniProfiler in ASP.Net Core
If you want to persist the profile data, we have to use the database to store the profile results. Do the following to...
Read more >Profiling Web API with Mini Profiler - I ❤️ DotNet
Install Nuget Package MiniProfiler.Providers. · Modify your Mini Profiler Configuration and pass the Provider in the options as shown below. Code ...
Read more >Big Data - Disorderly Development
Displays current information about trends in real-time on a web dashboard; Stores information about the tweets into a SQL Azure database; Store the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Have you created the tables in SQL Server? MiniProfiler will use the tables, but not create them (since it’d require elevated permissions to do so).
If you are giving your app permissions to create the storage, you can do what the tests do (one time):
Or, you can generate the scripts it uses and spit them out to go run manually in whatever place you do database migrations. It’s a
List<string>
of commands to run from: