Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Managing deleted records
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Maintenance bases de données
Divers
Thread ID:
01334090
Message ID:
01336356
Vues:
11
>>>>>>With the Express version of SQL Server, are deleted records in the tables handled the same way they are in VFP? By that I mean, does a deleted record remain in the table until it is PACKED or flushed by some other means? If yes, what means would that be?
>>>>>
>>>>>No. They are deleted when they are deleted. SQL Express handles data the same way SQL Server does.
>>>>>
>>>>>>
>>>>>>Also, when a table is managed via a web interface and accumulates deleted records fairly quickly, what techniques are commonly used to flush the deleted records? Is there a way to easily automate this so administrator functions are minimized and the database doesn't need to be taken off line? (This question pertains to both types of databases, SQL and VFP)
>>>>>>
>>>>>>Thanks
>>>>
>>>>Thanks Bill. I guess this would argue in favor of using SQL Server with respect to my second question.
>>>>- Don
>>>
>>>IMHO once you actually use SQL Server as a data store, you'll never go back!
>>
>>Do you know if I can use a round() function in a computed field definition? Syntax?
>>Thanks
>
>Don,
>
>Do you mean something like:
>
>SELECT Amount, ROUND(amount, 0) AS RoundedAmount FROM dbo.MyTable
>
>which would return
>
>Amount      RoundedAmount
>2435.12      2435.00
>5476.78      5477.00
>
>
>If that's not what you're looking for, then I misunderstood the question :-)

Thanks Evan. No that's not what I meant. There are no SELECT statements involved. In the table designer we can create a field that is defined as the product of 2 fields as in the definition of the field3 is field1*field2. But if both fields are decimal fields the number of decimal places quickly gets out of hand. So I would like to use something like field3 = round(field1*filed2,2), but this syntax doesn't seem to work.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform