I have a whopper of a table that is roughly 10-11 GIGS
(one table) in sql server.
No I can't parse out the data into more tables because its not really a relational database its just used to track netstat information.
Ok my problem is I'm trying to run a query to clean up the data but its going god awful slow.
I put an index on the columns I'm using but that didn't help so I'm wondering if its because I concatenate the columns together in the query.
My query
select connectionid
from connections
where servername + RemoteAddress + LocalPort = 'servernameipinfolocalport'
Now my index is...
CREATE
INDEX [idx_CleanupIndex] ON [dbo].[Connections] ([ServerName], [RemoteAddress], [LocalPort])
WITH
DROP_EXISTING
ON [PRIMARY]
Would it help if I changed the index to
CREATE
INDEX [idx_CleanupIndex] ON [dbo].[Connections] ([ServerName] + [RemoteAddress] + [LocalPort])
WITH
DROP_EXISTING
ON [PRIMARY]
I don't just want to whack it and give it a shot because it will take roughly 20-30 mins to create the stupid index and HD space is quite limited (because of this Db

lol)
Now this is on a 4 proc server with 1.5 gigs of RAM.. this should NOT take that long!!! lol
This thing has roughly 63,952,419 rows of data so yea it will take some time but jeeeeez.
SQL Server 2k isn't THAT pathetic is it?!