Skip to main content
Filter by
Sorted by
Tagged with
-1 votes
0 answers
93 views

I have a stored procedure in Snowflake that joins data from two different databases, in the following form: CREATE OR REPLACE PROCEDURE database_1.schema_1.sp_test() RETURNS varchar AS BEGIN ...
Hollywood's user avatar
  • 344
0 votes
0 answers
31 views

I have a situation where I have a table in a SQL Server database, and this table has a trigger that, upon a user deleting a record, transfers that record to another database on the same server. ...
Mohammad Safyar's user avatar
-2 votes
1 answer
369 views

Suppose that I have [DataBase1].[dbo].[MyStoredProc]. It modifies [DataBase1].[dbo].[HarmlessTable] and [DataBase2].[dbo].[DangerousTable]. Notice that these are not in the same database. Consider a ...
J. Mini's user avatar
  • 1,746
0 votes
1 answer
38 views

I want to call procedures cross databases in PostgreSql I found dblink, but I'm trying to understand if it's also possible to call procedures with it If not, how can it be done?
El_L's user avatar
  • 355
0 votes
1 answer
289 views

I am working with a database that must not be modified by our code and another database on the same server set up specifically to fascilitate our needs in that regard. Some uses of the latter (let's ...
user1876058's user avatar
0 votes
1 answer
1k views

I have two database. Primary have a DDL triggers so i can't create memory optimized tables there. So i created secondary database and create there table with memory optimized on. Now, in procedure on ...
Boker's user avatar
  • 63
0 votes
1 answer
647 views

In Azure SQL Database, we use external tables to query data from another Azure SQL database. When filtering an external table by a DATETIME column, no rows are returned if the final digit of the ...
RobertT's user avatar
  • 136
0 votes
0 answers
661 views

I have a number of tables I wish to query with an indexed view, but those tables are spread across 3 different databases, however they are all on the same server. The documentation states that... The ...
Matt W's user avatar
  • 12.7k
3 votes
2 answers
8k views

We are looking at options for moving our on premise SQL Server(s) to Azure and trying to understand whether we will be able to run cross database queries should we have data residing across multiple ...
vavacious's user avatar
0 votes
1 answer
88 views

I have a system with two database servers I am working with: One of them is database first - a database managed by a legacy enterprise application and I don't have full control over changing the ...
ogg130's user avatar
  • 363
0 votes
2 answers
482 views

I have a database table which constantly gets updated. I am looking to query only the changes/additions that have been made on rows with a specific attribute in a column. e.g. get the rows which have ...
user5938020's user avatar
0 votes
1 answer
141 views

How can we select some data from a table in DB1 and insert into table in DB2 in Azure sql Server without using Azure Data Factory ? I have searched the internet and I found about using SSMS to ...
Shadow's user avatar
  • 21
0 votes
1 answer
137 views

I have in hands a few Azure SQL databases in which I want to perform analytics and visualization. My problem is that the data I want to use for visualization is stored in different databases, in the ...
Lina Silveira's user avatar
1 vote
1 answer
811 views

I have a local table which needs to reference a view from a remote database. Both models are defined in the same app. Now, I want to use django-import-export to import data from excel or save data ...
wipi's user avatar
  • 25
2 votes
1 answer
6k views

The NestJS documentation about Databases explains how to connect to MySQL using TypeORM and defining Entities. In my case, I have to connect to an MySQL server that has more than one database and I ...
Francesco Borzi's user avatar
0 votes
0 answers
302 views

I have an application (let's call it App1) whose home Database is Home1. I have been tasked to create a Stored Procedure (let's call it SP1) in Database Home2. Using a connection in the application ...
Karlomanio's user avatar
0 votes
1 answer
550 views

When creating applications in MSAccess (VBA) you can connect to multiple databases (mdb files) by simply creating links to them. Now I have rewritten the user interface in C/C++ and using ODBC to ...
Eugène Bindels's user avatar
3 votes
1 answer
9k views

I use SQL Server 2016. I need to find table name and column name across all databases on a server. DECLARE @SQL NVARCHAR(max) SET @SQL = STUFF(( SELECT ' UNION SELECT ' + quotename(...
Data Engineer's user avatar
4 votes
2 answers
27k views

Is it possible to join tables from different databases located in the same server, using PostgreSQL? If so, how?
Sylvan LE DEUNFF's user avatar
5 votes
1 answer
2k views

I have two SQLite databases containing tables I need to join using SQLalchemy. For reasons I can not combine all the tables into one SQLite database. I am using SQLalchemy ORM. I have not been able to ...
John van Dam's user avatar
0 votes
1 answer
238 views

How can I update a table on another database without giving a direct permissions on that table to the current database user? Without using Execute As Owner because it requires Trustworthy to be on ...
Hossam Elsagheer's user avatar
0 votes
1 answer
848 views

I'm working on a project, which is planned to use/manage 3 different databases [MySQL, SQL Server, Oracle] as the back-end. Now I have finished with my database design and everything I have set in ...
M M Nair's user avatar
3 votes
1 answer
2k views

I'm trying to do an INSERT from one database to another, eg: //called in database 'model' INSERT INTO login.Hospital (name, phonenumber) --EDIT, now Hospital VALUES ('Foo Bar', '555-555-5555'); I get ...
Anduril28's user avatar
  • 313
24 votes
3 answers
46k views

I need to copy data from one table to another. the two tables have almost the same structure, but are in different databases. i tried INSERT INTO db1.public.table2( id, name, adress, lat, ...
fabvys's user avatar
  • 433
2 votes
0 answers
1k views

I have a localhost Postgres 9.3 server running with multiple database. One of those is Travelingo_data. It has the extensions postgres_fdw and postgis installed. What I would like to do is to run a ...
Pim Verver's user avatar