0
I have an SQL Server where we have several Databases and their schemas. So far so good, but I need access to a stored database.
I tried it : $this->db->query("cadunico.dbo.Cadunico_educacao_query"); but when I want to debug, nothing is returned.
0
I have an SQL Server where we have several Databases and their schemas. So far so good, but I need access to a stored database.
I tried it : $this->db->query("cadunico.dbo.Cadunico_educacao_query"); but when I want to debug, nothing is returned.
Browser other questions tagged sql sql-server
You are not signed in. Login or sign up in order to post.
Didn’t miss the EXECUTE statement? Stored procedures are usually triggered in the form: EXECUTE procedure name parameter(s)
– José Diz
Does the connection user have the right to view objects from another database? Is it just another database or another database? When there is another bank involved another connection is required, which needs to be created manually, and generates another object in $this, thus
$query = $this->meu_db_especial->query('EXECUTE CadUnico_Educacao_Consultar');
.– C. Bohok