Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Cartesian Coords

Author  Topic 

rrb
SQLTeam Poet Laureate

1479 Posts

Posted - 2002-03-05 : 21:51:50
Hi all

I'm bored , and wondering if any of you had any wonderful thoughts on the best way to store a map-grid - ie 2 dimensional array. The requirements are simple, the contents of each grid location is just to be say, an nvarchar(50)....

I've thought about one table with columns
id, x, y, value
where x and y represent the coords of the grid location, value being the nvarchar. I'm not entirely sure about the repercussions ... so I'd appreciate any brilliant suggestions!

Actually, any suggestions will be appreciated....

-(snooze-time)zzzzzzzzzzzzzz

--
I hope that when I die someone will say of me "That guy sure owed me a lot of money"

byrmol
Shed Building SQL Farmer

1591 Posts

Posted - 2002-03-05 : 22:59:16
rrb,

Why do you need the ID field?

Wont the x,y,v be unique?

DavidM

Tomorrow is the same day as Today was the day before.
Go to Top of Page

rrb
SQLTeam Poet Laureate

1479 Posts

Posted - 2002-03-05 : 23:00:45
habit I guess....x and y must be unique...

--
I hope that when I die someone will say of me "That guy sure owed me a lot of money"
Go to Top of Page
   

- Advertisement -