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 619685
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T18:40:55+00:00 2026-05-13T18:40:55+00:00

We can precompile our (ASP.NET) websites and can publish only the IL code, so

  • 0

We can precompile our (ASP.NET) websites and can publish only the IL code, so that the source code is not available to the customer.

But how do we do it for stored procedures written in SQL Server. I mean, when we give the customer the DB, he could see all my stored procedures and can modify the same… How could I protect it.

Thanks

Raja

  • 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. Editorial Team
    Editorial Team
    2026-05-13T18:40:56+00:00Added an answer on May 13, 2026 at 6:40 pm

    An old problem. Here are a few answers I’ve picked up here and there:

    • Encrypt the stored procedures. As has
      already been pointed out twice, this
      doesn’t really work, as 5 minutes of
      Googling will find several hacks.

    • Write the stored procedures as CLR
      procedures. Harder to hack than
      “regular” stored procedures, probably
      a lot more effort to produce and
      support.

    • Submit all queries dynamically from
      your compiled IL code. I understand
      it can be done reasonably secure from
      SQL injection attack, but make darn
      sure before you release. (Maybe use Linq to do this?)

    • Convert all database object names
      (tables, columns, procedures) to
      guids or random gibberish. They could
      read it, but that wouldn’t help much.

    • I am not totally conversant on encryption within SQL 2005 and up. I really don’t think you can use it on code-based objects (procedures, functions, etc.), but maybe you can?

    But by and large, once you give a copy of your database to someone with SysAdmin rights, they can do pretty much anything they want with it.

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

Sidebar

Related Questions

How do you precompile WCF code so that the WCF code can't be seen
I know also that ASP.NET when published can be precompiled I know that .NET
In a normal ASP.NET Website there is a Web Deployment Project that we can
I'm attempting to use the precompile.exe tool to generate a serialization assembly that can
What are the ways that you can speed up the Rails Asset Pipeline precompile
I've heard recently that you can precompile Web Application projects. My question is how?
I'm experimenting with precompile regexes in an .fsx script. But I can't figure out
where can I find precompiled v8js dll for windows? I search but i find
Can I user mono's AOT feature to natively pre-compile .NET DLLs (and or EXEs)
currently I have a custom VirtualPathProvider in a Asp.net MVC web application. This VirtualPathProvider

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.