I have written some simple code which i will try to loop later but I am getting no success in trying to use SSJS to update SQL queries. I don't need to perform the actual query i just need to update the query text.
<script runat="server"> Platform.Load("core","1.1"); var qd = QueryDefinition.Init("abc-def-123-456"); var QT1 = "SELECT a.* FROM [data_extension] a"; qd.QueryText = QT1; </script>
Please let me know where I am going wrong