Click here to Skip to main content
15,890,506 members
Home / Discussions / Database
   

Database

 
AnswerRe: Partial name Pin
Colin Angus Mackay5-Jan-06 11:01
Colin Angus Mackay5-Jan-06 11:01 
GeneralRe: Partial name Pin
gharry5-Jan-06 22:46
gharry5-Jan-06 22:46 
GeneralRe: Partial name Pin
Colin Angus Mackay6-Jan-06 1:45
Colin Angus Mackay6-Jan-06 1:45 
QuestionReading CSV file into DataGrid Pin
gharry5-Jan-06 5:32
gharry5-Jan-06 5:32 
QuestionProblem populating table Pin
TheJudeDude5-Jan-06 5:06
TheJudeDude5-Jan-06 5:06 
AnswerRe: Problem populating table Pin
Colin Angus Mackay5-Jan-06 6:45
Colin Angus Mackay5-Jan-06 6:45 
GeneralRe: Problem populating table Pin
TheJudeDude5-Jan-06 14:38
TheJudeDude5-Jan-06 14:38 
GeneralRe: Problem populating table Pin
Colin Angus Mackay5-Jan-06 20:45
Colin Angus Mackay5-Jan-06 20:45 
TheJudeDude wrote:
But isn't the connection open fron the form??


I don't know - Did you open it before calling this method? As a rule it is better not to keep a connection hanging around, it is better to create a new connection, open it, perform the data operations then close it again and let .NET's connection pooling handle how long the physical connection hangs around for. I recommend creating a method whose purpose is to create the connection, then call that method to get your connection.

In fact, and I know this is getting further from your original problem, I would recommend that you refactor all your data access in to its own class (at least) or assembly. This keeps all the data access code together and you can benefit from being able to easily reuse common methods (like opening a connection).

ColinMackay.net
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius
"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell

GeneralRe: Problem populating table Pin
TheJudeDude7-Jan-06 3:30
TheJudeDude7-Jan-06 3:30 
GeneralRe: Problem populating table Pin
Colin Angus Mackay7-Jan-06 3:42
Colin Angus Mackay7-Jan-06 3:42 
QuestionSQL query Pin
Deian5-Jan-06 4:33
Deian5-Jan-06 4:33 
AnswerRe: SQL query Pin
Colin Angus Mackay5-Jan-06 6:39
Colin Angus Mackay5-Jan-06 6:39 
GeneralRe: SQL query Pin
Deian5-Jan-06 7:32
Deian5-Jan-06 7:32 
QuestionRe: SQL query Pin
Deian6-Jan-06 5:22
Deian6-Jan-06 5:22 
QuestionJoin On Null?? Pin
tadhg885-Jan-06 3:05
tadhg885-Jan-06 3:05 
AnswerRe: Join On Null?? Pin
Colin Angus Mackay5-Jan-06 3:28
Colin Angus Mackay5-Jan-06 3:28 
GeneralRe: Join On Null?? Pin
tadhg885-Jan-06 4:42
tadhg885-Jan-06 4:42 
QuestionMSDE 2000 upgrade to SQL Server 2005 Developer Pin
Kevin McFarlane5-Jan-06 2:34
Kevin McFarlane5-Jan-06 2:34 
QuestionProblem with connection pooling Pin
nguyenvhn4-Jan-06 15:51
nguyenvhn4-Jan-06 15:51 
AnswerRe: Problem with connection pooling Pin
S. Akif Kamal4-Jan-06 18:21
S. Akif Kamal4-Jan-06 18:21 
GeneralRe: Problem with connection pooling Pin
nguyenvhn5-Jan-06 16:09
nguyenvhn5-Jan-06 16:09 
Questionkindly help me vb codes.. Pin
Estong Odpaga4-Jan-06 13:11
Estong Odpaga4-Jan-06 13:11 
AnswerRe: kindly help me vb codes.. Pin
ramani.r5-Jan-06 1:31
ramani.r5-Jan-06 1:31 
QuestionConnect to a CSV file Pin
gharry4-Jan-06 10:58
gharry4-Jan-06 10:58 
AnswerRe: Connect to a CSV file Pin
S Douglas4-Jan-06 19:32
professionalS Douglas4-Jan-06 19:32 

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.