Forum Discussion
FedeBrusa
1 year agoNew Member
visualizacion
tengo un ERP con 4 bases de datos donde 1 de ellas es la madre de las demas, es decir, en base a la primera, se armaron las otras. a partir de power bi, tengo una consulta sql armada por el propio ...
AmiraBedh
1 year agoSuper User
I think that your issue can be related tothe wrong permissions set for executing the function so you need to check if the user running the query has EXECUTE permissions on the function.
Even though the databases have the same structure, the function may not be present in all of them or may be defined differently. Try running in all databases to confirm its existence.
SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE ROUTINE_NAME = 'YourFunctionName'
Also, try to check :
- If the function relies on collation-sensitive operations (like comparing strings), differences in collation settings between databases could cause failures.
- If the function references objects in another database or uses a linked server, verify that these dependencies exist and are accessible in all databases.