S
Sala
Hi
I want to truncate all data in database ... pls help me how i ll
truncate?
I want to truncate all data in database ... pls help me how i ll
truncate?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Sala said:Hi
I want to truncate all data in database ... pls help me how i ll
truncate?
Sala said:Hi
I want to truncate all data in database ... pls help me how i ll truncate?
Hi
I want to truncate all data in database ... pls help me how i ll
truncate?
Bruce said:Do you really mean "truncate"? Truncate typically means that you trim
extra blank space from the ends of character strings. It doesn't sound
like that is what you want to do.
Do you mean "delete"? If so, you have to tell us whether you want to
delete all rows in all tables (leaving the database table structure
intact, but with no data), or you want to drop all tables from the
database, leaving the database empty, without tables or data. The
correct term for the first is "delete" (rows of data), while the
correct term for the second is "drop" (tables).
So... what is it you want to do?
Rad said:The truncate statement works as follows:
truncate table TableName
So all you need to do is run it for each of the tables in your
database. You'd probably put this in a stored procedure to make it
easier to run subsequently.
However there are caveats -- you can't use it to on tables that are
replicating, for instance
Arne said:

Hi
I want to truncate all data in database ... pls help me how i ll
truncate?
And the winner is.. Otis! This question had absolutely nothing to do with C#
language issues.
Peter
Peter said:And the winner is.. Otis! This question had absolutely nothing to do with C#
language issues.
Peter said:Yes, and if everybody gave you exactly what you want 100% of the time, on a
silver platter, then you may never learn the protocol and netiquette, and
that would be too bad. Our job is not just to answer questions, but also to
help n00b posters become more professional so that they can better help
themselves.
And do you think the original poster learned anything from
your post ?
Not counting that he learned that some people in this group
are arrogant and rude !
Arne
Actually, when I posted the answer I made no arrogant remarks. I simply stated
that it was a question for the SQL Server group and gave the news group address.
Are you saying that the OP learned nothing from my answer?
On the other hand, your post does nothing to assist in the learning process. It
only admonishes Peter and I for what you perceived as bad behavior. I suggest
you take a look in the mirror and see who the arrogant party might be.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.