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
Hide Datasheet View Using Docmd.Openquery
How to remove "lock code" security from exchange 2007 for active sync
Access - Set warnings (Why is it automatically off)
How to copy Selected items from one list box t oanother list box after the button insert is clicked
missing APPS.INF file
GPF in module MSARN200.EXE
Help with a Web service
How to export data from Access database?
How do I find a value in an Excel matrix using column and row headers?
On Insert: The text, ntext, or image data type cannot be selected as DISTINCT