<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Help with Connection to DB PLEASE!</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : Help with Connection to DB PLEASE!]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 28 Apr 2026 11:30:33 +0000</pubDate>
  <lastBuildDate>Wed, 25 Nov 2009 09:11:12 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=15582</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Help with Connection to DB PLEASE! : You can still use the custom data...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15582&amp;PID=55142&amp;title=help-with-connection-to-db-please#55142</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 15582<br /><strong>Posted:</strong> 25 November 2009 at 9:11am<br /><br />You can still use the custom data provider.&nbsp; The calendar doesn't have to connect to the database.&nbsp; In this case you can just tell it to use the custom provider.<br><br>Scripts for the tables the Calendar uses are here:<br>...\Calendar\VB\CalendarSample\SQLscripts<br><br>It doesn't matter how\where you store the data really, as long as you provide the calendar what it wants when it needs it.<br>]]>
   </description>
   <pubDate>Wed, 25 Nov 2009 09:11:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15582&amp;PID=55142&amp;title=help-with-connection-to-db-please#55142</guid>
  </item> 
  <item>
   <title><![CDATA[Help with Connection to DB PLEASE! : I download the demo and I look...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15582&amp;PID=55095&amp;title=help-with-connection-to-db-please#55095</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5664">arrozcon</a><br /><strong>Subject:</strong> 15582<br /><strong>Posted:</strong> 23 November 2009 at 10:42am<br /><br /><P>I download the demo and I look at the sample. I like the software and I'm willing to buy it but I still dont undestand how to use your code. Your code has a statement to open the database by the use of connectionstrings. I cannt use string to connect to my database because I already have a conection. I sue SQL statements to creade, delete and edit records only.</P><DIV>What I need is to use my data and put it on your calendar, as simple as that. I have my own table. My own record ids, etc. How I can do that?</DIV><DIV>&nbsp;</DIV><DIV>I'm willing to pay anyone that can do that for me.</DIV><DIV><BR>Thanks,</DIV><DIV>Jose</DIV>]]>
   </description>
   <pubDate>Mon, 23 Nov 2009 10:42:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15582&amp;PID=55095&amp;title=help-with-connection-to-db-please#55095</guid>
  </item> 
  <item>
   <title><![CDATA[Help with Connection to DB PLEASE! : Did you even look at the sample?...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15582&amp;PID=54780&amp;title=help-with-connection-to-db-please#54780</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 15582<br /><strong>Posted:</strong> 12 November 2009 at 8:49am<br /><br />Did you even look at the sample?&nbsp; If you opened the sample it would be hard to miss.]]>
   </description>
   <pubDate>Thu, 12 Nov 2009 08:49:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15582&amp;PID=54780&amp;title=help-with-connection-to-db-please#54780</guid>
  </item> 
  <item>
   <title><![CDATA[Help with Connection to DB PLEASE! :    SuperMario wrote:Sounds like...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15582&amp;PID=54761&amp;title=help-with-connection-to-db-please#54761</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5664">arrozcon</a><br /><strong>Subject:</strong> 15582<br /><strong>Posted:</strong> 11 November 2009 at 6:45pm<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by SuperMario" alt="Originally posted by SuperMario" style="vertical-align: text-bottom;" /> <strong>SuperMario wrote:</strong><br /><br />Sounds like you need the custom data provider.&nbsp; See the VB6 sample and look at the SQL Server code to see how.</td></tr></table> <div>&nbsp;</div><div>WHERE?</div>]]>
   </description>
   <pubDate>Wed, 11 Nov 2009 18:45:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15582&amp;PID=54761&amp;title=help-with-connection-to-db-please#54761</guid>
  </item> 
  <item>
   <title><![CDATA[Help with Connection to DB PLEASE! :  Sounds like you need the custom...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15582&amp;PID=54744&amp;title=help-with-connection-to-db-please#54744</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 15582<br /><strong>Posted:</strong> 11 November 2009 at 10:30am<br /><br />Sounds like you need the custom data provider.&nbsp; See the VB6 sample and look at the SQL Server code to see how.]]>
   </description>
   <pubDate>Wed, 11 Nov 2009 10:30:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15582&amp;PID=54744&amp;title=help-with-connection-to-db-please#54744</guid>
  </item> 
  <item>
   <title><![CDATA[Help with Connection to DB PLEASE! : Hello,   I download the demo...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15582&amp;PID=54727&amp;title=help-with-connection-to-db-please#54727</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5664">arrozcon</a><br /><strong>Subject:</strong> 15582<br /><strong>Posted:</strong> 10 November 2009 at 10:57pm<br /><br />Hello, <DIV>&nbsp;</DIV><DIV>I download the demo to test the Calendar since I want to put that on my App. I have been working on my App for years so changing the way my database is setup is not an option because is alot of work!.</DIV><DIV>&nbsp;</DIV><DIV>I want to show my records on the Calendar using my own&nbsp;TableName (i.e. tblGOActivity) and my own database (ie. Databasenm&nbsp;= go.mdb). This&nbsp;the code I;m working on and I cannt do it because I really dont know! I attach the database connection also for reference.</DIV><DIV>&nbsp;</DIV><DIV><FONT size=5>Code I'm working on:</FONT>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;Dim cur_set As Recordset<BR>&nbsp;Dim sql_str As String<BR>&nbsp;<BR>&nbsp;sql_str = "SELECT * FROM tblGOActivity" 'This is the database I want my Events to&nbsp;be saved"<BR>&nbsp;If Not goDatabase.CreateSnapshot(cur_set, sql_str) Then<BR>&nbsp;Exit Sub<BR>&nbsp;End If<BR>&nbsp;<BR><BR>&nbsp;&nbsp;&nbsp; CalendarControl.SetDataProvider&nbsp;<strong>WHAT SHOUD I PUT&nbsp;BASE ON THE INFO I TOLD YOU ALREADY?</strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp; If Not CalendarControl.DataProvider.Open Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CalendarControl.DataProvider.Create<BR>&nbsp;&nbsp;&nbsp; End If<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; 'm_eActiveDataProvider = eDataProviderType<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; CalendarControl.Populate<BR>&nbsp;&nbsp;&nbsp; wndDatePicker.RedrawControl</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV><FONT size=5><U>This is a sample of the Database Connection Code:</U></FONT></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV><DIV><DIV style="MARGIN: 0in 0in 10pt"><strong>Function ConnectJet(ByVal db_name As String, ByVal user_id As String, _</strong></DIV><DIV style="MARGIN: 0in 0in 10pt"><strong>ByVal password As String, Optional ByVal ip_addr As String = "") As Boolean</strong></DIV><DIV style="MARGIN: 0in 0in 10pt"><strong></strong></DIV><DIV style="MARGIN: 0in 0in 10pt"><strong>&nbsp;&nbsp;&nbsp; On Error GoTo ConnectJet_EH</strong></DIV><DIV style="MARGIN: 0in 0in 10pt"><strong>&nbsp;&nbsp;&nbsp; Set wCurWS = DBEngine.CreateWorkspace("DefaultWS", "Admin", "", dbUseJet)</strong></DIV><DIV style="MARGIN: 0in 0in 10pt"><strong>&nbsp;&nbsp;&nbsp; </strong></DIV><DIV style="MARGIN: 0in 0in 10pt"><strong>&nbsp;&nbsp;&nbsp; If password = "" Then</strong></DIV><DIV style="MARGIN: 0in 0in 10pt"><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set dCurDB = wCurWS.OpenDatabase(db_name, False)</strong></DIV><DIV style="MARGIN: 0in 0in 10pt"><strong>&nbsp;&nbsp;&nbsp; Else</strong></DIV><DIV style="MARGIN: 0in 0in 10pt"><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set dCurDB = wCurWS.OpenDatabase(db_name, False, False, ";pwd=" &amp; password)</strong></DIV><DIV style="MARGIN: 0in 0in 10pt"><strong>&nbsp;&nbsp;&nbsp; End If</strong></DIV><DIV style="MARGIN: 0in 0in 10pt"><strong>&nbsp;&nbsp;&nbsp; </strong></DIV><DIV style="MARGIN: 0in 0in 10pt"><strong>&nbsp;&nbsp;&nbsp; Call goGeneral.MouseDefault</strong></DIV><DIV style="MARGIN: 0in 0in 10pt"><strong>&nbsp;</strong></DIV><DIV style="MARGIN: 0in 0in 10pt"><strong>&nbsp;&nbsp;&nbsp; sDatabase_nm = db_name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' Database file name with path.</strong></DIV><DIV style="MARGIN: 0in 0in 10pt"><strong>&nbsp;&nbsp;&nbsp; sPathToDatabase = goGeneral.GetPath(db_name)</strong></DIV><DIV style="MARGIN: 0in 0in 10pt"><strong>&nbsp;&nbsp;&nbsp; ConnectJet = True</strong></DIV><DIV style="MARGIN: 0in 0in 10pt"><strong>&nbsp;&nbsp;&nbsp; Exit Function</strong></DIV><DIV style="MARGIN: 0in 0in 10pt"><strong>&nbsp;</strong></DIV><DIV style="MARGIN: 0in 0in 10pt"><strong>ConnectJet_EH:</strong></DIV><DIV style="MARGIN: 0in 0in 10pt"><strong>&nbsp;&nbsp;&nbsp;&nbsp; db_name = UCase(db_name)</strong></DIV><DIV style="MARGIN: 0in 0in 10pt"><strong>&nbsp;&nbsp;&nbsp; goGeneral.DisplayBox db_name &amp; goMessage.IS_NOT_FOUND</strong></DIV><DIV style="MARGIN: 0in 0in 10pt"><strong>&nbsp;&nbsp;&nbsp; sDatabase_nm = ""</strong></DIV><DIV style="MARGIN: 0in 0in 10pt"><strong>&nbsp;&nbsp;&nbsp; ConnectJet = False</strong></DIV><DIV style="MARGIN: 0in 0in 10pt"><strong>&nbsp;&nbsp;&nbsp; Exit Function</strong></DIV><DIV style="MARGIN: 0in 0in 10pt"><strong>&nbsp;End Function</strong></DIV></DIV></DIV>]]>
   </description>
   <pubDate>Tue, 10 Nov 2009 22:57:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15582&amp;PID=54727&amp;title=help-with-connection-to-db-please#54727</guid>
  </item> 
 </channel>
</rss>