Click here to Skip to main content
16,005,339 members
Home / Discussions / Database
   

Database

 
AnswerRe: Problem with MySQL stored procedure Pin
Shameel8-Oct-12 1:56
professionalShameel8-Oct-12 1:56 
GeneralRe: Problem with MySQL stored procedure Pin
Jassim Rahma8-Oct-12 6:54
Jassim Rahma8-Oct-12 6:54 
GeneralRe: Problem with MySQL stored procedure Pin
Jassim Rahma8-Oct-12 7:11
Jassim Rahma8-Oct-12 7:11 
Questionterminating SqlConnection.Open() call while connecting Pin
Danzy834-Oct-12 7:43
Danzy834-Oct-12 7:43 
AnswerRe: terminating SqlConnection.Open() call while connecting Pin
Shameel4-Oct-12 8:46
professionalShameel4-Oct-12 8:46 
AnswerRe: terminating SqlConnection.Open() call while connecting Pin
Eddy Vluggen4-Oct-12 9:10
professionalEddy Vluggen4-Oct-12 9:10 
GeneralRe: terminating SqlConnection.Open() call while connecting Pin
Danzy835-Oct-12 4:37
Danzy835-Oct-12 4:37 
GeneralRe: terminating SqlConnection.Open() call while connecting Pin
Eddy Vluggen5-Oct-12 4:57
professionalEddy Vluggen5-Oct-12 4:57 
Dan_K wrote:
I tried in my own way which works fine now. My BackgroundWorker thread creates a new thread and the created thread rather calls SqlConnection.Open(). When the cancel button is clicked, the BackgroundWorker thread aborts the thread opening the connection.

That's what the OpenAsync in 4.5 will do; open the query on a backgroundthread, polling it's status.

Dan_K wrote:
It works fine although I don't know if there could be any related problems.

Opening a connection can fail for multiple reasons, and exceptions aren't casted across the thread. You might want to make sure you have a good exception-handler in there; if you have the time, then it'd be mighty cool to have a "try connecting again" function - that way people won't have to relaunch the app after they found out that the database-server wasn't powered on.
Bastard Programmer from Hell Suspicious | :suss:
if you can't read my code, try converting it here[^]

QuestionSQL 2000 to 2008R2 Query Performance Pin
cjb1104-Oct-12 5:13
cjb1104-Oct-12 5:13 
AnswerRe: SQL 2000 to 2008R2 Query Performance Pin
Shameel4-Oct-12 9:01
professionalShameel4-Oct-12 9:01 
GeneralRe: SQL 2000 to 2008R2 Query Performance Pin
cjb1104-Oct-12 22:30
cjb1104-Oct-12 22:30 
AnswerExecution plan Pin
David Mujica4-Oct-12 10:25
David Mujica4-Oct-12 10:25 
GeneralRe: Execution plan Pin
cjb1104-Oct-12 20:58
cjb1104-Oct-12 20:58 
GeneralRe: Execution plan Pin
David Mujica8-Oct-12 8:54
David Mujica8-Oct-12 8:54 
GeneralRe: Execution plan Pin
cjb1108-Oct-12 23:41
cjb1108-Oct-12 23:41 
GeneralRe: Execution plan Pin
David Mujica9-Oct-12 3:12
David Mujica9-Oct-12 3:12 
GeneralRe: Execution plan Pin
cjb1109-Oct-12 4:34
cjb1109-Oct-12 4:34 
GeneralHigh CPU Pin
David Mujica9-Oct-12 9:13
David Mujica9-Oct-12 9:13 
GeneralRe: High CPU Pin
cjb11010-Oct-12 21:30
cjb11010-Oct-12 21:30 
GeneralRe: High CPU Pin
cjb11010-Oct-12 23:15
cjb11010-Oct-12 23:15 
QuestionMySQL Server timestamp changed! Pin
Jassim Rahma2-Oct-12 21:53
Jassim Rahma2-Oct-12 21:53 
AnswerRe: MySQL Server timestamp changed! Pin
Shameel3-Oct-12 4:05
professionalShameel3-Oct-12 4:05 
QuestionConnection String for Ms access 2010 to Windows 7 64 Bit Pin
Satyam Tripathi2-Oct-12 21:33
Satyam Tripathi2-Oct-12 21:33 
AnswerRe: Connection String for Ms access 2010 to Windows 7 64 Bit Pin
Richard MacCutchan2-Oct-12 22:00
mveRichard MacCutchan2-Oct-12 22:00 
QuestionBackup/Recover of row data in a multi-Company database Pin
DeDawg2-Oct-12 10:35
DeDawg2-Oct-12 10:35 

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.