Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

SQL stored procedure and a CSV

$
0
0

Hello all,

I have a stored procedure that I need to run against my DB to close open tickets. The way the stored procedure works is it closes open tickets by the i_ticket_id. There are currently 350 tickets open and it would be a pain to close all manually. So I was hoping there is a way that if I have all the ticket id's in a CSV that I would be able to run the stored procedure and that it would close each ticket. 

Here is how I cal the procedure to close a single ticket

sp_closeticket '-ticketid-'

TIA


Viewing all articles
Browse latest Browse all 4871

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>