Hi Imar,
I am having success deploying databases, but I keep getting a string of errors from the remote SQL server when I run my SQL scripts. The tables are created and the data loads, but I don't like seeing an error listing. Here is the list of errors I get:
Code:
Msg 15247, Level 16, State 1, Line 1
User does not have permission to perform this action.
Msg 5069, Level 16, State 1, Line 1
ALTER DATABASE statement failed.
Msg 15247, Level 16, State 11, Line 1
User does not have permission to perform this action.
Msg 5069, Level 16, State 1, Line 1
ALTER DATABASE statement failed.
Msg 15247, Level 16, State 1, Line 1
User does not have permission to perform this action.
Msg 5069, Level 16, State 1, Line 1
ALTER DATABASE statement failed.
It seems like this error list is telling me that all the errors are associated with the first command, so I removed that line and it's associated Go command, but then I get another set of errors that say the same thing.
It keeps saying Line 1, but then it gives the same errors 3 times all against Line 1. I would have thought there would be an error listed for each line that is not accepted so one could examine all lines to remove.
I did edit out the CREATE DATABASE line because with my hosting service I create the database through their front end. Again, when I run the script against that database everything turns out OK. I just don't like the errors. Do we just ignore errors in SQL? It seems to me that ignoring error reports is at one's own peril.
I wondered if could comment on this.
Best Regards,
Alan