I came up something that may work well for you.
As I understand it you need to update the data in the table, so I designed this with that in mind. I also did this in a hurry and on a limited set of data because I need to leave for the weekend. Please check my work carefully.
WHILE EXISTS...
If I understand what you need this may work. I created it as a stored procedure and call the sp from VB. You may be able to find a way to execute only the SQL. One of the main keys though is the server settings in the first comment.
create PROCEDURE dbo.csp_getUserApp2...
I found the end run. A long way around but it gets you there...
SELECt *
FROM OPENROWSET('SQLOLEDB','server';'id';'password',
'EXEC database.dbo.sp @parms') AS a
I found a utility that does what you need and much more. Including searching any object in the database for text strings, global search and replace and compiling the code.
It is called SQL Editor and you can find it at;
http://www.sqleditor.com/
Check it out and post back your thoughts.
Regards
I found a utility that does what you need and much more. Including searching any object in the database for text strings, global search and replace and compiling the code.
It is called SQL Editor and you can find it at;
http://www.sqleditor.com/
Check it out and post back your thoughts.
Regards
Bruce,
Here are some thoughts, As suggested before by roadkill150, make sure that the database connectivity dlls are the same on all machines. On your second e-mail, I agree it sounds like the report once deployed to the new machine is still trying to access the original database. I have...
Hi all,
I am receiving this error
"SQL0501N The cursor specified in a FETCH or CLOSE statement is not open. SQLSTATE=24501"
when running a query against a linked server in Sql Server 7.0. The linked server is an UDB (DB2) database linked with the OLE DB provider for ODBC. I do...
I am receiving this error
"SQL0501N The cursor specified in a FETCH or CLOSE statement is not open. SQLSTATE=24501"
when running a query against a linked server in Sql Server 7.0. The linked server is an UDB (DB2) database linked with the OLE DB provider for ODBC. I do not get...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.