Reply to Re: Time Out Problem

Your name:

Reply:


Posted by Erland Sommarskog on 07/20/05 00:27

(Thrushed@gmail.com) writes:
> I have a web service that takes in a record to be added to a database
> table, simple right?
>
> Well one field stores a .wav file converted to a bit array and is of
> the field type Text.
>
> If the field gets large, the record gets inserted just fine, but then
> any attempt to run an update or delete on that record just times out.
> Even in enterprise manager or query analyzer, and without updating the
> actual text field itself.
>
> It is seeming to lock the record somehow whenever the record is
> inserted with a large string in the text field. (works fine with a
> smaller value)
>
> The only way I have found to get the record editable again is to detach
> and reattach.

It appears that you are editing the data through Open Table facility.
The normal way to update data in SQL Server is through INSERT, UPDATE
and DELETE statements. The Open Table function is a convenience function
for quick changes, but is not meant to be a replacement for an application.
It's not even to be compared to what you can do in Excel or Access.
Open Table has several shortcomings, and this is apparently one of them.

While the syntax for INSERT, UPDATE and DELETE maybe be cumbersome to
begin with, it's impossible to work with a relational database without
them. As a piece of data: I type INSERT, UPDATE and DELETE statements
daily. I never use Open Table.


--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinfo/productdoc/2000/books.asp

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация