Advertisement
Guest User

Untitled

a guest
Jul 9th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ASP 1.21 KB | None | 0 0
  1. <%
  2. ' mySQL veritabaný
  3. If strVtTuru = "mySQL" Then
  4.  
  5.     strDBTrue = 1
  6.     strDBFalse = 0
  7.     strDBtarihLimit = "'"
  8.  
  9.     strCon = "Driver={MySQL ODBC 3.51 Driver};Port=3306;Option=3;Server=" & strSQLServerName & ";User ID=" & strSQLDBUserName & ";Password=" & strSQLDBPassword & ";Database=" & strSQLDBName & ";stmt=SET NAMES 'latin5';"
  10.  
  11.  
  12. ' msSQL veritabaný
  13. Elseif strVtTuru = "msSQL" Then
  14.  
  15.     strDBTrue = 1
  16.     strDBFalse = 0
  17.     strDBtarihLimit = "'"
  18.  
  19.     strCon = "Provider=SQLOLEDB;Server=" & strSQLServerName & ";Persist Security Info=False;User ID=" & strSQLDBUserName & ";Password=" & strSQLDBPassword & ";Database=" & strSQLDBName & ";"
  20.  
  21.  
  22. ' Access veritabaný
  23. Else
  24.  
  25.     strDBTrue = "True"
  26.     strDBFalse = "False"
  27.     strDBtarihLimit = "#"
  28.  
  29.     strCon = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source="& Server.MapPath(strVeriTabaniYolu) &";"
  30. End If
  31.  
  32.  
  33. '// Nesneler oluþturuluyor
  34. Set adoCon = Server.CreateObject("ADODB.Connection")
  35. Set kdGenel = Server.CreateObject("Adodb.Recordset")
  36. Set kdYardimci = Server.CreateObject("Adodb.Recordset")
  37. Set kdMenu = Server.CreateObject("Adodb.Recordset")
  38. Set kdYorum = Server.CreateObject("Adodb.Recordset")
  39. Set kdFonksiyon = Server.CreateObject("Adodb.Recordset")
  40.  
  41.  
  42. adoCon.Open strCon
  43. %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement