SquirreL SQL Client Version 4.2.0
PostgreSQL 9.6
I can successfully open the database, go to PROCEDURE, and find my procedure. But ... I can't open source of the stored procedure.
Related
Using SSMS with linked servers. Have stored procedure in Express version that performs a table insert. When the stored procedure is run locally, the table insert works.
When I run an Agent Job executing the stored procedure from the linked Enterprise version, the table insert does not happen. Linked servers are set up properly - I have all permissions turned on for both target table and stored procedures.
i have created an application in which i m calling xsjs file from the browser and in that xsjs file i am calling a normal sql procedure.In that procedure after some validations i m calling R procedure. My requirement is to create that R procedure in the user schema when the user call the xsjs file.And call statement for that R procedure should be updated in sql procedure.So basically everytime a user calls xsjs file the R procedure should be dropped and created again in the user schema.I am using SAP hana studio latest version.
If you want to execute dynamic SQL in SAP HANA, you can use EXECUTE IMMEDIATE SQL command that will work in read and write procedures. You can build SQL query to create a new procedure in xsjs, send this query to a read and write procedure in which you have to use EXECUTE IMMEDIATE QUERY to get your procedure created and same can be done for deletion as well.
I want to execute a stored procedure using a SSIS package.
The output that generates from this stored procedure will also a script, so I want to execute that script output too. Can I schedule this SSIS package using SQL Server Agent?
You can execute a stored procedure in an Execute SQL Task in SSIS and send the output to a variable. You can then read the content of that variable in a second Execute SQL Task.
And yes, you can schedule the package to execute via a SQL Server Agent job. See this link for details.
Cheers -
Does dynamic SQL work in phpMyAdmin?
I tried the most basic examples from http://www.youtube.com/watch?v=MiAwOoelu9k
For instance, each of these throws an error (tried separately):
EXEC ('SELECT data FROM table')
EXEC sp_executesql N'SELECT data FROM table'
I found the answer in multiple Stackoverflow streams (listed below). It depends on the version of phpMyAdmin, which needs to be v3.5.2.2 or higher. This is because Dyanamic SQL is part of a STORED PROCEDURE. Older versions of phpMyAdmin allow you to CREATE a STORED PROCEDURE, but the ability to CALL a STORED PROCEDURE within phpMyAdmin requires version 3.5.2.2 or higher. (Source: is it possible to run a stored procedure from within phpmyadmin 3.4.10.1?)
For those using an older version of phpMyAdmin who need to use Dynamic SQL, an alternative is Workbench (http://www.mysql.com/products/workbench/)
For those using phpMyAdmin version 3.5.2.2 or higher, to CREATE and CALL a STORED PROCEDURE, here are posts of other users:
How to write a stored procedure using phpmyadmin and how to use it through php? How to write a stored procedure using phpmyadmin and how to use it through php?
MySQL procedure not getting created/working using phpmyadmin mysql procedure not getting created/working using phpmyadmin
How do I view my stored procedures in phpMyAdmin? How do I view my stored procedures in phpMyAdmin?
I created several stored procedures in phpmyadmin, how to call them using an sql query? I created several stored procedures in phpmyadmin, how to call them using an sql query?
I have a stored procedure that I'm positive of has no errors but I recently deleted the table it references but imported a backup with the same name exactly and same column settings (including identity) that the previous one had but now it doesn't work.
Is there any reason that having deleted the table but importing a new would break the stored procedure?
BTW: Running Microsoft SQL Server Express Edition w/ IIS.
you can try to recompile the stored procedure with:
exec sp_recompile YourProblemTableNameHere
this will recompile all procedures that use the YourProblemTableNameHere table. But that is just a guess based on the very limited info given.