Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Writing for SQL Server 2005 only?Writing for SQL Server 2005 only?
Previous
 
Next
New Post
3/2/2007 1:17 PM
 

To implement a "what's new" module view for a series of modules I'm writing for a client, I have several Sql Server 2005 sprocs that use "SELECT TOP (@MaxRows) . . . " where @MaxRows is passed as in in parameter. Although the module will be deployed for this client in a site that uses SQL Server 2005, I will be making a public release of the module later with a good chance that it might be used on a site that makes use of SQL Server 2000 which does not support use of a variable in this case.

I can either 1) indicate to potential users that he module requires SQL Server 2005 rather than 2000 or 2) rewrite the sprocs to use either dynamic SQL or the ROWCOUNT property or 3) check the value of @@Version in the sproc to then branch to the appropriate code for either SQL Server 2005 or 2000 versions.  I hate to do #2 and not use the new capability of SQL Server 2005 - primarily for performance reasons as the "what's new" module will appear on the home page of the client's site. Most likely, I'll take the extra time to go with #3 for the greatest compatiblity.

What are other developers doing to handle differences between SQL Server 2005 and 2000?


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
3/2/2007 6:13 PM
 
it is usually preferable to have a single code base for multiple environments due to maintanance and development efforts needed. However, if there are options to gain large performance issues using specific features, it is worth to create a preselector and version specific code (as long as the preselection does not take as much time as the performance gained). For example in UDT, I thought about using nVarchar(Max) in UDT, but stayed with nText and "text in row" due to less problems whem moving the database from one server to another.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
3/2/2007 8:55 PM
 

How many people do you think will need the SQL 2000 version? I would simply have another version that has SQL 2000 script and see how many people requested it. I think it would be a small percentage. Not enough to lose the performance gains.

Have you used the Ranking Functions yet? Once you have used those you just can't believed you were ever able to live without them :)



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Writing for SQL Server 2005 only?Writing for SQL Server 2005 only?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out