![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I'm a web programmer, but I never understood sql injecting. |
|
Hii everyone, I'm a web programmer, but I never understood sql injecting. All I found was that you can write "a' or 'a'='a" in the password field to try to connect without knowing the password. I heard that there are many other ways to do sql injecting, and I never found how. I know that you can even manage to get data from sql tables using sql injecting. How can it be? How can someone do it? Please help, Ofir. |
#3
| |||
| |||
|
|
I'm a web programmer, but I never understood sql injecting. Your best defense against SQL injection in SQL Server is to execute only parameterized SQL statements and stored procedures. Never build SQL strings by concatenating values. Code is vulnerable to injection if SQL statements are built and executed like: sqlStatement = "SELECT MyData FROM dbo.MyTable WHERE MyColumn = '" + myValue + "'"; A malicious user can change the intent of this SQL statement by specifying a value like: ';DROP TABLE dbo.MyTable;-- or ' UNION ALL SELECT Password FROM dbo.Users;-- Google "SQL injection" for more information. |
#4
| |||
| |||
|
|
I'm a web programmer, but I never understood sql injecting. |
#5
| |||
| |||
|
|
I agree with you, but isn't this a strike against LINQ? |

#6
| |||
| |||
|
|
On Nov 16, 7:41 am, Tom van Stiphout <no.spam.tom7... (AT) cox (DOT) net> wrote: I agree with you, but isn't this a strike against LINQ? That is funny, an objection to LINQ based on sql injection! ![]() LINQ is to a database as asking a child to build a cyclotron. What you get is some well intentioned but mangled piece of work that bears little relation to reality. What a gigantic waste of resources. Had they only brought in people who new even the basic ideas of a 'real relational database' MS might well be on the way to breaking new ground in an area dormat forever. Now they simply have something they can say 'hides' sql from the net developer. It seems what was important was to design something, anything, so long as it would 'hide' sql. If anyone can explain what ideas/principles were being followed I'd love to hear from them. MS has a net group and a database group. Obviously they need another. www.beyondsql.blogspot.com |
#7
| |||
| |||
|
|
I agree with you, but isn't this a strike against LINQ? |
|
On Fri, 16 Nov 2007 13:01:14 GMT, "Dan Guzman" guzmanda (AT) nospam-online (DOT) sbcglobal.net> wrote: I agree with you, but isn't this a strike against LINQ? -Tom. I'm a web programmer, but I never understood sql injecting. Your best defense against SQL injection in SQL Server is to execute only parameterized SQL statements and stored procedures. Never build SQL strings by concatenating values. Code is vulnerable to injection if SQL statements are built and executed like: sqlStatement = "SELECT MyData FROM dbo.MyTable WHERE MyColumn = '" + myValue + "'"; A malicious user can change the intent of this SQL statement by specifying a value like: ';DROP TABLE dbo.MyTable;-- or ' UNION ALL SELECT Password FROM dbo.Users;-- Google "SQL injection" for more information. |
#8
| |||
| |||
|
|
On Nov 16, 7:41 am, Tom van Stiphout <no.spam.tom7... (AT) cox (DOT) net> wrote: I agree with you, but isn't this a strike against LINQ? |
|
LINQ is to a database as asking a child to build a cyclotron. What you get is some well intentioned but mangled piece of work that bears little relation to reality. What a gigantic waste of resources. Had they only brought in people who new even the basic ideas of a 'real relational database' MS might well be on the way to breaking new ground in an area dormat forever. Now they simply have something they can say 'hides' sql from the net developer. It seems what was important was to design something, anything, so long as it would 'hide' sql. If anyone can explain what ideas/principles were being followed I'd love to hear from them. MS has a net group and a database group. Obviously they need another. |
#9
| |||
| |||
|
#10
| |||
| |||
|
|
On Nov 17, 9:49 am, Ed Murphy <emurph... (AT) socal (DOT) rr.com> wrote: My point is MS is attempting to make application development easier at the expense of database technology. There is nothing in LINQ that advances db technology one inch. It is pure utility. There is nothing I've read concerning LINQ that indicates that anyone remotely connected with it has any idea of relational ideas/technology.... Hmmm, is this more to your taste? |
![]() |
| Thread Tools | |
| Display Modes | |
| |