DoCmd.OpenQuery("Actionable Query") "Property Not Found" - ms-access-2013

I have a code that executes DoCmd.OpenQuery Command and it that has been executing fine from last 3 years.
However, all of a sudden it has started failing with Error Message "Property Not Found". It randomly fails for anyone query from set of 5 queries. Further, it displays a message "Operation not allowed this time" if I try to execute the statement again.
These are Action Queries (Inserting data into SQL Server Linked Table),
within this query data is being inserted into SQL Server Linked table from SmartSheet Linked Table. I am surprised to see DoCmd.OpenQuery executes fine at one instance and fails at same statement at other instance. For your information I got the same error message when I tried to executed DoCmd.RunSQL.
Nothing has changed in ACCESS or in SQL Server.
E.g. Query
INSERT INTO dbo_SQL_Server_LinkedTable
SELECT Quarter,Site,Category, 'Commit',Comments
FROM Dbo_SmartSheet_LinkedTable;
Also, Just to mention that same set up works fine on Office 2016 32 bit. I cannot use this because Client Machine does not have Office 2016.
Thank you,
Irfan Khan

Related

Hw to get rid of ORA-01008

While trying to code in VS 2019 (making utility to select data from Oracle DB) I got stuck.
I created DataSet with TableAdapter to it Pic0
In a query I must enter value for APPLICATION_NUMBER field, and when I "Execute Query" everything works fine and I get result (see Pic1)Pic1
But when I try to "Preview Data", I got error "ORA-01008: not all variables bound"
(see Pic2)
Just for info: it is Oracle 9i I am trying to connect to, I am using .NET Framework Data Provider for OLE DB because if I use .NET Framework Data Provider for Oracle it says "Connections to this server version are no longer supported".
Would appreciate much any useful info.
I tried to replace :PARAM2 with '&PARAM2' but with no luck.

SSIS error with Oracle - Exception deserialzing the package "Value does not fall within the expected range"

I am taking an existing SQL Server 2016 SSIS package and trying to add an Execute SQL Task. I'm suspicious that the task itself isn't the problem, but just in case, I'll explain it.
It is a simple task to query the count in a table, using an existing OLE connection. I create a user variable, set the ResultSet to Single Row, and put in my statement: "SELECT COUNT(fld) FROM MY_TABLE" It shows no errors, but when I try to execute it, I get the error in the title. I can change it to a BEGIN SELECT COUNT(fld) FROM MY_TABLE; END; or add a GO on the 2nd line - it makes no difference. I can set the ResultSet to None, and it makes no difference. I can create a new OLE Connection and use that, and it makes no difference.
I'm pretty sure it has to do with the Oracle driver, because nothing in the paragraph above makes any sense. I can test the connection and it works, however, and when I use the existing connection, it is parameterized for the project.
So what next? Reinstall the Oracle drivers? Or is there anything less drastic?
I started a new project, make a new OLE connection, a new Execute SQL task, and call an Oracle procedure. It works just fine. It's just trying to edit an existing project that doesn't work. Sometimes.
Oh, I'm also using Visual Studio 2019.

SQL Server linked server error message

I have a SQL Server 2005 database server set up with a linked server to an Oracle database.
When I try to run a delete or update query, I get the following error message:
Cannot fetch a row using a bookmark from OLE DB provider "OraOLEDB.Oracle" for linked server
The same code was working a couple hours ago while I was testing it, but suddenly it's stopped working. Has anyone seen this before and know a way to fix it/troubleshoot further?
The same queries executed in SQL Developer directly in the DB work fine. (I know it's something with the linked server, but I'm not sure what)
Any pointers would be appreciated.
Use EXEC('query') in following way:
Suppose, your previous query look like this:
UPDATE [MyOraLinkedServer]..[XYZ].[TABLE]SET [DAT_COL] = cast (getdate() as smalldatetime)
Change the above query with following query:
declare #NewValue smalldatetimeset
#NewValue = cast(getdate() as smalldatetime)
exec( 'update XYZ.TABLE set DAT_COL = ?', #NewValue ) at MyOraLinkedServer
NOTE:To make this possible you have to enable RPC on the linked server
In this way, it may solve your problem......

ORA-03113 end of file communication

I am running a long query(having lot of subqueries) with rownum from VB6 which is giving ORA-03113 end of file on communication after approximately 1 minute. The query run fine from Toad. When the same query is run from VB6 without ROWNUM then query works fine. Also this is parameterised query, if i remove parameters and enter the values directly in query, then also query run fines from vb6.
This query was running fine few days back. Now it is not.
I tried increasing the connection timeout but still i am getting error after 1 minute. Could anyone suggest what could be the problem?
This often indicates that an ORA-00600 internal error has been thrown on the server. Check the alert log and trace files.
ORA-03113 on the client side is one of the oracle catch-all error that is thrown. You need to see if there is any additional error that accompany that error to give you an idea of the problem. The problem can be server side if there is an ORA-00600 that accompanies the ORA-03113 with the same sid/serial of the session. Check the server logs for both the ORA-03113 and any addition error. If there are no server side error, then the error is client side. Check for any network/connection related issue, but since the query works without the rownum network is probably not the cause. That means its probably a client side bug, now comes the need to enable client side tracing of the connection and see if you can generate a consistent issue and trace that you can then use to raise a case with oracle support to see if there is a bug you can get patch/fixed on the client.

Monitor and change SQL queries with SQL Server 2000

I have a database upgrade tool that is misbehaving. I would like to catch one of the queries it sends to the database and change it before it is executed.
The tool connects via ODBC.
The tool and the SQL Server are on the same Windows 2003 Server box.
Any ideas?
EDIT: (More info)
When the tool runs it dies on step 12 out of 100. It issues some bad SQL intended to create a view. I need to suppress the error message or correct the SQL before it is executed. I can't just create the view because the first thing it does it drop the view. Even then it would error because the view would already exist.
Certainly - use the SQL Profiler to intercept and record the query.
Very useful little tool that...

Resources