![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello I am calling a stored procedure in a MSDE/SQLServer DB form within my Visual C++ 6.0 program along the lines CCommand<CAccessor<CdboMyAccessor>>::Open(m_sessio n, NULL); With DEFINE_COMMAND(CdboMyAccessor, _T("{ CALL dbo.MyProc; 1(?,?) }")) It all works sweet as, but it can take a while and I want to let the user abort it. Everything I've tried ends in tears. |
#3
| |||
| |||
|
|
Hi You can issue a KILL command on the SQL Server which will terminate the process. To do this you are going to need a separate thread. More information in books online. John "Mike Brown" <browna (AT) beer (DOT) com> wrote in message news:ea197978.0406302059.3f4b8524 (AT) posting (DOT) google.com... Hello I am calling a stored procedure in a MSDE/SQLServer DB form within my Visual C++ 6.0 program along the lines CCommand<CAccessor<CdboMyAccessor>>::Open(m_sessio n, NULL); With DEFINE_COMMAND(CdboMyAccessor, _T("{ CALL dbo.MyProc; 1(?,?) }")) It all works sweet as, but it can take a while and I want to let the user abort it. Everything I've tried ends in tears. |
#4
| |||
| |||
|
|
I have the command running in a separate thread. I dont want to kill the server, just the CALL. I have tried killing the thread and using .Abort(), and most other things I can think of, but everything results in my program crashing. "John Bell" <jbellnewsposts (AT) hotmail (DOT) com> wrote Hi You can issue a KILL command on the SQL Server which will terminate the process. To do this you are going to need a separate thread. More information in books online. John "Mike Brown" <browna (AT) beer (DOT) com> wrote in message news:ea197978.0406302059.3f4b8524 (AT) posting (DOT) google.com... Hello I am calling a stored procedure in a MSDE/SQLServer DB form within my Visual C++ 6.0 program along the lines CCommand<CAccessor<CdboMyAccessor>>::Open(m_sessio n, NULL); With DEFINE_COMMAND(CdboMyAccessor, _T("{ CALL dbo.MyProc; 1(?,?) }")) It all works sweet as, but it can take a while and I want to let the user abort it. Everything I've tried ends in tears. |
#5
| |||
| |||
|
|
I am not sure what you mean by killing the server. Look up the KILL command in books online. |
#6
| |||
| |||
|
|
I am calling a stored procedure in a MSDE/SQLServer DB form within my Visual C++ 6.0 program along the lines CCommand<CAccessor<CdboMyAccessor>>::Open(m_sessio n, NULL); With DEFINE_COMMAND(CdboMyAccessor, _T("{ CALL dbo.MyProc; 1(?,?) }")) It all works sweet as, but it can take a while and I want to let the user abort it. Everything I've tried ends in tears. |
#7
| |||
| |||
|
|
I have the command running in a separate thread. I dont want to kill the server, just the CALL. I have tried killing the thread and using .Abort(), and most other things I can think of, but everything results in my program crashing. "John Bell" <jbellnewsposts (AT) hotmail (DOT) com> wrote Hi You can issue a KILL command on the SQL Server which will terminate the process. To do this you are going to need a separate thread. More information in books online. |
![]() |
| Thread Tools | |
| Display Modes | |
| |