Click here to Skip to main content
15,891,253 members
Home / Discussions / Database
   

Database

 
GeneralRe: Syntax error (Missing Operator) in Query expression ':0:1 Pin
PIEBALDconsult24-Jan-13 5:48
mvePIEBALDconsult24-Jan-13 5:48 
GeneralRe: Syntax error (Missing Operator) in Query expression ':0:1 Pin
IgaBaro24-Jan-13 5:54
IgaBaro24-Jan-13 5:54 
GeneralRe: Syntax error (Missing Operator) in Query expression ':0:1 Pin
PIEBALDconsult24-Jan-13 6:00
mvePIEBALDconsult24-Jan-13 6:00 
GeneralRe: Syntax error (Missing Operator) in Query expression ':0:1 Pin
IgaBaro24-Jan-13 7:11
IgaBaro24-Jan-13 7:11 
GeneralRe: Syntax error (Missing Operator) in Query expression ':0:1 Pin
PIEBALDconsult24-Jan-13 7:56
mvePIEBALDconsult24-Jan-13 7:56 
GeneralRe: Syntax error (Missing Operator) in Query expression ':0:1 Pin
Richard MacCutchan24-Jan-13 22:35
mveRichard MacCutchan24-Jan-13 22:35 
GeneralRe: Syntax error (Missing Operator) in Query expression ':0:1 Pin
IgaBaro24-Jan-13 5:51
IgaBaro24-Jan-13 5:51 
Questioncreated tables not dropped in a transaction rollback Pin
Danzy8320-Jan-13 16:13
Danzy8320-Jan-13 16:13 
Hello experts. I have noticed something that is unfamiliar to me in my database knowledge.

My application creates tables and inserts initial values into them based on user specifications. More than two tables are created in the process. The table creation and inserts are done within a transaction. When an error occurs, the transaction is rolled back.

I just noticed that when the transaction is rolled back, all inserts are erased as expected. However, the tables created within the transaction are not dropped from the database. This is unusual to me. I don't know if I am missing something or that is how it happens with SQL server (2008 R2).

Is there any way the tables can be dropped without specifying them one at a time in code? Please help.
AnswerRe: created tables not dropped in a transaction rollback Pin
Mycroft Holmes20-Jan-13 16:32
professionalMycroft Holmes20-Jan-13 16:32 
AnswerRe: created tables not dropped in a transaction rollback Pin
Eddy Vluggen21-Jan-13 2:06
professionalEddy Vluggen21-Jan-13 2:06 
AnswerRe: created tables not dropped in a transaction rollback Pin
Shameel21-Jan-13 22:08
professionalShameel21-Jan-13 22:08 
GeneralRe: created tables not dropped in a transaction rollback Pin
jschell22-Jan-13 8:16
jschell22-Jan-13 8:16 
GeneralRe: created tables not dropped in a transaction rollback Pin
Shameel22-Jan-13 23:46
professionalShameel22-Jan-13 23:46 
QuestionChange the language for Sql Server 2008 Pin
Thaer Hamael19-Jan-13 1:27
Thaer Hamael19-Jan-13 1:27 
AnswerRe: Change the language for Sql Server 2008 Pin
PIEBALDconsult19-Jan-13 5:29
mvePIEBALDconsult19-Jan-13 5:29 
AnswerRe: Change the language for Sql Server 2008 Pin
Mycroft Holmes19-Jan-13 14:19
professionalMycroft Holmes19-Jan-13 14:19 
Questionsql server 2008 Pin
Kapilkp17-Jan-13 23:25
Kapilkp17-Jan-13 23:25 
QuestionRe: sql server 2008 Pin
Eddy Vluggen18-Jan-13 1:30
professionalEddy Vluggen18-Jan-13 1:30 
GeneralRe: sql server 2008 Pin
Kapilkp20-Jan-13 23:06
Kapilkp20-Jan-13 23:06 
GeneralRe: sql server 2008 Pin
Eddy Vluggen21-Jan-13 1:15
professionalEddy Vluggen21-Jan-13 1:15 
GeneralRe: sql server 2008 Pin
PIEBALDconsult21-Jan-13 4:57
mvePIEBALDconsult21-Jan-13 4:57 
AnswerRe: sql server 2008 Pin
PIEBALDconsult18-Jan-13 4:01
mvePIEBALDconsult18-Jan-13 4:01 
Questionsql server Pin
yogika17-Jan-13 19:15
yogika17-Jan-13 19:15 
AnswerRe: sql server Pin
Eddy Vluggen18-Jan-13 1:37
professionalEddy Vluggen18-Jan-13 1:37 
AnswerRe: sql server Pin
Richard Deeming18-Jan-13 1:37
mveRichard Deeming18-Jan-13 1:37 

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.