Click here to Skip to main content
15,902,861 members
Home / Discussions / Database
   

Database

 
GeneralRe: Working with Access2007 Attachments in C# Pin
Paul Conrad22-Sep-08 6:46
professionalPaul Conrad22-Sep-08 6:46 
GeneralRe: Working with Access2007 Attachments in C# Pin
Dg!Mortal23-Sep-08 9:39
Dg!Mortal23-Sep-08 9:39 
QuestionHow can I solve the "The column does not allow nulls" error message? Pin
JUNEYT20-Sep-08 7:36
JUNEYT20-Sep-08 7:36 
AnswerRe: How can I solve the "The column does not allow nulls" error message? Pin
Caio Kinzel Filho20-Sep-08 16:37
Caio Kinzel Filho20-Sep-08 16:37 
GeneralRe: How can I solve the "The column does not allow nulls" error message? Pin
JUNEYT20-Sep-08 19:26
JUNEYT20-Sep-08 19:26 
GeneralRe: How can I solve the "The column does not allow nulls" error message? Pin
Caio Kinzel Filho20-Sep-08 22:48
Caio Kinzel Filho20-Sep-08 22:48 
GeneralHere is the table structure [modified] Pin
JUNEYT20-Sep-08 23:33
JUNEYT20-Sep-08 23:33 
GeneralRe: How can I solve the "The column does not allow nulls" error message? Pin
Wendelius21-Sep-08 0:02
mentorWendelius21-Sep-08 0:02 
Hi,

Basic cause for this is that for some reason you are trying to insert NULL to GetUserType. Reasons in your case could be:
- parameter SetUserType has a value of NULL when call to sp is made (but I understood you have checked this)
- when using INSERT syntax where you don't define columns for the values, you can get mixed in column order as Caio pointed out. Modifying the insert statement to following may help. Also notice GetTitle parameter. Didn't find any corresponding field in your table based on your description
INSERT INTO Customer 	  
       (
        UserType,
        AccountStatus,
        FirstName,
        MiddleInitial,
        LastName,
        EmailAddress        )
VALUES  (   
	@GetUserType,
 	@GetAccountStatus,
	@GetTitle,           <-------- Where is this parameter going
	@GetFirstName,
	@GetMiddleInitial,
	@GetLastName,
	@GetEmailAddress)

- also I noticed the call to StoredProcedure3 inside the values portion. Is this intended
@GetEmailAddress,
EXEC StoredProcedure3 <------
RETURN

Mika

The need to optimize rises from a bad design

GeneralRe: How can I solve the "The column does not allow nulls" error message? Pin
JUNEYT21-Sep-08 1:02
JUNEYT21-Sep-08 1:02 
GeneralRe: How can I solve the "The column does not allow nulls" error message? Pin
Wendelius21-Sep-08 1:10
mentorWendelius21-Sep-08 1:10 
AnswerRe: How can I solve the "The column does not allow nulls" error message? Pin
nelsonpaixao21-Sep-08 14:02
nelsonpaixao21-Sep-08 14:02 
QuestionSQL Server 2005 Installation Error Pin
Afaak20-Sep-08 2:24
Afaak20-Sep-08 2:24 
QuestionHi ,how to give permission to stored procedure Pin
Sneha Bisht20-Sep-08 0:12
Sneha Bisht20-Sep-08 0:12 
AnswerRe: Hi ,how to give permission to stored procedure Pin
Harvey Saayman20-Sep-08 0:22
Harvey Saayman20-Sep-08 0:22 
GeneralRe: Hi ,how to give permission to stored procedure Pin
Colin Angus Mackay21-Sep-08 2:05
Colin Angus Mackay21-Sep-08 2:05 
AnswerRe: Hi ,how to give permission to stored procedure Pin
nelsonpaixao21-Sep-08 14:06
nelsonpaixao21-Sep-08 14:06 
QuestionError 21001, error while writing triggers Pin
v1i9n6o7d19-Sep-08 20:44
v1i9n6o7d19-Sep-08 20:44 
AnswerRe: Error 21001, error while writing triggers Pin
Caio Kinzel Filho20-Sep-08 16:41
Caio Kinzel Filho20-Sep-08 16:41 
AnswerRe: Error 21001, error while writing triggers Pin
Wendelius21-Sep-08 9:30
mentorWendelius21-Sep-08 9:30 
QuestionException Handling Pin
Padma N19-Sep-08 20:17
Padma N19-Sep-08 20:17 
AnswerRe: Exception Handling Pin
Ashfield21-Sep-08 21:20
Ashfield21-Sep-08 21:20 
QuestionsqlExpress insertion problem Pin
Essampro19-Sep-08 12:46
Essampro19-Sep-08 12:46 
AnswerRe: sqlExpress insertion problem Pin
Caio Kinzel Filho20-Sep-08 16:47
Caio Kinzel Filho20-Sep-08 16:47 
GeneralRe: sqlExpress insertion problem Pin
Essampro21-Sep-08 14:25
Essampro21-Sep-08 14:25 
GeneralRe: sqlExpress insertion problem Pin
Caio Kinzel Filho21-Sep-08 15:26
Caio Kinzel Filho21-Sep-08 15:26 

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.