Adding data tables to the CS database

This post has 6 Replies | 3 Followers

Not Ranked
Posts 26
Points 400
chrisrsimons Posted: Thu, Mar 29 2007 9:41 PM

Hi all,

Is it detrimental in any way to add custom data tables to the default CS database?  For example, I'd like to add some resource/lookup data for a new flavor of "CreateEditPost".  In order to do so, I would be adding a new table to the database (or a separate database, if that were more advisable) and populate a variety of fields (perhaps even a data grid) using the other table prior to submitting the form?  I suspect it makes little difference to how CS functions...however, I want to enable the *searching* of this new table through the existing "Search" functionality of CS.

So, when the user were to "Search" - it would pull up results not only from Forums, Blogs, Galleries, etc. but also the custom table.  If this is to work, which properties file do I need to edit to specify the parameters and attributes of the new custom table?  Is this type of custom development possible?

 

Thanks very much!
 

Top 150 Contributor
Male
Posts 191
Points 2,920

chrisrsimons:
... Is this type of custom development possible?

Heh--*all* types of custom development are possible, given enough time and resources.  But seriously, I'm looking into your question.  Here are a couple of initial thoughts:

  1. There shouldn't be any problem adding tables to the CS database.  Speaking from a SQL Server DBA's perspective, small or moderately sized additional tables shouldn't affect your installation at all.  In fact, depending on how you plan to hook into the search functionality, you want the tables in the CS database.  I would clearly name them as custom tables, but that's all.
  2. I can't give a definitive answer yet, but it looks like you can customize the Search Barrel by adding custom subclasses of BarrelItem and SearchJob.  Then, you can edit the communityserver.config file to include your custom search item and population job.

I hope that helps.  Let me know how your development goes!

John Bledsoe

Sr. Software Specialist - ATGi

  • Filed under:
  • | Post Points: 20
Not Ranked
Posts 26
Points 400

Hi John,

This will help enormously - thank you.  As you probably know, it can sometimes be difficult to find the class or code file that contributes to any given CS capability.  Now I know to start my look into BarrelItem and SearchJob.   

I was initially very weary about custom development with CS; the multitude of files, the dependence on resource files, and the custom controls, really made my initial efforts daunting.  Now, finally, it is all coming together.  Also, I notice with CS 2007 Beta 2, finding what you need seems to be a bit easier.

Thanks for your response. 

  • | Post Points: 20
Top 500 Contributor
Posts 72
Points 1,095
sempf replied on Sun, Apr 1 2007 2:49 PM

Hi, Chris.

Just my $0.02: I am implementing an LMS with Community Server, and I added all of the LMS tables right into the CS database.  Having no problems at all.  I prefaced all of my tables with 'lms_' (and the sprocs and views too) and it is rolling right along.

S

 

  • | Post Points: 20
Not Ranked
Posts 26
Points 400

sempf,

 I am doing the same and having no issues thus far. Wink

 

Thanks.
 

  • | Post Points: 20
Top 50 Contributor
Posts 319
Points 4,865
shakes replied on Sun, Jun 24 2007 11:36 PM

would any of you be so kind as to write about how you went about creating those tables and calling upon them within cs 

peace shakes

Carolina Pulse

  • | Post Points: 20
Top 500 Contributor
Posts 72
Points 1,095
sempf replied on Mon, Jun 25 2007 8:34 AM

Speaking for myself, I just added them using Management Studio, and am accessing them through ADO.NET.  I am not using the CS infrastructure to interact with them.

S

 

  • | Post Points: 5
Page 1 of 1 (7 items) | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems

Copyright© 2008 Telligent Systems Inc. All rights reserved
CommunityServer.com  •  Telligent.com