336,739 questions
-3
votes
0
answers
21
views
For existing linked server The OLE DB provider "MSOLEDBSQL.19" has not been registered [closed]
After installing SSMS 22 and uninstalling SSMS 21, for an existing linked server (on SQL Server 2022 Express), I get an error message
The OLE DB provider "MSOLEDBSQL.19" has not been ...
0
votes
0
answers
26
views
Updating stats other than sp_updatestats [migrated]
I am hosting a SQL Server database at a customer and need to run sp_updatestats.
My user that has been assigned does have db_owner permissions but they cannot give me sysadmin permissions. From what I'...
-3
votes
0
answers
74
views
How can I join two tables on different columns? [duplicate]
I have two tables; the first one consists of clients' names and their id.
For example:
name surname1 519651
name surname2 496879
name surname3 848465
The second one consists of clients'...
-2
votes
0
answers
84
views
No CREATE statements found; After making changes unable to submit them [closed]
I don't know what's wrong, or if there's a configuration problem. I can execute queries and create new stored procedures, but I can't commit changes to existing stored procedures.I don't know what's ...
0
votes
1
answer
120
views
Precision loss when migrating data from SQL Server to Snowflake using ADF via CSV staging (but not with Direct Copy) [closed]
I’m migrating SQL Server tables to Snowflake using Azure Data Factory.
Direct Copy from SQL Server to Snowflake works, but I can’t use it because of the 100 MB row size limit. That forces me to take ...
Advice
1
vote
2
replies
48
views
Visualize SQL Server 'View' dependencies in a diagram
I am trying to create a visual overview / diagram for an old SQL Server database. I have already looked through similar questions and articles, but I couldn't find a program that suits the task.
I ...
0
votes
1
answer
102
views
Unique filtered index claims there is a duplicate, but there is not
I have an unique filtered index that is not allowing a PO to be inserted and there is no duplicate to be found.
How can I allow POs to be inserted that are unique when the index thinks they are ...
-1
votes
0
answers
50
views
Getting error while connecting SSIS service from remote server
When we are trying to connect the SSIS (Integration Services) from remote Server, we are getting below error. The SQL Server version is 2019.
We are able to connect with SSMS 18 version from remotely ...
0
votes
0
answers
53
views
Sub-connection to secure main connection
in our package that we use for connecting to database and perform stuff on it (like read table, insert data, ...) we have a special method that we pass to pandas.to_sql method to insert data to ...
0
votes
2
answers
156
views
How to pivot rows into a concatenated column [duplicate]
I have a query that outputs the below result:
users
file_consumed
John
orders
Martin
orders
Alice
orders
Bob
payments
Alex
payments
Julie
payments
John
deliveries
Bob
deliveries
I want to convert this ...
0
votes
1
answer
60
views
Azure Managed Instance Displaying Querying Transaction County each time a query is executed
Unless the query result displays in pretty much less than a second then I get this pop-up notification every single time I execute a query.
Is there any way to disable this?
I found under Tools -> ...
0
votes
0
answers
45
views
sqlcmd ODBC Driver 17 TCP Provider Error 0x2746 (Client unable to establish connection)
I’m running an Azure DevOps pipeline on an Ubuntu agent inside a container (rocker/verse:4.0.4).
The goal is to push data from R to SQL Server after refreshing some datasets. I installed the Microsoft ...
1
vote
1
answer
66
views
SQL agent Job is not working is not exporting all the records to flat file
I have created on SSIS(2019) package. The package is selecting the data from oracles tables in writing it to a flat file (CSV). The package is working perfectly in visual studio (SSIS designer). But ...
3
votes
2
answers
154
views
'EXEC' is not processing all of submitted SQL string [closed]
I am creating a varchar(max) string for submission to 'EXEC' and it is less than 1000 bytes long, yet the 'exec' errors out - seems to not get the entire string.
Below is the code that errors out:
...
1
vote
1
answer
175
views
Pivot JSON data for multiple rows
Is it possible to pivot OPENJSON data for multiple rows in T-SQL (on SQL Server 2022).
I have a case like below, it works fine for single ID (eg. CustID=111). Surely I can go this route processing ...