Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot find data type geography

I'm using SQL Server 2008 R2 and I can't seem to be able to use the geography column type it's meant to have. It doesn't show up in the data type column when I create a new column and when I run this code:

CREATE TABLE [Core].[Address2](
 [Geo_Id] [geography] NULL);

I get

Column, parameter, or variable #2: Cannot find data type geography.

Am I doing something wrong or do I need to enable the new data types somehow?

like image 222
Iain Ward Avatar asked Mar 12 '26 15:03

Iain Ward


1 Answers

At the risk of stating the obvious, I'd double check to make sure the database you're using is indeed on a SQL 2008 instance.

like image 104
Joe Stefanelli Avatar answered Mar 15 '26 05:03

Joe Stefanelli



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!