Forum Replies Created

Viewing 15 posts - 1 through 15 (of 37 total)

  • RE: Seemingly simple query with poor performance

    It's funny that you should suggest that.

    I've been considering the two possibilities:

    1) An indexed view

    OR

    2) Adding an index to the RoutePosition table that would index the data more closely in...

    Windows 2008 Server | SQL Server 2008

  • RE: Seemingly simple query with poor performance

    I've spent quite a lot of time on this over Friday and Saturday and have got some new information.

    1. The RoutePosition table contains 128 million rows.

    2. The query I'm executing...

    Windows 2008 Server | SQL Server 2008

  • RE: Seemingly simple query with poor performance

    Table defs and index, query and execution plans below:

    CREATE TABLE [RoutePosition] (

    [ID] [int] IDENTITY (1, 1) NOT FOR REPLICATION NOT NULL ,

    [Vehicle] [varchar] (10) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,

    [Time_Stamp] [datetime]...

    Windows 2008 Server | SQL Server 2008

  • RE: Seemingly simple query with poor performance

    Damn, I'm sorry. I didn't realise that I'd posted in the 2k5 forum although it's pretty obvious when I look at the top of my page! It it possible to...

    Windows 2008 Server | SQL Server 2008

  • RE: Seemingly simple query with poor performance

    Sorry about the icons, they've taken the place of the colon and open braket characters.

    Windows 2008 Server | SQL Server 2008

  • RE: Seemingly simple query with poor performance

    Hi, thanks for taking a look at my problem:

    This is the actual query and exectution plan:

    SELECT E.FleetGroup,E.Time_Stamp,E.Reason,E.Vehicle,R.ID

    FROM RoutePositionEvents AS E

    LEFT OUTER JOIN RoutePosition AS R ON E.RPID = R.ID

    WHERE...

    Windows 2008 Server | SQL Server 2008

  • RE: Position of frequently searched for fields in table

    Thanks guys, I'm sure you're right. I'll see if I can find the articles I read and post links to them.

    Windows 2008 Server | SQL Server 2008

  • RE: Position of frequently searched for fields in table

    To be homest it's just something I've heard from several different sources as I've learned about sql over the last couple of years. I was told it would aid performance.

    Windows 2008 Server | SQL Server 2008

  • RE: Dynamic Job Amendment History

    Hi Kenneth, thanks for the reply.

    I understand that part of how triggers work. Unfortunatley I wanted to be able to dynamically select the value of a column from the INSERTED/DELETED...

    Windows 2008 Server | SQL Server 2008

  • RE: Carriage Returns

    Data entry directly into the table. I know its possibly not the best way to operate, but for quickness when I'm developing I find it easier.

    Windows 2008 Server | SQL Server 2008

  • RE: Is DTS/SQL Integration Services suitable?

    Excellent! That's the most succinct answer I've ever received on a forum! Thank you very much!

    Windows 2008 Server | SQL Server 2008

  • RE: SQL Stored Procedure & URL Response

    Thanks for the reply. We're considering working with an outside company who provide a routing and scheduling solution. Part of their system caclulates a routed distance between two points.

    Part of...

    Windows 2008 Server | SQL Server 2008

  • RE: Good practice or not?

    Thanks for the feedback, both of you. Much appreciated.

    Windows 2008 Server | SQL Server 2008

  • RE: Per instance temporary tables?

    Thanks for your help. It makes sense when you think about it because primary key constraints are unique within the database I believe.

    Windows 2008 Server | SQL Server 2008

  • RE: Per instance temporary tables?

    Yes, I thought that was the case. I am using a single # though:

    CREATE TABLE [#ICNReport] (

     [ID] [int] IDENTITY (1, 1) NOT NULL ,

     [CompanyID] [int] NOT NULL ,

     [Town] [varchar] (50)...

    Windows 2008 Server | SQL Server 2008

Viewing 15 posts - 1 through 15 (of 37 total)