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
Problem with Joomla email cloaking
can i use right([ClientName] to get the last part of a string in a Microsoft Access query if i don't know how long the last part is?
How can I print using a Clipper (DOS) application under Windows 7
Exporting report to excel
Strange occurance ADP/SQL2005 Subform Checkboxes autocheck when create new record
Tables with fixed number of rows
How to enable/disable a succeeding dropdown list if a value is selected on the first drop down list
How to Create an On Key Press Event in Visual Studio 2005
Simple SQL Join Query Syntax Issue
Windows Server 2008 Backup