Нет описания
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

SQL_連線字串.vb 1.7KB

123456789101112131415161718192021222324
  1. Module SQL_連線字串
  2. Friend Sub SQL_連線字串_正式()
  3. Dim catalogName As String = "GF" & 資料庫編號 & "-ERP-SYS"
  4. If Strings.Left(登入人IP, 3) = "106" Then
  5. ConString = "Data Source=" & 登入人IP & ";Initial Catalog=GF00-ERP-SYS;Persist Security Info=True;User ID=b70340;Password=Lee0911274990;Max pool size = 200;Connection Timeout=0"
  6. Else
  7. ConString = "Data Source=" & 登入人IP & ";Initial Catalog=" & catalogName & ";Persist Security Info=True;User ID=b70340;Password=Lee0911274990;Max pool size = 200;Connection Timeout=0"
  8. End If
  9. End Sub
  10. Friend Sub SQL_連線字串_管理SQL()
  11. ConString1 = "Data Source=" & 登入人IP & ";Initial Catalog=GCM-IP-DATE02;Persist Security Info=True;User ID=b70340;Password=Lee0911274990;Max pool size = 200; Connection Timeout=0"
  12. End Sub
  13. Friend Sub SQL_連線字串_版本SQL()
  14. Dim catalogName As String = PA50
  15. ConString4 = "Data Source=" & 登入人IP & ";Initial Catalog=" & catalogName & ";Persist Security Info=True;User ID=b70340;Password=Lee0911274990;Max pool size = 200;Connection Timeout=0"
  16. End Sub
  17. Friend Sub SQL_連線字串_圖片資料庫()
  18. ConString2 = "Data Source=" & 登入人IP & ";Initial Catalog=" & 圖片庫 & ";Persist Security Info=True;User ID=b70340;Password=Lee0911274990;Max pool size = 200;Connection Timeout=0"
  19. End Sub
  20. Friend Sub SQL_連線字串_本機()
  21. Dim Str As String = Application.StartupPath
  22. AccessConString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Str & "/HabitData.mdb;Jet OLEDB:Database Password=Qaz!@#123;Persist Security Info=False;User ID=Admin"
  23. End Sub
  24. End Module