Results 1 to 6 of 6

Thread: Alternative Way to Import SQL to MYSQL

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2016
    Posts
    279

    Alternative Way to Import SQL to MYSQL

    Before, I asked a question in here how to linked the SQL to MYSQL. It was a success and I can also query from it. The problem is upon searching why "I can't find SQL SERVER AGENT" in SQL SERVER MANAGEMENT STUDIO EXPRESS EDITION is because it is "EXPRESS". All the ideas that I will be working using SQL Scheduler will unable to continue because the management studio that I have is not capable of it.

    Can I have alternative way where in I can create scheduler or scheduled time for Transferring the SQL to MYSQL.


    Thank you.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,347

    Re: Alternative Way to Import SQL to MYSQL

    There's a Task Scheduler built into Windows, which you can access from Control Panel -> Administrative Tools.

  3. #3
    PowerPoster
    Join Date
    Jun 2015
    Posts
    2,224

    Re: Alternative Way to Import SQL to MYSQL

    SQL SERVER AGENT? get off my lawn!

    but seriously... script it and put it in the crontab is how it's been done since the dawn of computing.


    edit: not to confuse the issue, but Task Scheduler is the Windows equivalent of cron.

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2016
    Posts
    279

    Re: Alternative Way to Import SQL to MYSQL

    Quote Originally Posted by jmcilhinney View Post
    There's a Task Scheduler built into Windows, which you can access from Control Panel -> Administrative Tools.
    what should i use to create script like that to implement in task scheduler

  5. #5
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,347

    Re: Alternative Way to Import SQL to MYSQL

    Whatever you can do from a command prompt, you can do from Task Scheduler. You can invoke an EXE written in VB or a PowerShell script or whatever you want.

  6. #6
    PowerPoster ChrisE's Avatar
    Join Date
    Jun 2017
    Location
    Frankfurt
    Posts
    3,048

    Re: Alternative Way to Import SQL to MYSQL

    Quote Originally Posted by earvinnill View Post

    Can I have alternative way where in I can create scheduler or scheduled time for Transferring the SQL to MYSQL.
    Thank you.
    Hi create your own Countdown ....
    Code:
    Option Explicit
    
    Private NextAction As Date
    Private Interval As Long
    Private IntervalType As String
    
    Private Sub Command1_Click()
       
       Dim i As Long
       
          'next full hour
          i = Hour(Now)
          Interval = 1
          IntervalType = "h"
          NextAction = DateAdd(IntervalType, Interval, Date + CDate(i & ":00:00"))
          Timer1.Interval = 1000
          Timer1.Enabled = True
          
          Label2.Caption = Format(NextAction, "dd.mm.yyyy hh:nn:ss")
          Command4.Caption = "Stop"
    End Sub
    
    Private Sub Command2_Click()
    
       Dim i As Long
       
          'every 10sec.
          Interval = 10
          IntervalType = "s"
          NextAction = Now
          Timer1.Interval = 1000
          Timer1.Enabled = True
          Label2.Caption = Format(NextAction, "dd.mm.yyyy hh:nn:ss")
          Command4.Caption = "Stop"
    End Sub
    
    Private Sub Command3_Click()
    
       Dim i As Long
       
          'every 2min.
          Interval = 2
          IntervalType = "n"
          NextAction = Now
          Timer1.Interval = 1000
          Timer1.Enabled = True
          NextAction = DateAdd(IntervalType, Interval, Date + CDate(i & ":00:00"))
          Label2.Caption = Format(NextAction, "dd.mm.yyyy hh:nn:ss")
          Command4.Caption = "Stop"
    End Sub
    
    Private Sub Command4_Click()
    
          Timer1.Enabled = False
          Command4.Caption = "Stopped"
    End Sub
    
    Private Sub Form_Load()
    
          Command1.Caption = "every hour"
          Command2.Caption = "every 10sec."
          Command3.Caption = "every 2min."
          Command4.Caption = "Stop"
    End Sub
    
    Private Sub Timer1_Timer()
    
       Dim s As String
       
          s = "Countdown " & Format(NextAction - Now, "hh:nn:ss")
          If NextAction > Now Then
             If Label1.Caption <> s Then
                Label1.Caption = s
             End If
             Exit Sub
          End If
          
          NextAction = DateAdd(IntervalType, Interval, Now)
          Timer1.Enabled = False
          'your action here
          
          List1.AddItem "Action " & Format(Now, "dd.mm.yy hh:nn:ss")
          Timer1.Enabled = True
          Label2.Caption = Format(NextAction, "dd.mm.yyyy hh:nn:ss")
    End Sub
    Last edited by ChrisE; Nov 4th, 2017 at 02:59 AM.
    to hunt a species to extinction is not logical !
    since 2010 the number of Tigers are rising again in 2016 - 3900 were counted. with Baby Callas it's 3901, my wife and I had 2-3 months the privilege of raising a Baby Tiger.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width