Click here to Skip to main content
15,902,939 members
Home / Discussions / Database
   

Database

 
QuestionOracle cursor Pin
anishkannan16-Feb-11 22:47
anishkannan16-Feb-11 22:47 
AnswerRe: Oracle cursor Pin
Wendelius17-Feb-11 0:31
mentorWendelius17-Feb-11 0:31 
QuestionUpdating a table from Excel Pin
Kyudos16-Feb-11 12:18
Kyudos16-Feb-11 12:18 
AnswerRe: Updating a table from Excel Pin
Wendelius17-Feb-11 3:03
mentorWendelius17-Feb-11 3:03 
QuestionHow to change the payroll_2007_08connectionstring to payrollconnectionstring (dataset) without removing the fields in reports. Pin
sr15916-Feb-11 1:37
sr15916-Feb-11 1:37 
QuestionRollBack Process Pin
Anubhava Dimri15-Feb-11 22:24
Anubhava Dimri15-Feb-11 22:24 
AnswerRe: RollBack Process Pin
R. Giskard Reventlov15-Feb-11 22:37
R. Giskard Reventlov15-Feb-11 22:37 
AnswerRe: RollBack Process Pin
Wendelius16-Feb-11 9:37
mentorWendelius16-Feb-11 9:37 
Hi,

If you mean that can you rollback the truncation of a table if it's done in a tranaction: Yes.

You can test this with a small test case:

SQL
-- Table creation and filling
CREATE TABLE TruncTest (
Column1 int);

BEGIN
   DECLARE @cnt INT;
   SET @cnt = 0;
   WHILE @cnt < 100 BEGIN
      INSERT INTO TruncTest VALUES (@cnt);
      SET @cnt = @cnt + 1;
   END;
END;

SELECT COUNT(*) AS Rows FROM TruncTest;

-- Result:
-- Rows
-- 100

--test truncation
BEGIN TRANSACTION;
TRUNCATE TABLE TruncTest;
SELECT COUNT(*) AS Rows FROM TruncTest;

-- Result:
-- Rows
-- 0

ROLLBACK;

SELECT COUNT(*) AS Rows FROM TruncTest;

-- Result:
-- Rows
-- 100

Questioncombo box issue Pin
scorp_scorp15-Feb-11 17:59
scorp_scorp15-Feb-11 17:59 
AnswerRe: combo box issue Pin
Jörgen Andersson16-Feb-11 0:42
professionalJörgen Andersson16-Feb-11 0:42 
QuestionIs MS Access database based application will be portable in all Windows machine ? Pin
Nadia Monalisa15-Feb-11 9:07
Nadia Monalisa15-Feb-11 9:07 
AnswerRe: Is MS Access database based application will be portable in all Windows machine ? Pin
David Mujica15-Feb-11 9:36
David Mujica15-Feb-11 9:36 
GeneralRe: Is MS Access database based application will be portable in all Windows machine ? Pin
Nadia Monalisa15-Feb-11 9:49
Nadia Monalisa15-Feb-11 9:49 
GeneralRe: Is MS Access database based application will be portable in all Windows machine ? Pin
David Mujica15-Feb-11 9:58
David Mujica15-Feb-11 9:58 
GeneralRe: Is MS Access database based application will be portable in all Windows machine ? Pin
Luc Pattyn15-Feb-11 10:18
sitebuilderLuc Pattyn15-Feb-11 10:18 
GeneralRe: Is MS Access database based application will be portable in all Windows machine ? Pin
Nadia Monalisa15-Feb-11 10:20
Nadia Monalisa15-Feb-11 10:20 
AnswerRe: Is MS Access database based application will be portable in all Windows machine ? Pin
Luc Pattyn15-Feb-11 10:31
sitebuilderLuc Pattyn15-Feb-11 10:31 
GeneralRe: Is MS Access database based application will be portable in all Windows machine ? Pin
Eddy Vluggen16-Feb-11 1:59
professionalEddy Vluggen16-Feb-11 1:59 
GeneralRe: Is MS Access database based application will be portable in all Windows machine ? Pin
jschell16-Feb-11 9:11
jschell16-Feb-11 9:11 
AnswerRe: Is MS Access database based application will be portable in all Windows machine ? Pin
PIEBALDconsult15-Feb-11 10:47
mvePIEBALDconsult15-Feb-11 10:47 
QuestionStrnge WHERE syntax Pin
Mel Padden15-Feb-11 6:25
Mel Padden15-Feb-11 6:25 
AnswerRe: Strnge WHERE syntax Pin
Chris Meech15-Feb-11 9:07
Chris Meech15-Feb-11 9:07 
GeneralRe: Strnge WHERE syntax Pin
Mel Padden15-Feb-11 9:16
Mel Padden15-Feb-11 9:16 
QuestionRe: Strnge WHERE syntax Pin
Chris Meech15-Feb-11 9:26
Chris Meech15-Feb-11 9:26 
AnswerRe: Strnge WHERE syntax Pin
Mel Padden15-Feb-11 9:44
Mel Padden15-Feb-11 9:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.