Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 73543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T20:13:05+00:00 2026-05-10T20:13:05+00:00

I am about to embark on a rewrite of a VB6 application in .NET

  • 0

I am about to embark on a rewrite of a VB6 application in .NET 3.5sp1. The VB6 app is pretty well written and the data layer is completely based on stored procedures. I’d like to go with something automated like Linq2SQL/Entity Framework/NHibernate/SubSonic. Admittedly, I haven’t used any of these tools in anything other than throwaway projects.

The potential problem I fear I might have with all these choices is speed. For instance, right now to retrieve a single row (or the entire list), I use the following sproc:

ALTER PROCEDURE [dbo].[lst_Customers]  @intID     INT = NULL ,@chvName   VARCHAR(100) = NULL AS  SELECT   Customer_id, Name FROM dbo.Customer WHERE (@intID IS NULL OR @intID = Customer_id)  AND (@chvName IS NULL OR Name like ('%' + @chvName + '%')) ORDER BY name 

To retrieve a single row in Linq2SQL/Entity Framework/NHibernate/SubSonic, would these solutions have to bring the entire list down to the client and find the row that I need?

So, what’s the consensus for the data access strategy for an application with a large data domain?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T20:13:06+00:00Added an answer on May 10, 2026 at 8:13 pm

    I’m going to play devil’s advocate and recommend you at least consider sticking with the stored procedures. These represent a chunk of code that you do not have to re-write and debug. This article from our Very Own [tm] Joel Spolsky gives a coherent argument for avoiding complete re-writes.

    Given a ‘greenfield’ project you can use what you want, and an O/R mapper might well be a good choice. However, you’ve already stated that the VB6 app is well written. If the sprocs are well written, then you get some of your app for free and it comes already debugged, plus you get to recycle the database schema and avoid most of the pain from data migration.

    Fowler’s Patterns of Enterprise Application Architecture should give you some good pointers for designing a data access layer that will play nicely with the stored procedures without causing maintenance issues.

    This is done quite commonly on Oracle/Java apps. Many legacy Oracle apps have large bodies of stored procedure code in PL/SQL – this was a standard architecture back in the client-server days of Oracle Forms. It is common practice to write a wrapper for the sprocs in Java and build the user interface on top of the wrapper.

    One of the other posters mentioned that Subsonic can generate wrappers for the sprocs.

    Once upon a time I had occasion to do a data dictionary hack that generated a proof-of-concept Java/JDBC wrapper for PL/SQL sprocs – IIRC it only took a day or so. Given that it’s not that hard to do, I’d be surprised to find that there isn’t quite a bit of choice in things you can get off the shelf to do this. In a pinch, writing your own isn’t all that hard either.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 59k
  • Answers 59k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer ended up just cutting/pasting the text into MS Word and… May 11, 2026 at 8:59 am
  • added an answer I tend to go with calling the properties cause once… May 11, 2026 at 8:59 am
  • added an answer the following code casts magic <meta name='viewport' content='width=device-width, minimum-scale=1.0, maximum-scale=1.0'/> May 11, 2026 at 8:59 am

Related Questions

I am about to embark on a rewrite of a VB6 application in .NET
I am about to build a piece of a project that will need to
I am about to reenter the MFC world after years away for a new
I am about to move to SVN as my RCS of choice (after many
I am about to write an audio file converter for my side job at
I am about to start a new project and would like to document its
I am about to start a project for a potentially heavily accessed ASPNET MVC
I am about to start on a journey writing a windows forms application that
I am about to set up a subversion server to be accessed via svn+ssh.
I am about to add a section to an ASP.NET app (VB.NET codebehind) that

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.