Click here to Skip to main content
15,896,383 members
Home / Discussions / Database
   

Database

 
AnswerRe: insert into and varbinary Pin
Wendelius13-Nov-08 4:45
mentorWendelius13-Nov-08 4:45 
QuestionI want to diplay particular records between two dates using nvarchar Pin
Samiullah13-Nov-08 0:12
Samiullah13-Nov-08 0:12 
AnswerRe: I want to diplay particular records between two dates using nvarchar [modified] Pin
Syed Mehroz Alam13-Nov-08 2:15
Syed Mehroz Alam13-Nov-08 2:15 
GeneralRe: I want to diplay particular records between two dates using nvarchar Pin
Samiullah13-Nov-08 23:44
Samiullah13-Nov-08 23:44 
AnswerRe: I want to diplay particular records between two dates using nvarchar Pin
Mycroft Holmes13-Nov-08 15:57
professionalMycroft Holmes13-Nov-08 15:57 
AnswerRe: I want to diplay particular records between two dates using nvarchar Pin
PIEBALDconsult13-Nov-08 16:04
mvePIEBALDconsult13-Nov-08 16:04 
QuestionDebugging null data adapter Pin
theFrenchHornet12-Nov-08 9:38
theFrenchHornet12-Nov-08 9:38 
AnswerRe: Debugging null data adapter Pin
Wendelius13-Nov-08 5:15
mentorWendelius13-Nov-08 5:15 
First, I didn't quite understand what you mean with 'station'. However, I believe that it's hard to observe this situation from database since the reason most likely isn't in the database.

Instead, use debugger in Visual Studio, catch the exception immediately when it happens (use menu Debug/Exceptions... to catch all handled/unhandled exceptions) and then use breakpoints to narrow the area.

The most likely cause for this is that if you are reusing same data adapter, when the first operation ends and you perhaps dispose the object, you use the same variable somewhere else (or same code in another thread) and the value is set to null.

One way to get more information is to add diagnostics messages (for example using Trace.WriteLine) to every place where you instantiate the data adapter, set it to null (or dispose it, i.e. using blocks) or use it. This will give you info how things are going and in which order (especially if you're using threads).

Hope this helps,

Mika

The need to optimize rises from a bad design.

My articles[^]

GeneralRe: Debugging null data adapter Pin
theFrenchHornet13-Nov-08 5:47
theFrenchHornet13-Nov-08 5:47 
GeneralRe: Debugging null data adapter Pin
Wendelius13-Nov-08 7:14
mentorWendelius13-Nov-08 7:14 
GeneralRe: Debugging null data adapter Pin
theFrenchHornet15-Nov-08 9:21
theFrenchHornet15-Nov-08 9:21 
GeneralRe: Debugging null data adapter Pin
Wendelius15-Nov-08 9:59
mentorWendelius15-Nov-08 9:59 
AnswerRe: Debugging null data adapter Pin
PIEBALDconsult13-Nov-08 16:11
mvePIEBALDconsult13-Nov-08 16:11 
GeneralRe: Debugging null data adapter Pin
theFrenchHornet15-Nov-08 9:22
theFrenchHornet15-Nov-08 9:22 
QuestionSQL CE Exception Pin
hammerstein0512-Nov-08 4:01
hammerstein0512-Nov-08 4:01 
AnswerRe: SQL CE Exception Pin
Ennis Ray Lynch, Jr.13-Nov-08 4:39
Ennis Ray Lynch, Jr.13-Nov-08 4:39 
QuestionHow to get this nested level output Pin
VenkataRamana.Gali11-Nov-08 18:10
VenkataRamana.Gali11-Nov-08 18:10 
AnswerRe: How to get this nested level output Pin
ScottM111-Nov-08 19:42
ScottM111-Nov-08 19:42 
AnswerRe: How to get this nested level output Pin
Wendelius12-Nov-08 7:39
mentorWendelius12-Nov-08 7:39 
Questionenabling xp_cmdshell Pin
sunny7411-Nov-08 17:58
sunny7411-Nov-08 17:58 
AnswerRe: enabling xp_cmdshell Pin
ScottM111-Nov-08 19:39
ScottM111-Nov-08 19:39 
GeneralRe: enabling xp_cmdshell Pin
sunny7411-Nov-08 22:15
sunny7411-Nov-08 22:15 
GeneralRe: enabling xp_cmdshell Pin
ScottM111-Nov-08 22:31
ScottM111-Nov-08 22:31 
AnswerRe: enabling xp_cmdshell Pin
Tomb42113-Nov-08 4:01
Tomb42113-Nov-08 4:01 
QuestionHOW TO PRINT THIS PATTERN Pin
saikirankatighar11-Nov-08 1:09
saikirankatighar11-Nov-08 1:09 

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.