SQL Database
mikehalford
Posts: 8
We would like to use the SQL database option to store error reports.
Unfortunately the database we want to use is on a shared server and there for we do not have access to the master database we only have access to a database we own.
Is it possible to get hold of any script to create the required tables etc. in our database. Once this is done we will point the error reporting to the updated database.
Many Thanks
Unfortunately the database we want to use is on a shared server and there for we do not have access to the master database we only have access to a database we own.
Is it possible to get hold of any script to create the required tables etc. in our database. Once this is done we will point the error reporting to the updated database.
Many Thanks
Comments
I'm not sure how easily this will work tbh, as I think SA always checks the existence of the database and if you don't have permission to do that, then it'll fail every time even though the database is there. It does this by executing:
Based on a profiler trace it then does the following, but it's probably easier and more reliable to set up your own instance (SQL Express will do)...
It then does an update to set the serial, and also the map folder path:
That's obviously done with parameter replacement so you'd need to amend that query accordingly.
That seems to be all it does as far as a SQL trace shows. I've not tried manually running this myself and as I mentioned above, creating an instance you do have full access to is the recommended way - but these commands may be helpful if you do want to try creating it manually.
Redgate Software
Not sure it will work if you check for a database with a specific name. I thought the connection string would specify the database name.
Also not sure how I can manage the map folders on a remote server but will give it a go.