# Sql server 2014

**URL:** <https://discourse.chef.io/t/sql-server-2014/11647>\
**Category:** Chef Infra (archive)\
**Created:** [September 28, 2017, 1:29pm UTC](https://discourse.chef.io/t/sql-server-2014/11647 "2017-09-28T13:29:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![priyanshu](https://avatars.discourse-cdn.com/v4/letter/p/a9adbd/32.png) [@priyanshu](https://discourse.chef.io/u/priyanshu)\
**Post date:** [September 28, 2017, 1:29pm UTC](https://discourse.chef.io/t/sql-server-2014/11647/1 "2017-09-28T13:29:25Z")

</div>

How can we run .sql file on windows sql server 2014 in chef.  
Do we have any resource or any ruby code to perform this task

---

<div class="post-metadata">

**Author:** ![Matt\_Wrock](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/matt_wrock/32/3394_2.png) [@Matt\_Wrock](https://discourse.chef.io/u/Matt_Wrock)\
**Post date:** [September 28, 2017, 10:06pm UTC](https://discourse.chef.io/t/sql-server-2014/11647/2 "2017-09-28T22:06:12Z")

</div>

I think your best bet would be to have chef install a sql server cli client and then use the execute resource to feed your `sql` file to that cli.
