简体   繁体   English

数据库连接正忙于其他命令的结果

[英]Database connection is busy with results from another command

What I am trying to do was to fetch data from an data API which I did using Python and the data that was received as response from the API, was stored in panda dataframe. 我想做的是从使用Python的数据API中获取数据,并将作为API响应收到的数据存储在panda数据框中。

Then those dataframes were converted to csv and the csv was pushed to Azure blob storage. 然后将这些数据帧转换为csv,然后将csv推送到Azure blob存储。

The same program post pushing the csv to Azure creates an external table on MS-SQL Server. 将csv推送到Azure的同一程序后,将在MS-SQL Server上创建一个外部表。

Post which the data is transferred to main table from the external table. 过帐将数据从外部表传输到主表。

This process is run in loop for multiple tables. 此过程针对多个表循环运行。 And the program breaks after few iterations. 经过几次迭代程序就中断了。

The code for one of the procedures is available at this Stackoverflow post. 可在此Stackoverflow帖子中找到其中一个过程的代码。 Move data from a external table to main table using procedure 使用过程将数据从外部表移动到主表

This image is a screenshot of the error I am getting. 此图像是我遇到的错误的屏幕截图。 http://prntscr.com/ocxmwu http://prntscr.com/ocxmwu

It got fixed by using 它通过使用固定

MARS_Connection=yes MARS_Connection =是

In the connection string for database 在数据库的连接字符串中

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 连接忙于另一个命令的结果,而 MARS 连接正在使用中 - Connection busy with results for another command, while MARS Connection is being used 使用python检查数据库连接是否繁忙 - Check if a database connection is busy using python DatabaseError: ('HY000', '[HY000] [Microsoft][ODBC SQL Server Driver]Connection is busy with results for another hstmt (0) (SQLExecDirectW)') - DatabaseError: ('HY000', '[HY000] [Microsoft][ODBC SQL Server Driver]Connection is busy with results for another hstmt (0) (SQLExecDirectW)') 在连接的数据库中创建表并从另一个连接检索数据 - Creating a table in a database of a connection and retrieving data from another connection 从另一个选择框中填充一个选择框并使用数据库连接 - populate a select box from a another select box and using database connection 从另一个命令调用的Django命令中的重定向会导致无关的换行符。 我怎样才能解决这个问题? - Redirection in Django command called from another command results in extraneous newlines. How can I fix this? 将不匹配的记录插入另一个数据库连接 - insert unmatched records to another database connection Python在另一个脚本上引用数据库连接 - Python referencing database connection on another script 来自SQLAlchemy的加密数据库连接 - Encrypted database connection from SQLAlchemy Django从数据库过滤结果 - Django filtering results from database
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM