Advertisement
Guest User

Untitled

a guest
Aug 6th, 2016
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. Dim cmd As New Odbc.OdbcCommand
  2. server1 = "Driver={MySQL ODBC 5.1 Driver};Server=localhost;Database=db_checkvoucher;User=root;Password=;Option=3;"
  3.  
  4. client1 = "Driver={MySQL ODBC 5.1 Driver};server=192.168.1.2;" _
  5. & "User=root;Password=;" _
  6. & "database=db_checkvoucher;"
  7.  
  8. If Form1.TextBox1.Text = "1" Then
  9. con.ConnectionString = client1
  10. Else
  11. con.ConnectionString = server1
  12. End If
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement