Many Sql scripts to execute

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #16
    It's too small for me to read. It's just command prompts, there's no need for screenshots, just type what it says in the thread.

    Comment

    • waqar100
      New Member
      • Jun 2010
      • 27

      #17
      I typed already,& the issue is at the image,

      Comment

      • Rabbit
        Recognized Expert MVP
        • Jan 2007
        • 12517

        #18
        I already said I can't read the text in the image. Type the text in the image into the thread itself.

        Comment

        • Oralloy
          Recognized Expert Contributor
          • Jun 2010
          • 988

          #19
          Waqar100,

          remove the "<" and ">" from your command.

          It should probably read:
          Code:
          1.for %f in (*.sql) do sqlcmd /S WAQAR-PC\KARACHI20882 /d SF_CORE_DEV_CMD /E /i "%f"

          Comment

          • nbiswas
            New Member
            • May 2009
            • 149

            #20
            c:\>for %f in (*.sql) do sqlcmd /S <servername> /d <dbname> /E /i "%f"

            Comment

            Working...