Buy Support
Incidents |
If you can't find your answer
in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us
private or confidential information: |
Click Here
|
If you can't
login and post questions or you are having trouble viewing forum posts:
Click Here
|
Callback
Support |
If you live in USA, UK, Canada, Australia or New
Zealand, you can leave us details on your question and request us to call you back and discuss
them with you personally (charges apply). |
Click Here
|
Buy Support
Incidents |
If you can't find your answer
in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us
private or confidential information: |
Click Here
|
|
SP_LASTINSERTID does not work with Remote Connector with v7 |
Author |
Message |
KofK |
|
Group | : Members |
Posts | : 43 |
Joined | : 2006-04-04 |
|
Profile |
|
Posted : 2006-11-03 04:37:13 |
SP_LASTINSERTID does not work with Remote Connector with QODBC V7. |
|
|
|
Tom |
|
Group | : Administrator |
Posts | : 5510 |
Joined | : 2006-02-17 |
|
Profile |
|
Posted : 2006-11-03 09:06:06 |
SP_LASTINSERTID only returns the value of the ListID or TxnID of the last INSERT operation if there has been no break in the QODBC connection or no other sp_ operations run. So there can be other reasons other than using the REMOTE CONNECTOR. Try running some test statements using VB Demo. |
|
|
|
KofK |
|
Group | : Members |
Posts | : 43 |
Joined | : 2006-04-04 |
|
Profile |
|
Posted : 2006-11-04 03:18:20 |
It seems to work from VB Demo but not from my VB6 program. It worked before I upgraded to QODBC v7 now it doesn't |
|
|
|
Tom |
|
Group | : Administrator |
Posts | : 5510 |
Joined | : 2006-02-17 |
|
Profile |
|
Posted : 2006-11-04 11:15:02 |
If it still works from VB Demo using QODBC v7, then you need to re-examine what your VB6 program is doing. You need to ask for SP_LASTINSERTID straight after the INSERT. |
|
|
|
|