Click here to Skip to main content
15,921,577 members
Home / Discussions / Database
   

Database

 
GeneralRe: cannot found msado15.dll Pin
Darrell Long19-Feb-03 10:55
Darrell Long19-Feb-03 10:55 
GeneralRe: cannot found msado15.dll Pin
Stephane Rodriguez.19-Feb-03 11:00
Stephane Rodriguez.19-Feb-03 11:00 
GeneralHelp Please: ComboBox Control in WinForm Datagrid Control Pin
DionChen19-Feb-03 5:06
DionChen19-Feb-03 5:06 
Generalforeign key Pin
ylaine18-Feb-03 17:03
ylaine18-Feb-03 17:03 
GeneralRe: foreign key Pin
Jon Hulatt18-Feb-03 22:08
Jon Hulatt18-Feb-03 22:08 
GeneralRe: foreign key Pin
ylaine19-Feb-03 0:44
ylaine19-Feb-03 0:44 
GeneralRe: foreign key Pin
Exceter24-Feb-03 19:12
Exceter24-Feb-03 19:12 
GeneralRe: foreign key Pin
karl_w19-Feb-03 2:01
karl_w19-Feb-03 2:01 
First of all:
1. What DB do you use? Oracle, SQL-Server, Access, DB2?
2. Post your error message (or error code)
3. Post your table-definitons
4. Post the INSERTs you tried.

Some things you should check:
1. Most DBs are case sensitive. So 'comp1' != 'Comp1' => master-key won't be found
2. Even if it sounds silly -> Check for typing errors!
3. Be sure to create a company before creating a customer for it.
4. You can only delete a record from tblcompany if no record of tblcustomer is referencing to it.


The included example should work (assuming accountnumber, customerid and contactnumber to be NUMBERS, the others VARCHAR)

INSERT INTO tblcompany VALUES(1, 'comp1', 'someaddress');<br />
INSERT INTO tblcompany VALUES(2, 'comp2', 'someaddress');<br />
<br />
INSERT INTO tblcustomer (companyname, username, password, name, contactnumber) VALUES ('comp1', 'uname', '***', 'name', 1);


--

karl
GeneralRe: foreign key Pin
ylaine19-Feb-03 5:34
ylaine19-Feb-03 5:34 
GeneralRe: foreign key Pin
karl_w19-Feb-03 19:32
karl_w19-Feb-03 19:32 
Generalthank you Pin
ylaine20-Feb-03 7:04
ylaine20-Feb-03 7:04 
GeneralModifying SQL database problem.. Pin
IrishSonic18-Feb-03 11:07
IrishSonic18-Feb-03 11:07 
GeneralRe: Modifying SQL database problem.. Pin
Jon Hulatt18-Feb-03 11:52
Jon Hulatt18-Feb-03 11:52 
GeneralRe: Modifying SQL database problem.. Pin
perlmunger18-Feb-03 12:52
perlmunger18-Feb-03 12:52 
GeneralInput and retrieve .doc in MSQL Pin
nacer_6518-Feb-03 10:40
nacer_6518-Feb-03 10:40 
GeneralRe: Input and retrieve .doc in MSQL Pin
Topper Price20-Feb-03 15:59
Topper Price20-Feb-03 15:59 
Questionhow to open binary data type for image in access Pin
Anonymous18-Feb-03 10:38
Anonymous18-Feb-03 10:38 
GeneralRow-level locking Pin
Le centriste18-Feb-03 9:46
Le centriste18-Feb-03 9:46 
GeneralFound it! Pin
Le centriste21-Feb-03 17:02
Le centriste21-Feb-03 17:02 
GeneralDB Schema Decsions Pin
Jason McBurney18-Feb-03 7:51
Jason McBurney18-Feb-03 7:51 
GeneralRe: DB Schema Decsions Pin
perlmunger18-Feb-03 8:37
perlmunger18-Feb-03 8:37 
GeneralUsing the ODBC Provider seamlessly Pin
Andrew Torrance18-Feb-03 5:51
Andrew Torrance18-Feb-03 5:51 
QuestionHow to use Dataview and Datagrid to show fields from two different tables Pin
DotNetNewbie17-Feb-03 23:49
DotNetNewbie17-Feb-03 23:49 
AnswerRe: How to use Dataview and Datagrid to show fields from two different tables Pin
perlmunger18-Feb-03 8:04
perlmunger18-Feb-03 8:04 
GeneralRe: How to use Dataview and Datagrid to show fields from two different tables Pin
DotNetNewbie18-Feb-03 10:36
DotNetNewbie18-Feb-03 10:36 

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.