I have an SQL file that looks like this (clearly the real thing is a bit longer and actualy does stuff :))
DECLARE @Mandatory int = 0
DECLARE @Fish int = 3
DECLARE @InitialPriceID int
if @Mandatory= 0
begin
select @InitialPriceID = priceID from Fishes where FishID = @Fish
end
I have a file of 'Mandatory' and 'Fish' values
Mandatory,Fish
1,3
0,4
1,4
1,3
1,7
I need to write a program that will produce an SQL file (or files) for our DBO to run against the database. but I am not quite sure how to approach the problem...
Cheers