Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Newbie SQL Server question
Message
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
00997436
Message ID:
00997440
Views:
11
Paul,
If a record in a table in a database on M$ SQL Server is deleted it is deleted and not like VFP where it is marked for deletion and you have to pack the table to remove it completely.

Just to see if I understand you, you are deleting all the records from the table and then you are adding all the records back in with just one new/modified record compared to the table before you deleted all the records? If that is the case I would investigate redesigning it so that you don't have to do all that work (or rather make the SQL server do all that work).

Anywho just my $0.02

Einar

>I am using SQL Server for the first time with C#. I have a webservice that manages a products table in SQL Server. This webservice accepts XML and either adds product or updates product. For reasons I won't go into here, for each update I am needing to delete the product record and all related records in other tables and then readd the udpated item in the product table and related tables.
>
>Long story short, this webservice is going to be deleting a lot of records in SQL Server. Are they still there marked for deletion like in VFP. If so, how do I remove them?
>
>Should I rethink this method of deleting records and re adding for all updates?
>
>Thanks for your input and suggestions.
>
>Paul
Semper ubi sub ubi.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform