Click here to Skip to main content
15,908,834 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to get holding key down to repeat an action Pin
Nader Elshehabi27-Oct-06 21:31
Nader Elshehabi27-Oct-06 21:31 
AnswerFound the answer Pin
bradsnobar27-Oct-06 21:20
bradsnobar27-Oct-06 21:20 
GeneralRe: Found the answer Pin
DiegoValdevino28-Oct-06 3:18
DiegoValdevino28-Oct-06 3:18 
Questionstore procedure vs hard coding sql statements Pin
keroed_edmond27-Oct-06 12:07
keroed_edmond27-Oct-06 12:07 
AnswerRe: store procedure vs hard coding sql statements Pin
bradsnobar27-Oct-06 14:20
bradsnobar27-Oct-06 14:20 
AnswerRe: store procedure vs hard coding sql statements Pin
Rob Graham27-Oct-06 14:29
Rob Graham27-Oct-06 14:29 
AnswerRe: store procedure vs hard coding sql statements Pin
Tad McClellan27-Oct-06 16:31
professionalTad McClellan27-Oct-06 16:31 
AnswerRe: store procedure vs hard coding sql statements Pin
Pete O'Hanlon30-Oct-06 2:02
mvePete O'Hanlon30-Oct-06 2:02 
OK - a lot of people here have stated that stored procs are faster than inline SQL, and indeed that was the case for quite a while. This is not always the case now.

One of the common misconceptions with Sql Server (version 7 onwards) is that it compiles stored procedures. Well - WRONG!!! It doesn't. What it does do, is cache execution plans for all queries that run through it (even ad-hoc ones). The algorithms that are behind this are very sophisticated and have gone through a lot of revisions/improvements by the Sql Server team.

Some SPs will be quicker than inline SQL, and some inline SQL will be quicker than SPs. Evaluate what works for you. Hint - dynamic SQL is generally faster inline than SP because you only send the result of the dynamic query generation to Sql Server, rather than having Sql Server try to dynamically populate parameters, etc.

Security.

Well, it is true that people can get at your stored procedures. But, this only applies to the level of security that you have applied to your DB. Look at using roles and authentication to lock down the database.

You can also lock down who can see your source code by implementing a robust security model for your organisation. Use a decent version control system to control who has access to the code. Limit the access on the directories where people check out/in the code to, so that only authorised users can gain access.

Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world."
Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that."

Deja View - the feeling that you've seen this post before.

QuestionIs it possible to write app. for symbian by VS2005 and C# or VB.NET? Pin
Code4Null27-Oct-06 10:49
Code4Null27-Oct-06 10:49 
AnswerRe: Is it possible to write app. for symbian by VS2005 and C# or VB.NET? Pin
led mike27-Oct-06 11:01
led mike27-Oct-06 11:01 
GeneralRe: Is it possible to write app. for symbian by VS2005 and C# or VB.NET? Pin
Code4Null27-Oct-06 11:24
Code4Null27-Oct-06 11:24 
GeneralRe: Is it possible to write app. for symbian by VS2005 and C# or VB.NET? Pin
Rob Graham27-Oct-06 11:30
Rob Graham27-Oct-06 11:30 
GeneralRe: Is it possible to write app. for symbian by VS2005 and C# or VB.NET? Pin
led mike27-Oct-06 11:35
led mike27-Oct-06 11:35 
AnswerRe: Is it possible to write app. for symbian by VS2005 and C# or VB.NET? Pin
Nader Elshehabi27-Oct-06 20:27
Nader Elshehabi27-Oct-06 20:27 
QuestionSql Command with C# Pin
Areff27-Oct-06 9:56
Areff27-Oct-06 9:56 
AnswerRe: Sql Command with C# Pin
led mike27-Oct-06 10:08
led mike27-Oct-06 10:08 
AnswerRe: Sql Command with C# Pin
BoneSoft27-Oct-06 10:10
BoneSoft27-Oct-06 10:10 
AnswerRe: Sql Command with C# Pin
Rob Graham27-Oct-06 10:36
Rob Graham27-Oct-06 10:36 
GeneralRe: Sql Command with C# Pin
BoneSoft27-Oct-06 10:44
BoneSoft27-Oct-06 10:44 
QuestionRe: Sql Command with C# Pin
BoneSoft27-Oct-06 10:50
BoneSoft27-Oct-06 10:50 
AnswerRe: Sql Command with C# Pin
Rob Graham27-Oct-06 11:09
Rob Graham27-Oct-06 11:09 
QuestionHow can I avoid the fliker of a form? Pin
anuo0627-Oct-06 9:19
anuo0627-Oct-06 9:19 
AnswerRe: How can I avoid the fliker of a form? Pin
Luc Pattyn27-Oct-06 14:45
sitebuilderLuc Pattyn27-Oct-06 14:45 
GeneralRe: How can I avoid the fliker of a form? Pin
anuo0627-Oct-06 18:03
anuo0627-Oct-06 18:03 
AnswerRe: How can I avoid the fliker of a form? Pin
DiegoValdevino28-Oct-06 2:40
DiegoValdevino28-Oct-06 2:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.