PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > ms.sqlserver.server > image field
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
image field

Réponse
 
LinkBack Outils de la discussion
Vieux 19/05/2008, 00h05   #1
Gabriel Pineda
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut image field

hi everybody, i have a problem with an image field in mssql 2005.
it's the firt time i use it, and what i see is that every query that include
the image field is very slow.

how can i increase the speedy to make the querys faster?

thank you all!

  Réponse avec citation
Vieux 19/05/2008, 10h19   #2
John Bell
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: image field


"Gabriel Pineda" <gabrielpineda2001@hotmail.com> wrote in message
news:EE564C57-D1C9-4277-BC9C-D9B4F16234AA@microsoft.com...
> hi everybody, i have a problem with an image field in mssql 2005.
> it's the firt time i use it, and what i see is that every query that
> include
> the image field is very slow.
>
> how can i increase the speedy to make the querys faster?
>
> thank you all!


Hi

You may want to look at
http://databases.aspfaq.com/database...ilesystem.html,
if you are going to include the image field why are you returning it in so
many queries?

John

  Réponse avec citation
Vieux 19/05/2008, 15h37   #3
Aaron Bertrand [SQL Server MVP]
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: image field

Are your queries using SELECT *? Or are you otherwise including the IMAGE
column even in queries that don't even need it?

You should compare performance with having the file on the file system and
SQL Server just storing the path. SQL Server wasn't really designed to be a
file repository like Windows Explorer, and you will undoubtedly observe the
symptom of overhead when pushing data in and out of the database layer.

That said, SQL Server 2008 will provide you with FILESTREAM which is the
best of both worlds... database transactional consistency and file system
performance.




On 5/18/08 6:05 PM, in article
EE564C57-D1C9-4277-BC9C-D9B4F16234AA@microsoft.com, "Gabriel Pineda"
<gabrielpineda2001@hotmail.com> wrote:

> hi everybody, i have a problem with an image field in mssql 2005.
> it's the firt time i use it, and what i see is that every query that include
> the image field is very slow.
>
> how can i increase the speedy to make the querys faster?
>
> thank you all!
>


  Réponse avec citation
Vieux 18/07/2008, 15h25   #4
Rob
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: image field

John,

I have a similar problem. I use SQL 2005 as the back end for an Access
application. I have set up an image field in SQL which translates to an OLE
Object field in Access (exactely what I want). I have placed an unbound
object control on a form that uses the OLE object field from the table. When
I right-click and insert object I have a problem. I can choose to create
from file, browse and select the file. I am also choosing to link to save
space. When I click on okay Access hangs and I have to stop the task. If I
set up a new table in Access with an OLE Object field and use it there are
not problems - only with SQL. Any suggestions?

Rob

"John Bell" wrote:

>
> "Gabriel Pineda" <gabrielpineda2001@hotmail.com> wrote in message
> news:EE564C57-D1C9-4277-BC9C-D9B4F16234AA@microsoft.com...
> > hi everybody, i have a problem with an image field in mssql 2005.
> > it's the firt time i use it, and what i see is that every query that
> > include
> > the image field is very slow.
> >
> > how can i increase the speedy to make the querys faster?
> >
> > thank you all!

>
> Hi
>
> You may want to look at
> http://databases.aspfaq.com/database...ilesystem.html,
> if you are going to include the image field why are you returning it in so
> many queries?
>
> John
>

  Réponse avec citation
Vieux 22/07/2008, 16h08   #5
Rob
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: image field

John,

The link option when inserting an object allows you to see the object but
not store it in the database. It is very handy in Access to keep the file
size at a minimum. When I choose not to link it still locks up the database.
Funny, I can choose the create from new and choose a program like paint and
save that file and it has no problem. Only with the option to select an
existing file. How does one normally show stored images on a form with SQL
as the back end? I do not retrieve the data via a query. I only what to
show the picture when I view the record via a form.

"Rob" wrote:

> John,
>
> I have a similar problem. I use SQL 2005 as the back end for an Access
> application. I have set up an image field in SQL which translates to an OLE
> Object field in Access (exactely what I want). I have placed an unbound
> object control on a form that uses the OLE object field from the table. When
> I right-click and insert object I have a problem. I can choose to create
> from file, browse and select the file. I am also choosing to link to save
> space. When I click on okay Access hangs and I have to stop the task. If I
> set up a new table in Access with an OLE Object field and use it there are
> not problems - only with SQL. Any suggestions?
>
> Rob
>
> "John Bell" wrote:
>
> >
> > "Gabriel Pineda" <gabrielpineda2001@hotmail.com> wrote in message
> > news:EE564C57-D1C9-4277-BC9C-D9B4F16234AA@microsoft.com...
> > > hi everybody, i have a problem with an image field in mssql 2005.
> > > it's the firt time i use it, and what i see is that every query that
> > > include
> > > the image field is very slow.
> > >
> > > how can i increase the speedy to make the querys faster?
> > >
> > > thank you all!

> >
> > Hi
> >
> > You may want to look at
> > http://databases.aspfaq.com/database...ilesystem.html,
> > if you are going to include the image field why are you returning it in so
> > many queries?
> >
> > John
> >

  Réponse avec citation
Vieux 23/07/2008, 21h51   #6
John Bell
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: image field


"Rob" <Rob@discussions.microsoft.com> wrote in message
news:E53371BA-C0BE-451A-AAE7-0AD9BD0148D9@microsoft.com...
> John,
>
> The link option when inserting an object allows you to see the object but
> not store it in the database. It is very handy in Access to keep the file
> size at a minimum. When I choose not to link it still locks up the
> database.
> Funny, I can choose the create from new and choose a program like paint
> and
> save that file and it has no problem. Only with the option to select an
> existing file. How does one normally show stored images on a form with
> SQL
> as the back end? I do not retrieve the data via a query. I only what to
> show the picture when I view the record via a form.
>
> "Rob" wrote:
>

Hi Rob

See the links on

http://databases.aspfaq.com/database...ilesystem.html

John

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 05h45.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,11831 seconds with 14 queries