Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing Char to Varchar Datatype
Message
 
 
À
12/08/2006 01:34:55
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
01145012
Message ID:
01145186
Vues:
16
This message has been marked as the solution to the initial question of the thread.
SQL Server does not automatically defragment tables/databases. If the table in question has clustered index than DBCC INDEXDEFRAG or DBCC DBREINDEX can be run to defragment it. If the table does not have clustered index, you can eliminate such fragmentation by temporarily adding a clustered index or by unloading and reloading the data.

>
>I created 2 sample tables with identical fields namely fname, mname, lname.
>For table 1, I set the fields to char(25) and for table2, I set the fields to varchar(25)
>
>I then created a program that will populate each table with 300,000 thousand records(fname= 'MICHAEL'; mname = 'D', lname = 'ZAPANTA')
>
<snip>
>
>The space being consumed by table1 was not released.
>
>How can I set SQL Server to automatically released unused spaces?
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform