Click here to Skip to main content
15,885,365 members
Home / Discussions / Database
   

Database

 
AnswerRe: View must begin with SELECT? Pin
SomeGuyThatIsMe3-Jun-08 8:13
SomeGuyThatIsMe3-Jun-08 8:13 
AnswerRe: View must begin with SELECT? Pin
Mycroft Holmes4-Jun-08 18:18
professionalMycroft Holmes4-Jun-08 18:18 
QuestionTable Variable result set ??? Pin
tthellebuyck3-Jun-08 3:52
tthellebuyck3-Jun-08 3:52 
AnswerRe: Table Variable result set ??? Pin
dan!sh 3-Jun-08 4:08
professional dan!sh 3-Jun-08 4:08 
AnswerRe: Table Variable result set ??? Pin
John Ad3-Jun-08 4:12
John Ad3-Jun-08 4:12 
Questioncalling procedure within trigger Pin
Mr.Kode2-Jun-08 20:44
Mr.Kode2-Jun-08 20:44 
AnswerRe: calling procedure within trigger Pin
Ashfield2-Jun-08 21:43
Ashfield2-Jun-08 21:43 
GeneralRe: calling procedure within trigger Pin
Mr.Kode2-Jun-08 22:42
Mr.Kode2-Jun-08 22:42 
trigger text:

Create trigger dbo.invoiceNum
on invoice_summary
fro insert
as
begin
insert into invoice_details(invoice_num)
select invoice_num from inserted
exec insertInvoiceDetails /*stored procedure to insert to remained columns in invoice_details table */
end
GO

when trigger fired it insert the Invoice_num
but when stored procedure fired it tries to insert new row and didn`t find invoice_num (Not Null column) then raised error thar Invoice_num don`t allow nulls

regards
GeneralRe: calling procedure within trigger Pin
Ashfield3-Jun-08 1:23
Ashfield3-Jun-08 1:23 
AnswerRe: calling procedure within trigger Pin
Member 33013254-Jun-08 10:00
Member 33013254-Jun-08 10:00 
QuestionProblem on applying MySql.Data.dll into Visual Studio 2003 for VB.NET Pin
drexler_kk2-Jun-08 16:31
drexler_kk2-Jun-08 16:31 
AnswerCross post Pin
dan!sh 2-Jun-08 20:31
professional dan!sh 2-Jun-08 20:31 
Questionsql editor Pin
xybroxymoron2-Jun-08 16:12
xybroxymoron2-Jun-08 16:12 
QuestionSelect Query problem... Pin
tthellebuyck2-Jun-08 3:04
tthellebuyck2-Jun-08 3:04 
AnswerRe: Select Query problem... Pin
Peter Josefsson Sweden2-Jun-08 4:54
Peter Josefsson Sweden2-Jun-08 4:54 
AnswerRe: Select Query problem... Pin
Om Prakash Pant12-Apr-11 23:03
Om Prakash Pant12-Apr-11 23:03 
QuestionProblem with the Following Cursor Pin
Vimalsoft(Pty) Ltd2-Jun-08 2:30
professionalVimalsoft(Pty) Ltd2-Jun-08 2:30 
AnswerRe: Problem with the Following Cursor Pin
Alsvha2-Jun-08 4:32
Alsvha2-Jun-08 4:32 
AnswerRe: Problem with the Following Cursor Pin
Mike Dimmick2-Jun-08 5:25
Mike Dimmick2-Jun-08 5:25 
GeneralRe: Problem with the Following Cursor Pin
Vimalsoft(Pty) Ltd2-Jun-08 7:57
professionalVimalsoft(Pty) Ltd2-Jun-08 7:57 
QuestionWhy DataColumn.DefaultValue is null Pin
Ahmad Safwat2-Jun-08 2:28
Ahmad Safwat2-Jun-08 2:28 
AnswerRe: Why DataColumn.DefaultValue is null Pin
Ahmad Safwat2-Jun-08 3:10
Ahmad Safwat2-Jun-08 3:10 
AnswerNew Problem Pin
Ahmad Safwat2-Jun-08 21:25
Ahmad Safwat2-Jun-08 21:25 
QuestionMSMQ vs Service Broker performance Pin
Member 42747082-Jun-08 1:52
Member 42747082-Jun-08 1:52 
Questionsql2000 + distinct rows Pin
ritu43212-Jun-08 0:04
ritu43212-Jun-08 0:04 

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.