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

Database

 
GeneralRe: SQL Pin
Ben Meyers10-Feb-06 18:37
Ben Meyers10-Feb-06 18:37 
QuestionDifference btn join & subquery Pin
ramani.r9-Feb-06 20:07
ramani.r9-Feb-06 20:07 
AnswerRe: Difference btn join & subquery Pin
Neel p3-Mar-06 5:34
Neel p3-Mar-06 5:34 
QuestionIs it required to install the dababase server in client system, while we are working on client-server application? Pin
jkrao9-Feb-06 19:08
jkrao9-Feb-06 19:08 
AnswerRe: Is it required to install the dababase server in client system, while we are working on client-server application? Pin
MuhammadKhanAli9-Feb-06 19:24
MuhammadKhanAli9-Feb-06 19:24 
GeneralRe: Is it required to install the dababase server in client system, while we are working on client-server application? Pin
Pankaj Kulkarni9-Feb-06 20:39
Pankaj Kulkarni9-Feb-06 20:39 
GeneralRe: Is it required to install the dababase server in client system, while we are working on client-server application? Pin
Dave Kreskowiak10-Feb-06 7:47
mveDave Kreskowiak10-Feb-06 7:47 
QuestionAccess SQL INSERT Pin
braveheartkenya9-Feb-06 14:18
braveheartkenya9-Feb-06 14:18 
I'm new to SQL, so forgive my ignorance.

I have a number of related tables. Of these there are 3 which are of concern to my problem: Invoices, InvoiceItems and Products. There is a 1:M r/ship between Invoices as well as between Products and Invoice items. The Invoice items table has InvoiceItemID, InvoiceID, ProductID, Quantity and Price.

I would like to add 3 InvoiceItems as records in my InvoiceItems table and i would like to have them related to one Invoice (the last Invoice in my case) in the invoices table, that is, also the field in the InvoiceItems called InvoiceID for these 3 records should have the same InvoiceID. All the Primary Keys are set to AutoNumber.

These are the the statements i used:
INSERT INTO InvoiceItems ( InvoiceID, ProductID, Quantity, Price )
VALUES (4, 8, 1, 0);

INSERT INTO InvoiceItems ( InvoiceID, ProductID, Quantity, Price )
VALUES (4, 9, 4, 0);

INSERT INTO InvoiceItems ( InvoiceID, ProductID, Quantity, Price )
VALUES (4, 10, 2, 0);



I would like to do this using some sort of INSERT SQL statements, but it's just not working. I can INSERT one InvoiceItem, but when i try to INSERT the next one i get some long error saying something about "type conversion failure","key violations", "lock violations" and "validation rule violations"

Does anyone know why this is happening and how to correct it?
Any help would be much appreciated.
AnswerRe: Access SQL INSERT Pin
MuhammadKhanAli9-Feb-06 19:33
MuhammadKhanAli9-Feb-06 19:33 
GeneralRe: Access SQL INSERT Pin
braveheartkenya11-Feb-06 23:13
braveheartkenya11-Feb-06 23:13 
Questionhow to use sqlclient into SQLXML? Pin
essamughal9-Feb-06 8:51
essamughal9-Feb-06 8:51 
QuestionSQLXML: Is the schema file is compulsory? Pin
essamughal9-Feb-06 6:04
essamughal9-Feb-06 6:04 
QuestionUPDATE Command in VBA Pin
codeamin9-Feb-06 2:54
codeamin9-Feb-06 2:54 
AnswerRe: UPDATE Command in VBA Pin
Mike Ellison9-Feb-06 5:56
Mike Ellison9-Feb-06 5:56 
GeneralRe: UPDATE Command in VBA Pin
codeamin9-Feb-06 6:00
codeamin9-Feb-06 6:00 
GeneralRe: UPDATE Command in VBA Pin
Mike Ellison9-Feb-06 6:06
Mike Ellison9-Feb-06 6:06 
GeneralRe: UPDATE Command in VBA Pin
codeamin9-Feb-06 6:10
codeamin9-Feb-06 6:10 
GeneralRe: UPDATE Command in VBA Pin
Mike Ellison9-Feb-06 6:27
Mike Ellison9-Feb-06 6:27 
GeneralRe: UPDATE Command in VBA Pin
codeamin10-Feb-06 4:02
codeamin10-Feb-06 4:02 
GeneralRe: UPDATE Command in VBA Pin
Mike Ellison10-Feb-06 5:58
Mike Ellison10-Feb-06 5:58 
AnswerRe: UPDATE Command in VBA Pin
jonathan159-Feb-06 22:49
jonathan159-Feb-06 22:49 
GeneralRe: UPDATE Command in VBA Pin
codeamin10-Feb-06 4:08
codeamin10-Feb-06 4:08 
QuestionHow to dinamically select an entry in connectionStrings at runtime? Pin
Eugenio Lysei Junior9-Feb-06 1:12
Eugenio Lysei Junior9-Feb-06 1:12 
AnswerRe: How to dinamically select an entry in connectionStrings at runtime? Pin
Mike Ellison9-Feb-06 5:59
Mike Ellison9-Feb-06 5:59 
QuestionDelete Data in Excel file Pin
thainam8-Feb-06 20:58
thainam8-Feb-06 20:58 

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.