Microsoft
Software
Hardware
Network
Question : Using a geometry type check constrint in sql sever 2008
Hello,
I'm trying to add a check constraint to a geography column in sql server 2008. I'd like to make sure that [geom].[STGeometryType()] = "Point", however, when I try to create a constraint with this as the expression, it fails.
I know I can do [geom].[STSrid] = (4326) etc, and I'm assuming this works because it is a property rather than method. Is there a way to do check constraints using the instance methods?
Thanks,
Chirs
Answer : Using a geometry type check constrint in sql sever 2008
Point should be in single quotes like this:
[geom].[STGeometryType()] = 'Point'
Greg
Random Solutions
To Virtualize or not
Help installing VS .NET 2005 Crystal Reports on web server
Full Screen
Using regsvr32 in Vista via batch file
Exchange 2010 OWA not working
Word 2007 error on converter MSWRD632
Finding Null in a memo field and what event to use to check the related box
SQL Query Error -- Data type mismatch in criteria expression
Microsoft JScript runtime error :Sys.InvalidOperationExcep<wbr />tion: Handler was not added through the Sys.UI.DomEvent.addHandler<wbr /> method.
Dlookup top record with two criteria