473,796 Members | 2,517 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Text column slows down select

Hi All,

We're running SQL Server 2000, SP3.

I have a stored procedure that consists of a single Select statement.
It selects a bunch of columns one of which is a column of data type
TEXT.
SP takes 30 sec to run which causes timeouts on the Front End.
When I comment out the Text column from the select it only takes 1
Sec.
Is there anything I can do about it? I know I can't index a Text
column. It's also not used in the where clause, so no need for
Full-Text Search.
But we absolutely have to have it in the Select clause.
Thanks for the help in advance.

~Narine
Jul 20 '05 #1
5 2560
Return less rows at once?

It's probably slow because it's sending back a lot of data -- send back less
data and it will be faster.
"Narine" <na************ ***@prurealty.c om> wrote in message
news:56******** *************** **@posting.goog le.com...
Hi All,

We're running SQL Server 2000, SP3.

I have a stored procedure that consists of a single Select statement.
It selects a bunch of columns one of which is a column of data type
TEXT.
SP takes 30 sec to run which causes timeouts on the Front End.
When I comment out the Text column from the select it only takes 1
Sec.
Is there anything I can do about it? I know I can't index a Text
column. It's also not used in the where clause, so no need for
Full-Text Search.
But we absolutely have to have it in the Select clause.
Thanks for the help in advance.

~Narine

Jul 20 '05 #2
Performance wise Less is More but lso try deferring the select of the text.

If the front end displays a list of entries (e.g. Grid) and the text in a
seperate control, which gets displayed as the grid is scrolled down ...
retrieve into the grid and only select the first one. As the user changes
the selected row, retrieve just the displayed text data item.

"Adam Machanic" <amachanic@hotm ail._removetoem ail_.com> wrote in message
news:cj******** **@bob.news.rcn .net...
Return less rows at once?

It's probably slow because it's sending back a lot of data -- send back less data and it will be faster.
"Narine" <na************ ***@prurealty.c om> wrote in message
news:56******** *************** **@posting.goog le.com...
Hi All,

We're running SQL Server 2000, SP3.

I have a stored procedure that consists of a single Select statement.
It selects a bunch of columns one of which is a column of data type
TEXT.
SP takes 30 sec to run which causes timeouts on the Front End.
When I comment out the Text column from the select it only takes 1
Sec.
Is there anything I can do about it? I know I can't index a Text
column. It's also not used in the where clause, so no need for
Full-Text Search.
But we absolutely have to have it in the Select clause.
Thanks for the help in advance.

~Narine


Jul 20 '05 #3

"David Rawheiser" <ra*******@hotm ail.com> wrote in message
news:%u******** ************@bg tnsc05-news.ops.worldn et.att.net...
Performance wise Less is More but lso try deferring the select of the text.
If the front end displays a list of entries (e.g. Grid) and the text in a
seperate control, which gets displayed as the grid is scrolled down ...
retrieve into the grid and only select the first one. As the user changes
the selected row, retrieve just the displayed text data item.


I agree, but remember, there's also a tradeoff due to network round
trips, server connection, etc -- it takes time to retrieve any data every
time you make another request to the server. So the OP should test very
carefully to make sure that network traffic doesn't slow down the app when
more db calls are made. This is especially important in web-based
situations.
Jul 20 '05 #4
I assumed that he would test any advice given. The root of both of our
answers is less is more.

Perhaps I need to create a signature block for my postings - Any feed back
on the following would be appreciated.

1.Your mileage may vary.
2. Past results do not guarantee future returns.
3. Some settling of contents may have occurred during shipping.
4. This free advice come with an infinite money back guarantee, (as any
number time zero remains zero).
"Adam Machanic" <amachanic@hotm ail._removetoem ail_.com> wrote in message
news:cj******** **@bob.news.rcn .net...

"David Rawheiser" <ra*******@hotm ail.com> wrote in message
news:%u******** ************@bg tnsc05-news.ops.worldn et.att.net...
Performance wise Less is More but lso try deferring the select of the

text.

If the front end displays a list of entries (e.g. Grid) and the text in a seperate control, which gets displayed as the grid is scrolled down ...
retrieve into the grid and only select the first one. As the user changes the selected row, retrieve just the displayed text data item.


I agree, but remember, there's also a tradeoff due to network round
trips, server connection, etc -- it takes time to retrieve any data every
time you make another request to the server. So the OP should test very
carefully to make sure that network traffic doesn't slow down the app when
more db calls are made. This is especially important in web-based
situations.

Jul 20 '05 #5

"David Rawheiser" <ra*******@hotm ail.com> wrote in message
news:qX******** *************@b gtnsc05-news.ops.worldn et.att.net...

Perhaps I need to create a signature block for my postings - Any feed back
on the following would be appreciated.


Personally, if I were to create that, it would have something along the
lines of: "Stop being so lazy, roll up your sleeves, and do it yourself!"
:)
Jul 20 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
8611
by: Richard Galli | last post by:
I want viewers to compare state laws on a single subject. Imagine a three-column table with a drop-down box on the top. A viewer selects a state from the list, and that state's text fills the column below. The viewer can select states from the drop down lists above the other two columns as well. If the viewer selects only one, only one column fills. If the viewer selects two states, two columns fill. Etc. I could, if appropriate, have...
11
2496
by: Dan | last post by:
Hello all, I am getting records from a db and displaying the records to the user through a drop down menu in an asp page. Each record has 6 fields and I need to display them all to the user in the drop down. The problem is that the fields contain values of all different lengths and the columns are not aligned.
3
4047
by: google | last post by:
This is something I've done plenty of times in '97, but I can't seem to get it to work correctly in Access 2003. Say, for example, I have a form with an unbound combobox, the data source is a table of customers, first column is the key field, which is hidden with a 0" width, and the second column is the customer name. The SQL is a union query that also inserts Null in the first column, and "All" in the second column. That combobox gets...
0
2442
by: Nithin | last post by:
My code as an txt attachment. I have 2 drop down list boxes that on selection populate text boxes from my database table. I am able to display the correct values in these text boxes. I have 2 questions: 1) I would like the user update these text fields that get populated with data from the database. For some reason I get the error when I change the textbox value.
8
6789
by: Frank van Vugt | last post by:
Hi all, Boiling down a problem in one of my queries, I noticed this behaviour. # select version(); version ------------------------------------------------------------------------ PostgreSQL 7.4.2 on i586-pc-linux-gnu, compiled by GCC gcc (GCC) 3.2.3 (1 row)
10
9579
by: lorirobn | last post by:
Hi, I have a form with several combo boxes, continuous form format, with record source a query off an Item Table. The fields are Category, Subcategory, and Color. I am displaying descriptions, not ID's, so I have to convert the ID's from various lookup tables. The combo boxes work fine except for subcategory, which is dependent on category. Depending on category, the drop-down box for subcategory will display different items. (for...
4
2741
by: rszebras | last post by:
I inherited a database (as a novice at Access) and need to modify it to make it more efficient, i.e., the assignment form needs to autopopulate with the client's name, address, phone number, etc., when you select the cust id. Found this cited as a good method: http://www.mvps.org/access/forms/frm0058.htm I have two tables (clients, assignments) and one form (assignment input) in the database. I have a control box called CUST ID in the...
6
3399
by: BerkshireGuy | last post by:
On an unbound form, I have a combobox called 'cboproducttype' and a text box called 'txtamountappliedfor'. I have an Add button that I would like the user to be able to hit once a product and amount applied for has been entered. This should populate an unbound listbox to display their selections. A user can select one or more sets of product types and the amount applied for. They should also have the functionality to remove a 'set' if...
0
2729
by: JamesOo | last post by:
I have the code below, but I need to make it searchable in query table, below code only allowed seach the table which in show mdb only. (i.e. have 3 table, but only can search either one only, cannot serch by combine 3 table) Example I have the query table below, how do I make the code to seach based on the query from this: SELECT Product.ID, Product.Description, Quantity.Quantity, Quantity.SeialNo, Quantity.SupplierID,...
0
9530
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10459
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10182
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9055
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6793
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5445
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5577
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4120
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3734
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.