Use other SQL Server Databases
I have I library that creates and drops databases on the fly and
for obvious reasons I cannot drop the master database.
Is it possible to connect to a different database in the
server?
Thanks!
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by Rob Morgan on 18 Jun, 2014 02:07 PM
We are using this command at the moment. I think I just need to tweak a few parameters to make it work:
Support Staff 2 Posted by Feodor Fitsner on 18 Jun, 2014 05:29 PM
That's right you can drop and create any databases as you have admin access on build worker.
@Rob I think you are missing SQL instance name in your script. Also, make sure SQL Server service is enabled on Environment tab of project settings.
More info: http://www.appveyor.com/docs/services-databases
3 Posted by Rob Morgan on 19 Jun, 2014 09:47 AM
I am trying this now, still not working but I think we're almost there!! Any tips?
Cheers,
Rob
Support Staff 4 Posted by Feodor Fitsner on 19 Jun, 2014 05:33 PM
Make sure SQL Server service is enabled on Environment tab of project settings (or in YML if you use it).
5 Posted by Rob Morgan on 20 Jun, 2014 09:42 AM
Ok Guys, I cracked it. The problem was the order or execution, MSSQL hadn't started when I was trying to create the DB.
Support Staff 6 Posted by Feodor Fitsner on 20 Jun, 2014 07:21 PM
Great, thanks for the update!
- Feodor
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:45 AM.