Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

$4.95 Windows Hosting at Webhost4life.com
  Ads  
OnyakTech
 


  Sponsors  

Meet Our Sponsors

The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Writing for SQL Server 2005 only?
Previous Previous
 
Next Next
New Post 3/2/2007 10:17 AM
User is offline William Severance
842 posts
www.wesnetdesigns.com
7th Ranked






Writing for SQL Server 2005 only? 

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
 
New Post 3/2/2007 3:13 PM
User is offline Sebastian Leupold
15159 posts
www.deutschnetnuke.de
1st Ranked












Re: Writing for SQL Server 2005 only? 
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.
Sebastian Leupold

DeutschNetNuke dnnWerk - The DotNetNuke Experts German DotNetNuke User-Group

DotNetNuke Project UserDefinedTable
DotNetNuke Project Release Tracker
 
New Post 3/2/2007 5:55 PM
User is offline Michael Washington
2842 posts
ADefWebserver.com
5th Ranked










Re: Writing for SQL Server 2005 only? 

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
* ADefWebserver.com
* DNN Module Developer's Guide
* IWEB - DNN Web Services
* Silverlight and DotNetNuke
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Writing for SQL Server 2005 only?
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Multipartner Virtual Data Rooms
The Virtual Data Rooms (VDR) provided by an expert advisor, far from any ordinary software company!, supporting the sellers and their consultants. Multipartner builds and services higly professional Virtual Data Rooms (VDR) specifically tailored to M&A, Real Estate and NPL deals.
www.multipartner.com
DNN SEO
Seablick Consulting specializes in DNN search engine optimization (SEO), DNN consulting, as well as support & training.
seablick.com
Intura Vision / Intura Enterprise
Point-of-Sale and business management applications targeted towards quick service, fast casual and delivery-based restaurant concepts.
www.intura.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP