Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - MySQL + Calender Control without using DNS
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

MySQL + Calender Control without using DNS

 Post Reply Post Reply
Author
Message
cybeh View Drop Down
Groupie
Groupie
Avatar

Joined: 27 December 2005
Location: Malaysia
Status: Offline
Points: 76
Post Options Post Options   Thanks (0) Thanks(0)   Quote cybeh Quote  Post ReplyReply Direct Link To This Post Topic: MySQL + Calender Control without using DNS
    Posted: 02 April 2007 at 9:26pm
Hi all,

I am using tring to use Codejock calender control with mySQL database in VB (for the MultiSchedule).
Due to some special problem, we do not want to crease DNS or ODBC @ the client server.

We were using this connection string
"driver={mysql odbc 3.51 driver};server=localhost;database=cjcalendar;uid=root;pwd=demopass;option=165932"

in our database connection. Can anyone give me a simple sample on that ?
I really try hard to get the things done by editing the sample code.


    If eDataProviderType = cjCalendarData_MySQL Then
        strConnectionString = "driver={mysql odbc 3.51 driver};server=localhost;database=cjcalendar;uid=root;pwd=demopass;option=165932"
       
        Set m_pCustomDataHandler = New providerMySQL
        m_pCustomDataHandler.OpenDB strConnectionString
       
        m_pCustomDataHandler.SetCalendar CalendarControl
    End If
               
   
    CalendarControl.SetDataProvider strConnectionString
   
    'strConnectionString
       
    If eDataProviderType = cjCalendarData_SQLServer Or eDataProviderType = cjCalendarData_MySQL Then
        CalendarControl.DataProvider.CacheMode = xtpCalendarDPCacheModeOnRepeat
    End If
   
    If Not CalendarControl.DataProvider.Open Then
        CalendarControl.DataProvider.Create
    End If
   
    m_eActiveDataProvider = eDataProviderType
       
    CalendarControl.Populate
    wndDatePicker.RedrawControl



This return no error, but it will not load from the database too. Please advice. Thanks !!!
Back to Top
cybeh View Drop Down
Groupie
Groupie
Avatar

Joined: 27 December 2005
Location: Malaysia
Status: Offline
Points: 76
Post Options Post Options   Thanks (0) Thanks(0)   Quote cybeh Quote  Post ReplyReply Direct Link To This Post Posted: 03 April 2007 at 5:00am
Got the problem solved. Thanks !!
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.