Click here to Skip to main content
15,890,336 members
Home / Discussions / Database
   

Database

 
QuestionRe: How do i solved Timeout Expired Error in ASP.net with Backend as SQL 2008 Pin
Eddy Vluggen7-Sep-12 2:53
professionalEddy Vluggen7-Sep-12 2:53 
Answerclose and dispose Pin
David Mujica7-Sep-12 5:10
David Mujica7-Sep-12 5:10 
GeneralRe: close and dispose Pin
Pratibha Mhatre19-Sep-12 20:05
Pratibha Mhatre19-Sep-12 20:05 
GeneralRe: close and dispose Pin
David Mujica20-Sep-12 10:22
David Mujica20-Sep-12 10:22 
QuestionSequence of events inside a stored procedure Pin
Clive D. Pottinger6-Sep-12 8:13
Clive D. Pottinger6-Sep-12 8:13 
AnswerRe: Sequence of events inside a stored procedure Pin
Andrei Straut6-Sep-12 9:23
Andrei Straut6-Sep-12 9:23 
AnswerRe: Sequence of events inside a stored procedure Pin
PIEBALDconsult6-Sep-12 9:49
mvePIEBALDconsult6-Sep-12 9:49 
AnswerRe: Sequence of events inside a stored procedure Pin
Clive D. Pottinger7-Sep-12 6:42
Clive D. Pottinger7-Sep-12 6:42 
Thank you gentlemen. I found the cause of the issue.

The section that reads
SQL
PRINT 'copying order_summary:';
    INSERT INTO order_summary
    SELECT [order_num],[order_date], etc, etc, etc...
    FROM   sourcesummary
    WHERE  sourcesummary.order_num = @orderNum;

should have been
SQL
PRINT 'copying order_summary:';
    SET IDENTITY_INSERT order_summary ON;
    INSERT INTO order_summary ([order_num],[order_date], etc, etc, etc...)
    SELECT [order_num],[order_date], etc, etc, etc...
    FROM   sourcesummary
    WHERE  sourcesummary.order_num = @orderNum;
    SET IDENTITY_INSERT order_summary OFF;


"... to become an SQL expert? Oh, I figure 3 or 4 days reading. A week tops!"
Clive Pottinger
Victoria, BC


modified 12-Sep-12 12:05pm.

JokeRe: Sequence of events inside a stored procedure Pin
cbeglobal12-Sep-12 1:44
cbeglobal12-Sep-12 1:44 
Questioni m new in sql.i want print a message(the table employe is not exist in database) in error handling with try and catch Pin
Rashid Choudhary6-Sep-12 2:02
Rashid Choudhary6-Sep-12 2:02 
AnswerRe: i m new in sql.i want print a message(the table employe is not exist in database) in error handling with try and catch Pin
Wes Aday6-Sep-12 2:26
professionalWes Aday6-Sep-12 2:26 
AnswerRe: i m new in sql.i want print a message(the table employe is not exist in database) in error handling with try and catch Pin
Eddy Vluggen6-Sep-12 2:28
professionalEddy Vluggen6-Sep-12 2:28 
AnswerRe: i m new in sql.i want print a message(the table employe is not exist in database) in error handling with try and catch Pin
PIEBALDconsult6-Sep-12 3:33
mvePIEBALDconsult6-Sep-12 3:33 
QuestionRetrieve records from sqlserver 2005 which are today inserted Pin
sali225-Sep-12 15:23
sali225-Sep-12 15:23 
AnswerRe: Retrieve records from sqlserver 2005 which are today inserted Pin
PIEBALDconsult5-Sep-12 17:17
mvePIEBALDconsult5-Sep-12 17:17 
AnswerRe: Retrieve records from sqlserver 2005 which are today inserted Pin
sali225-Sep-12 17:33
sali225-Sep-12 17:33 
GeneralRe: Retrieve records from sqlserver 2005 which are today inserted Pin
PIEBALDconsult5-Sep-12 18:07
mvePIEBALDconsult5-Sep-12 18:07 
AnswerMessage Closed Pin
5-Sep-12 22:37
Santhosh Kumar Jayaraman5-Sep-12 22:37 
GeneralRe: Retrieve records from sqlserver 2005 which are today inserted Pin
PIEBALDconsult6-Sep-12 4:51
mvePIEBALDconsult6-Sep-12 4:51 
QuestionHow to join two sql queries together? Pin
turbosupramk35-Sep-12 11:09
turbosupramk35-Sep-12 11:09 
AnswerRe: How to join two sql queries together? Pin
Mycroft Holmes5-Sep-12 12:49
professionalMycroft Holmes5-Sep-12 12:49 
AnswerRe: How to join two sql queries together? Pin
Osama Bin Laden 20125-Sep-12 15:02
Osama Bin Laden 20125-Sep-12 15:02 
AnswerRe: How to join two sql queries together? Pin
pmpdesign5-Sep-12 19:29
pmpdesign5-Sep-12 19:29 
GeneralRe: How to join two sql queries together? Pin
turbosupramk36-Sep-12 4:10
turbosupramk36-Sep-12 4:10 
AnswerRe: How to join two sql queries together? Pin
Niju16-Sep-12 6:32
Niju16-Sep-12 6:32 

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.