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
Access 2007 and PDF
SharePoint (WSS 3) access via UNC path
DoCmd.OutputTo - runtime error 30016 the field 'id' is read only
How to automate Access Report Save process (in multiple formats)
Vista can't modify files (Access Denied)
Server Monitoring via Email
SBS 2008 - Combine two gigabit nics for faster network speed.
Errors Compiling DLL
Turn on Insert function on Apple Keyboard A1243 (2007 MacBook Pro running WinXP Pro)
Annotate pdf file online using silverlight