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
UML Reverse Engineer Visual Studio 2008 and Visio 2007
Can not create outlook data file
creating an install routine for custom printers and SQL Database
IRR function - project with all negative periods
problem sending email from asp pae
LINQ to SQL insertonsubmit, multiple instances before submitchanges
I need to capture the output of the datagrid grdAttendees and record each Members Email Address.
Cannot delete users from site collection on wss 3.0
ISA server in SBS 2003. is blocking a site, how do i allow?
Remote Desktop client in windows 7