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 Administration (2000)
 Query results slow across network

Author  Topic 

Nuisance Factor
Starting Member

1 Post

Posted - 2008-09-01 : 06:10:00
Hello,

I have the following table
CREATE TABLE [dbo].[DnnForge_NewsArticles_Page] (
[PageID] [int] IDENTITY (1, 1) NOT NULL ,
[ArticleID] [int] NOT NULL ,
[Title] [nvarchar] (255) COLLATE Latin1_General_CI_AS NOT NULL ,
[PageText] [ntext] COLLATE Latin1_General_CI_AS NOT NULL ,
[SortOrder] [int] NOT NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

ALTER TABLE [dbo].[DnnForge_NewsArticles_Page] WITH NOCHECK ADD
CONSTRAINT [PK_DnnForge_NewsArticles_Page] PRIMARY KEY CLUSTERED
(
[PageID]
) WITH FILLFACTOR = 90 ON [PRIMARY]
GO

ALTER TABLE [dbo].[DnnForge_NewsArticles_Page] ADD
CONSTRAINT [DF_DnnForge_NewsArticles_Page_SortOrder] DEFAULT (0) FOR [SortOrder]
GO

ALTER TABLE [dbo].[DnnForge_NewsArticles_Page] ADD
CONSTRAINT [FK_DnnForge_NewsArticles_Page_DnnForge_NewsArticles_Article] FOREIGN KEY
(
[ArticleID]
) REFERENCES [dbo].[DnnForge_NewsArticles_Article] (
[ArticleID]
) ON DELETE CASCADE
GO


and a very simple query:
SELECT     PageID, ArticleID, Title, PageText, SortOrder
FROM dbo.DnnForge_NewsArticles_Page


If I remote desktop to the server and run the above query, all 160 results are returned very quickly. If I connect to the server via TCP using SQL Management studio express and run the same query, it can take up to 3 minutes for all the results to be returned. If I reduce the query so that the pagetext field (nText) is omitted, the results are returned very quickly.

Is there something I may have missed wrt ntext fields in my server set-up?

Many thanks

Barry

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-09-03 : 06:11:36
How fast is your network?
Do you have many routers on the way to your server?



E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page
   

- Advertisement -