Click here to Skip to main content
15,906,816 members
Home / Discussions / Database
   

Database

 
Questionun-cooperative DataSets & TableAdapters Pin
ghazanfarKhan29-May-08 8:23
ghazanfarKhan29-May-08 8:23 
QuestionLotus Notes to SQL Replication Pin
madhuGM29-May-08 5:09
madhuGM29-May-08 5:09 
QuestionUsing select or set with exec Pin
ChrisFarrugia29-May-08 4:23
ChrisFarrugia29-May-08 4:23 
AnswerRe: Using select or set with exec Pin
Alsvha29-May-08 6:08
Alsvha29-May-08 6:08 
AnswerRe: Using select or set with exec Pin
SomeGuyThatIsMe29-May-08 7:59
SomeGuyThatIsMe29-May-08 7:59 
QuestionPrevent queries from SQL Injection attack in SQL Server 2005 Pin
salon29-May-08 2:22
salon29-May-08 2:22 
AnswerRe: Prevent queries from SQL Injection attack in SQL Server 2005 Pin
SomeGuyThatIsMe29-May-08 2:28
SomeGuyThatIsMe29-May-08 2:28 
GeneralRe: Prevent queries from SQL Injection attack in SQL Server 2005 Pin
salon29-May-08 3:32
salon29-May-08 3:32 
I have 2 queries,
say one for selecting records from a table based on some criteria say product and availability like this:

Select * from Stock where product = 'cooler' and availability = 'Available'

and another when the product is not available change the availability with update statement in my query like this:

UPDATE Stock SET availability = 'not available' WHERE StockId ='1' and product = 'cooler'

Now I want to prevent these queries from SQL injection attacks,
From the following links I came to know that if I use parameter collection in ASP.NET 2.0 then it is SQL Injection safe:
http://davidhayden.com/blog/dave/archive/2004/03/06/172.aspx[^]
http://forums.asp.net/p/1232362/2227463.aspx[^]

but do we have some other methods to prevent my above queries????
GeneralRe: Prevent queries from SQL Injection attack in SQL Server 2005 Pin
SomeGuyThatIsMe29-May-08 4:02
SomeGuyThatIsMe29-May-08 4:02 
GeneralRe: Prevent queries from SQL Injection attack in SQL Server 2005 Pin
Alsvha29-May-08 6:11
Alsvha29-May-08 6:11 
GeneralRe: Prevent queries from SQL Injection attack in SQL Server 2005 Pin
SomeGuyThatIsMe29-May-08 7:52
SomeGuyThatIsMe29-May-08 7:52 
GeneralRe: Prevent queries from SQL Injection attack in SQL Server 2005 Pin
Alsvha29-May-08 8:29
Alsvha29-May-08 8:29 
AnswerRe: Prevent queries from SQL Injection attack in SQL Server 2005 Pin
Alsvha29-May-08 6:15
Alsvha29-May-08 6:15 
GeneralRe: Prevent queries from SQL Injection attack in SQL Server 2005 Pin
salon29-May-08 22:41
salon29-May-08 22:41 
AnswerRe: Prevent queries from SQL Injection attack in SQL Server 2005 Pin
Peter Josefsson Sweden30-May-08 1:17
Peter Josefsson Sweden30-May-08 1:17 
QuestionTRIGGER problem!!!!!! Help me! [modified] Pin
Karan_TN29-May-08 2:16
Karan_TN29-May-08 2:16 
AnswerRe: TRIGGER problem!!!!!! Help me! Pin
Peter Josefsson Sweden30-May-08 1:31
Peter Josefsson Sweden30-May-08 1:31 
GeneralRe: TRIGGER problem!!!!!! Help me! Pin
Karan_TN30-May-08 21:16
Karan_TN30-May-08 21:16 
GeneralRe: TRIGGER problem!!!!!! Help me! Pin
Peter Josefsson Sweden2-Jun-08 2:11
Peter Josefsson Sweden2-Jun-08 2:11 
GeneralRe: TRIGGER problem!!!!!! Help me! Pin
Karan_TN6-Jun-08 19:13
Karan_TN6-Jun-08 19:13 
QuestionBuilt in stored procedures Pin
dan!sh 28-May-08 23:53
professional dan!sh 28-May-08 23:53 
AnswerRe: Built in stored procedures Pin
Mark J. Miller29-May-08 3:32
Mark J. Miller29-May-08 3:32 
QuestionCopy data from one table to another problem Pin
soniasan28-May-08 22:42
soniasan28-May-08 22:42 
AnswerRe: Copy data from one table to another problem Pin
ChandraRam28-May-08 23:13
ChandraRam28-May-08 23:13 
GeneralRe: Copy data from one table to another problem Pin
Ashfield29-May-08 1:46
Ashfield29-May-08 1:46 

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.