Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to run a script from bamboo to MS SQL server ??

Anu Abraham
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 15, 2016

Hi all,

I wanted to run a script which is located in in the BBS, when the change is committed to the bbs the bamboo plan will get trigger and the script need to be executed in the MS SQL server??

please guide me for the same. Any other info i can provide regarding the problem statement please comment here,

Thanx in advance.

1 answer

0 votes
SidduAngadi
Contributor
June 15, 2016

if your bamboo installed on windows, use sqlcmd.  You can run batch file as task job in bamboo

refer https://msdn.microsoft.com/en-us/library/ms180944.aspx

if linux:  refer this page https://msdn.microsoft.com/en-us/library/hh568454(v=sql.110).aspx

Best approach use some python or java with JDBC driver to connect to sql server.  

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events