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

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesDatabase accessDatabase access
Previous
 
Next
New Post
11/26/2010 5:34 AM
 
Lars

SQL code should be at the DB level - this is what i am talking about. Not about C# or VB code. And situation with our client is good to show this.

Sergey
 
New Post
11/26/2010 5:37 AM
 
Lars

BTW: Microsoft SQL Server gives a lot of possibilities: Views, Stored Procedures, Functions. Much more then other (like Postgre or MySQL). So it has no sense to put SQL code inside of C# or VB code at all. Only reason is fast development, but this is bad reason.

Sergey
 
New Post
11/26/2010 5:40 AM
 
Sergey Velichko wrote:
Lars

SQL code should be at the DB level - this is what i am talking about. Not about C# or VB code. And situation with our client is good to show this.

Sergey

 I think your example is a horrible example. A customer with some piece of software with no contact with the vendor/developer and no source code? What's up with that? I see big red warning lights flashing in front of me. Don't plan for this kind of situation. Its not good practice.

EOD

 
New Post
11/26/2010 6:01 AM
 
Let me jump in here to provide some advice for Aristotelis: there are best practices for safety and performance reasons, you never know in you business logic, where input parameters may come from, even if not atm, in a future extension it might be passed from UI without proper check and you will be vulnerable to SQL injection. The proper alternatives are either put the SQL code into stored procedures or use Linq2SQL, where security is provided on compile and run time.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
11/26/2010 6:06 AM
 
Lars

A lot of customers do not know about source code at all, until something happens. Some bought modules at Snowcovered. It is not fantastic - it is life and we had already 5 or 6 customers like this: no source code, no contacts to developer. EOD

Aristotelis

Please look to the {databaseOwner}{objectQualifier} - it should be easy for you to implement this.

Sergey
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesDatabase accessDatabase access


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