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
how to add an additional front end server and remove the old one
Swap two columns using vba
WORD VBA Automation positionnig the cursor.
Auto populate date field for Microsoft CRM 4.0
How do I set up multiple RDPs thru my sonicwall TZ170 firewall
Access: Gouping Textboxes into frames
INSERT INTO SELECT FROM OPENQUERY question
trouble with sorting columns on gridview in ASP.NET 2.0
Simple Update Query
Office 2007 Install Terminal Server