rpcarnell
04-15-2007, 07:43 AM
I have this line for my .NET page:
string strCmd = "UPDATE pictures SET name = @name, width= @width, height = @height, description = @description WHERE (ids = @ids)";
The thing is that sometimes I want width or height, or maybe both to be null. But when I enter null values, the database turns them into zeros.
Is there an SQL way of fixing this? How do I use IsNULL in this context?
_________________________________________________________________
http://www.carbotek.org
string strCmd = "UPDATE pictures SET name = @name, width= @width, height = @height, description = @description WHERE (ids = @ids)";
The thing is that sometimes I want width or height, or maybe both to be null. But when I enter null values, the database turns them into zeros.
Is there an SQL way of fixing this? How do I use IsNULL in this context?
_________________________________________________________________
http://www.carbotek.org