sql-server

SQL Server queries beyond a certain character length are timing out

。_饼干妹妹 提交于 2021-02-11 16:33:44
问题 Recently I migrated an ETL platform from Python 2.7 to 3 and also updated its Docker image from Ubuntu 16.04 to 18.04. After the migration I started encountering some really strange behavior when trying to reflect SQL Server tables using SQLAlchemy with the pyodbc driver. Initially, I was seeing this error message: [08S01] [FreeTDS][SQL Server]Read from the server failed (20004) (SQLExecDirectW) I had updated SQLAlchemy from 0.9.8 to 1.3.10 (I hadn't touched pyodbc which was at 3.0.10) so I

SQL Server queries beyond a certain character length are timing out

谁说胖子不能爱 提交于 2021-02-11 16:31:51
问题 Recently I migrated an ETL platform from Python 2.7 to 3 and also updated its Docker image from Ubuntu 16.04 to 18.04. After the migration I started encountering some really strange behavior when trying to reflect SQL Server tables using SQLAlchemy with the pyodbc driver. Initially, I was seeing this error message: [08S01] [FreeTDS][SQL Server]Read from the server failed (20004) (SQLExecDirectW) I had updated SQLAlchemy from 0.9.8 to 1.3.10 (I hadn't touched pyodbc which was at 3.0.10) so I

SQL Server queries beyond a certain character length are timing out

送分小仙女□ 提交于 2021-02-11 16:31:31
问题 Recently I migrated an ETL platform from Python 2.7 to 3 and also updated its Docker image from Ubuntu 16.04 to 18.04. After the migration I started encountering some really strange behavior when trying to reflect SQL Server tables using SQLAlchemy with the pyodbc driver. Initially, I was seeing this error message: [08S01] [FreeTDS][SQL Server]Read from the server failed (20004) (SQLExecDirectW) I had updated SQLAlchemy from 0.9.8 to 1.3.10 (I hadn't touched pyodbc which was at 3.0.10) so I

SQL Server queries beyond a certain character length are timing out

淺唱寂寞╮ 提交于 2021-02-11 16:30:26
问题 Recently I migrated an ETL platform from Python 2.7 to 3 and also updated its Docker image from Ubuntu 16.04 to 18.04. After the migration I started encountering some really strange behavior when trying to reflect SQL Server tables using SQLAlchemy with the pyodbc driver. Initially, I was seeing this error message: [08S01] [FreeTDS][SQL Server]Read from the server failed (20004) (SQLExecDirectW) I had updated SQLAlchemy from 0.9.8 to 1.3.10 (I hadn't touched pyodbc which was at 3.0.10) so I

How to create a SQL function which splits comma separated value?

邮差的信 提交于 2021-02-11 16:27:55
问题 I want to create a function in SQL Server which takes a comma separated string a parameter, splits it and returns one value at a time. The basic idea here is to call that function from a query. Something like this. CREATE FUNCTION SPLIT_VALUE(@IN_CSV) RETURN VARCHAR AS -- LOGIC TO RETURN A SINGLE VALUE FROM CSV END I want to call this function from a stored procedure. CREATE PROCEDURE DEMO_PROC @IN_CSV VARCHAR(5000), @OUT VARCHAR(5000) OUTPUT AS BEGIN SELECT @OUT= CONCAT(A.VALUE1,B.VALUE2)

How to create a SQL function which splits comma separated value?

我与影子孤独终老i 提交于 2021-02-11 16:27:32
问题 I want to create a function in SQL Server which takes a comma separated string a parameter, splits it and returns one value at a time. The basic idea here is to call that function from a query. Something like this. CREATE FUNCTION SPLIT_VALUE(@IN_CSV) RETURN VARCHAR AS -- LOGIC TO RETURN A SINGLE VALUE FROM CSV END I want to call this function from a stored procedure. CREATE PROCEDURE DEMO_PROC @IN_CSV VARCHAR(5000), @OUT VARCHAR(5000) OUTPUT AS BEGIN SELECT @OUT= CONCAT(A.VALUE1,B.VALUE2)

Stored Procedure for inserting text field values that is created dynamically to the same id using asp.net C#

自作多情 提交于 2021-02-11 16:12:00
问题 Im new to ASP.net webforms.Im having a event page,in which i have a field to add sales channel heads mail id.when i click on the plus button i will be able to add more than one sales channels head. For inserting the form values into the database im using Stored procedure.and its inserting the records with one sales channel head email id. I want to know how i can write a stored procedure for inserting dynamic textbox values into sql server for the same record(That is the id and event name

SqlException: Login failed for user 'DOMAIN\MACHINENAME$' for SQL Server with .NET Core 2.1

谁都会走 提交于 2021-02-11 15:51:47
问题 Here is the contents of my connection string. It is an .NET Core 2.1 web application. When I run on my PC, it works fine. When I deploy it to IIS and run it, this error will occur. The detailed error is after the appsetting. "Testing2012Context": "Server=Server;Database=Testing2012;User ID=User;Password=Pwd;Trusted_Connection=False;MultipleActiveResultSets=true" Error: SqlException: Login failed for user 'DOMAIN\MACHINENAME$' for the SQL Server with .NET Core 2.1 ... System.Data.SqlClient

SqlException: Login failed for user 'DOMAIN\MACHINENAME$' for SQL Server with .NET Core 2.1

二次信任 提交于 2021-02-11 15:49:55
问题 Here is the contents of my connection string. It is an .NET Core 2.1 web application. When I run on my PC, it works fine. When I deploy it to IIS and run it, this error will occur. The detailed error is after the appsetting. "Testing2012Context": "Server=Server;Database=Testing2012;User ID=User;Password=Pwd;Trusted_Connection=False;MultipleActiveResultSets=true" Error: SqlException: Login failed for user 'DOMAIN\MACHINENAME$' for the SQL Server with .NET Core 2.1 ... System.Data.SqlClient

String_split function is not splitting delimiters in SQL Server 2019

落花浮王杯 提交于 2021-02-11 15:40:26
问题 I am trying to split the values in LOB column, while keeping the first column intact using the script below select * from [dbo].[ReqApp] where lob in (select value from string_split ('Staff;Wealth Management',';')) The query returns this: The desire outcome is this. I am using SQL Server 2019. Please provide suggestions on how to modify my script to get the desired outcome. 回答1: I think you want apply : select ra.id, s.value as lob from [dbo].[ReqApp] ra cross apply string_split(ra.lob, ';')