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 > Err No: 17 :[DBNETLIB][ConnectionOpen
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Err No: 17 :[DBNETLIB][ConnectionOpen

Réponse
 
LinkBack Outils de la discussion
Vieux 13/06/2008, 17h53   #1
Hoby1Cat
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Err No: 17 :[DBNETLIB][ConnectionOpen

I'm receiving this error. Is this due to memory?

Err No: 17 :[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist
or access denied.;

It happens if the loop gets larger than a certain number of loop iterations.
The magic number is somewhere between 2,000 and 2,400. For example, the file
with 2,000 rows is being processed without errors, and the file with 2,400
rows blows up. It’s not dependent on the data. We tried creating files in
different ways, and it really has only to do with the number of loop
iterations

  Réponse avec citation
Vieux 13/06/2008, 19h43   #2
Rick Sawtell
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Err No: 17 :[DBNETLIB][ConnectionOpen


"Hoby1Cat" <Hoby1Cat@discussions.microsoft.com> wrote in message
news:3EB133E1-821C-4EE3-91C5-14B657CEF68C@microsoft.com...
> I'm receiving this error. Is this due to memory?
>
> Err No: 17 :[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not
> exist
> or access denied.;
>
> It happens if the loop gets larger than a certain number of loop
> iterations.
> The magic number is somewhere between 2,000 and 2,400. For example, the
> file
> with 2,000 rows is being processed without errors, and the file with 2,400
> rows blows up. It's not dependent on the data. We tried creating files in
> different ways, and it really has only to do with the number of loop
> iterations
>


Does each loop open another connection to SQL Server? Are you using
connection pooling in your application?

SQL Server is SET based, you may wish to reconstruct your code to use SETS
instead of row-by-row logic.

These are just a couple of guesses off the top of my head.


Rick Sawtell


  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 03h27.


É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,08630 seconds with 10 queries