Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Shivani Chavan

Shivani Chavan

Community Learner
Share
4Questions
1Answers
7.0KViews on questions

How to use SQL server foreach loop in SQL scripts?

You can use SQL server foreach loop in T-SQL against a set of data in T-SQL.SQL server foreach loop is set to keep looping as long as there is at least a row of data in @Enumerator. PowerShell is still viable and potentially a lot easier, especially when you leverage dbatools. You can use Get-DbaDatabase to not only…

Salesforce

Answered Aug 23, 2021 · 1.8K Views Read answer →

More members from the Data Science community

Learners asking and answering questions on the same topics — follow their questions and join in.

Latest Data Science Blogs

Guides, tips and career advice on Data Science from JanBask experts.

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.