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
Usa an Acrobat PDF as a Document Library Content Type Document Template
SQL Syntax
Can't disable PIN on iPhone on Activesync exchange 2007
Overtime Calculation for Payroll.
Access 2003 All Capital Letters
Show only comments, not formatting changes in track change balloons in MSword 2003
Validation Giving Inconsistent Results
powerpoint shows gabbage text when opening
Why does Outlook 2003 keep crashing on our Windows 2008 64-Bit Terminal Server ?
FLIPPING TEXT IN WORKS OR WORD