Açıklama Yok
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

SQL_連線字串.vb 1.7KB

123456789101112131415161718192021222324252627
  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. ConString3 = "Data Source=" & 登入人IP & ";Initial Catalog=GCM-CPV-MSN;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. ConString1 = "Data Source=" & 登入人IP & ";Initial Catalog=GCM-CPV-PROJECT-SYS;Persist Security Info=True;User ID=b70340;Password=Lee0911274990;Max pool size = 200; Connection Timeout=0"
  15. End Sub
  16. Friend Sub SQL_連線字串_圖片資料庫()
  17. ConString2 = "Data Source=" & 登入人IP & ";Initial Catalog=" & 圖片庫 & ";Persist Security Info=True;User ID=b70340;Password=Lee0911274990;Max pool size = 200;Connection Timeout=0"
  18. End Sub
  19. Friend Sub SQL_連線字串_本機()
  20. Dim Str As String = Application.StartupPath
  21. 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"
  22. End Sub
  23. End Module