Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Insert SP takes Forever
Message
De
25/02/2016 11:53:08
 
 
À
25/02/2016 11:22:10
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Versions des environnements
SQL Server:
SQL Server 2008 R2
Divers
Thread ID:
01632022
Message ID:
01632071
Vues:
49
>>
>>No, just one or two records at a time. Maybe up to 10 every now and then.
>>
>>So, is it OK in this scenario?
>
>In that case, I would say yes. I think the performance issues are far more due to either an unoptimized query in the EXISTS part....or a locking issue associated with that query....or high fragmentation in the table due to the uniqueidentifier.
>
>Again, if you discover fragmentation above 30% on that table, I would try to set up a regular reindex job

I got VERY high fragmentation on the indexes on the 2 tables I have been generating test records for. Both are above 99% average! Of course I'm trying to re-index like this:
EXEC sp_MSforeachtable @command1="print '?' DBCC DBREINDEX ('?', ' ', 80)"
GO
EXEC sp_updatestats
GO
and I get this error:

Msg 1101, Level 17, State 1, Line 1
Could not allocate a new page for database 'RESREPRICERTest' because of insufficient disk space in filegroup 'PRIMARY'. Create the necessary space by dropping objects in the filegroup, adding additional files to the filegroup, or setting autogrowth on for existing files in the filegroup.

and this one:

Msg 1105, Level 17, State 2, Line 1
Could not allocate space for object 'sys.sysobjvalues'.'clst' in database 'RESREPRICERTest' because the 'PRIMARY' filegroup is full. Create disk space by deleting unneeded files, dropping objects in the filegroup, adding additional files to the filegroup, or setting autogrowth on for existing files in the filegroup.

Strange, I have 200GB free on my C: drive and 157 GB free on the drive where the database files are. The database is just about 10GB. Hmmm, this is the express version and I know that's the size limit, I wonder if that is why I'm getting the error.
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform