Synapse Python/Spark Notebook code with SQL to query data from linked service to SQL Server
In Synpase, I have linked service to a SQL Server database. I'm looking for a sample notebook code, either in python or spark, that I can run a complex SQL qery within this code to get data from multiple SQL Server tables, put the rsults in a dataframe…
Using SSDT on a build server
I need to use SSDT on my build server. What exactly do need to install to get it working? I have a docker image that does the builds. It's based on mcr.microsoft.com/dotnet/framework/sdk:4.8-20230110-windowsservercore-ltsc2019Ideally, it would be nice…
how to fix this issue Msg 64, Level 20, State 0, Line 114 A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - The specified network name is no longer available.)
When I am trying to run two queries on same database but in different windows one query is doing deletion of a table from particular date ranges along with roll back mechanism and another query is doing fetching data by joining different tables based on…
Row-level security in SQL server
In this scenario, I seek assistance in implementing row-level permissions for a table named 'user' with columns 'username' and 'role'. The objective is to establish a security model where access to individual rows is controlled based on the role assigned…
VIEW SERVER STATE vs DB role for DMV on master
Hi, I have a logging procedure that reads from the two tables on master: sys.dm_exec_connections sys.dm_exec_sessions I had to assign permissions to a group for correct execution: GRANT VIEW SERVER STATE TO [domain\mygroup]; but I didn't want…
SQL server backup in a 2019 VM to s3 using backup URL
Hi I have set up a Windows Server 2019 VM with SQL server 2016. I want to take the backup of SQL server in AWS S3. It should have monitoring and auditing capability and cost effective and secure. I have looked at below…
GDR upgrade path question
I have a SQL Server updated to version 15.0.4326.1, which is on the GDR path but on a GDR + CU version. Can I install the next update on the GDR path to go to version 15.0.2110.4 that is GDR only, or do I have to install the next GDR + CU update?
Tail log backup
Are tail log backups supported only in Full Recovery model?
How to Fix Microsoft.ACE.OLEDB.12.0 provider is not registered on the local machine
I am doing a Import Data from an Excel spreadsheet to a table. I get the following message : Microsoft.ACE.OLEDB.12.0 provider is not registered on the local machine. What will resolve this error?
Use SSMA for DB2 to Migrate AIX DB2 11.5.9 to SQL Server 2019
Is it possible to use the SSMA tool to migrate an AIX DB2 (Big endian) to Windows SQL Server 2019 (little endian)?
TITLE: Microsoft SQL Server 2014 Setup ------------------------------ The following error has occurred: An error occurred during the installation of assembly 'Microsoft.VC80.CRT,version="8.0.50727.6229",publicKeyToken="1fc8b3b9a1e18e3b",processorArchite
i am unable to download it , i am gettimg an error
SQL 2022 Install Database Engine Services Fail
Hello, I'm trying to install SQL 2022 for a class. Unfortunately, I'm running into an error. I've tried restarting, and I've also uninstalled/re-installed SQL but I get the same error each time. I'm on an M1 Max Macbook Pro running Sonoma 14.4.1. Using…
Migrate On prem to Azure Sql Managed instance
I am planning to migrate the on-premises SQL server on virtual machines to an Azure SQL managed instance. I am looking for a migration plan that can help with the above migration, which will list the compatibility and options to move the data without…
How can we fix OLE Db or ODBC error[datasource.error]microsoft sql:A transport-level error has occurred when receiving results from the server.(provider:TCP provider,error:o an existing connection was forcibly closed by the remote host in azure sql server
How can we fix OLE Db or ODBC error[datasource.error]microsoft sql:A transport-level error has occurred when receiving results from the server.(provider:TCP provider,error:o an existing connection was forcibly closed by the remote host in azure sql…
Can i use SQL 2022 Express edition in production environment for my small business?
Can i use SQL 2022 Express edition in production environment for my small business?
SQL SERVER IMPORT AND EXPORT WIZARD
I clicked on the next button to import my data from excel and it brings me this error message; TITLE: SQL Server Import and Export Wizard The operation could not be completed. ADDITIONAL INFORMATION: The 'Microsoft.ACE.OLEDB.16.0' provider is not…
Ubuntu Jammy ODBC DRIVER update error
How do i resolve this error: sudo apt update Get:4 https://packages.microsoft.com/ubuntu/22.04/prod jammy InRelease Err:4 https://packages.microsoft.com/ubuntu/22.04/prod jammy InRelease Clearsigned file isn't valid, got 'NOSPLIT' (does the network…
Syntax to PRINT the row counts using Dynamic SQL?
Hello, what would be the syntax to PRINT the row counts using Dynamic SQL (in my case here need to get the row counts via a Linked Server View) I would like to have this as a step in a SQL Agent job which after it runs it PRINTs the row counts in it's…
Unable to import excel workbook into MSSQ.
I created a localdb through cmd via a youtube tutorial which allowed me to connect. i am in the mssql application and created my first database. I am wanting to import excel workbooks but the wizard is showing the below error message here, i checked…
How to update sequence of person if he has relative
Currently RelativeID is blank in database. Ho I can update the RelativeID from sequence. If any Empid has relative then should update the unique RelativeID starting from 1. If someone has two relative then RelativeID will be 1 and 2. If someone has three…