Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Turkey  Language Problem 9.50 Solution
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Turkey Language Problem 9.50 Solution

 Post Reply Post Reply
Author
1980best View Drop Down
Newbie
Newbie


Joined: 21 July 2008
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote 1980best Quote  Post ReplyReply Direct Link To This Post Topic: Turkey Language Problem 9.50 Solution
    Posted: 21 July 2008 at 2:43pm
9.50 versiyonunda dil sorunu yaşıyorsanız
beyaz_şeytan arkadaşımızın dediği bibi siyahla gösterilmiş kodu yerine yapıştırın iş çözülür.
database_connection.asp  dosyasında
 

'******************************************
'***   Open Database Connection      ****
'******************************************

'This sub procedure opens a connection to the database and creates a recordset object and sets database defaults
Public Sub openDatabase(strCon)

 'Setup database driver and defaults
 '**********************************
 
 'SQL Server Database Defaults
 If strDatabaseType = "SQLServer" Then
  
  'Please note this application has been optimised for the SQL OLE DB Driver using another driver
  'or system DSN to connect to the SQL Server database will course errors in the application and
  'drastically reduce the performance!
 
 
  'The SQLOLEDB driver offers the highest performance at this time for connecting to SQL Server databases from within ASP.
  
  'MS SQL Server OLE Driver (If you change this string make sure you also change it in the msSQL_server_setup.asp file when creating the database)
  strCon = "Provider=SQLOLEDB;Connection Timeout=90;" & strCon
  
  'The GetDate() function is used in SQL Server to get dates
  strDatabaseDateFunction = "GetDate()"
  
  'Set true and false for db
  strDBFalse = 0
  strDBTrue = 1
  
  'Set the lock variavbles for the db
  strDBNoLock = " WITH (NOLOCK) "
  strRowLock = " WITH (ROWLOCK) "
  
  'Set the Limit opertaor for SQL Server
  strDBTop1 = " TOP 1"
  
 
 'MySQL Server Database Defaults 
 ElseIf strDatabaseType = "mySQL" Then
  
  'This application requires the myODBC 3.51 driver
 
  'myODBC Driver 3.51
  strCon = "Driver={MySQL ODBC 3.51 Driver};Port=3306;Option=3;" & strCon
  
  'Calculate the date web server time incase the database server is out, use international date
  strDatabaseDateFunction = "'" & internationalDateTime(Now())& "'"
  
  'Set true and false for db (true value is -1)
  strDBFalse = 0
  strDBTrue = -1
  
  
  'Set the limit operator
  strDBLimit1 = " LIMIT 1"
  
 
 'MS Access Database Defaults 
 ElseIf strDatabaseType = "Access" Then
  
  'Database driver (Microsoft JET OLE DB driver version 4)
  strCon = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & strCon
  
  'The now() function is used in Access for dates
  strDatabaseDateFunction = "Now()"
  
  'Set true and false for db
  strDBFalse = "false"
  strDBTrue = "true"
   
  'Set the limit operator for Access
  strDBTop1 = " TOP 1"
  
 End If
 
 
 
 'Open Datbase Connection
 '***********************

 'Create a db connection odject
 Set adoCon = CreateObject("ADODB.Connection")


Response.CharSet = "iso-8859-9"
Session.CODEPAGE = "1254"
Session.LCID = 1055

 
 'Set error trapping
 On Error Resume Next
 
 'Set the connection string to the database
 adoCon.connectionstring = strCon
 
 'Set an active connection to the Connection object
 adoCon.Open
 
 'If an error has occurred write an error to the page
 If Err.Number <> 0 Then Call errorMsg("An error has occurred while connecting to the database.", "db_connection", "common.asp")
     
 'Disable error trapping
 On Error goto 0
 
 
 'Intialise the main ADO recordset object
 Set rsCommon = CreateObject("ADODB.Recordset")

End Sub

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.