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
Need SQL Syntax help to make my qry more efficient.
How can I add this Excel Sheet to Access (form) and make it work like Excel Sheet?
Microsoft Dynamics CRM 4.0
HELP, I fallen on a 'Runtime Error 3134 Syntax error in INSERT INTO statement' and i can't get up!
Access, non-print a null field.
Moving public folders from Exchange 2007 to Exchange 2003 - Different Organisations
Call the load event of another form
VBA Variable as DLookup Criteria
Unable to view RTF files in IE8
Update a record using a SQL qry based on multiple criteria