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
Applying a filter to Main form and SubForm based on InputBox
MOSS 2007 using EXPRESS version of MS SQL instead of MS SQL 2005 STANDARD
Vb.net String split on double and single space
Changing forecolor in report lables
ASPIRE 5732z Acer - password
Vista x64 Driver Signature Enforcement
Outlook 2003 Add-In with VSTO: no permissions
MSSQL Enterprise Manager on Windows 7 when I only have a SQL Server 2000 disk?
What are the various reasons that an Access 2003 MDB type application would display a Read-Only message (sometimes) when you launch the application?
How to get zip codes to convert properly from Excel to Access