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
Error when using "Paste Append" to copy data from Excel to Access
Restore problem
Email showing strange characters
VS 2003 Project to VS2008 Project and Converting Windows Forms to Partial Classes
Open Sharepoint server's pdf file in asp.net...
CScrollView in a static CSplitterWnd pane
Why public network is the highest in the binding order?
What would be the ideal budget server configuration for 25 exchange users in one office?
Strip CRLF from txt file using existing query
Internal Cert Issue