Skip to main content

Questions tagged [ms-sql]

Use this tag for questions related to the MS SQL Server, the management relational database by Microsoft. Tag with [sql-server] the question related to each database server that implements SQL (Structured Query Language) and not related with the specific Microsoft one. Do not confuse it with [mysql], the Oracle's one. Tag questions specific to a version with [sql-server-2012], [sql-server-2008]...

Filter by
Sorted by
Tagged with
0 votes
0 answers
64 views

Azure SQL Server - Is ApplicationIntent=ReadOnly always honored?

I am using Azure SQL database instance (Business Critical, Read Scale-out enabled) and I would like to offload some of the traffic to Read-Only replicas. Does adding ApplicationIntent=ReadOnly to ...
Bojan Nedeljkovic's user avatar
0 votes
2 answers
1k views

How to connect to WSL Docker Container using localhost keyword

Is there some way to connect to a container, running inside WSL 2, using the keyword localhost instead of 127.0.0.1:port? To give more context, I have a Docker Compose to run a Microsoft SQL Server ...
Gabriel Ferreira's user avatar
0 votes
1 answer
231 views

Occasional empty folders in Object Explorer tree in Microsoft SQL Server Management Studio

I'm using Microsoft SQL Server 2022 Express and Microsoft SQL Server Management Studio 19.1 on a fresh Windows 11 Pro installation. From time to time, after connecting to my localhost\SQLEXPRESS ...
Miłosz's user avatar
1 vote
0 answers
210 views

How do I install MSSql command line tool without using sudo?

This question points to Microsoft's directions, which require you to use sudo apt-get I don't have sudo on the machine I need to use the tool from. how do i simply install the tool? How to connect to ...
Greg Dougherty's user avatar
0 votes
1 answer
365 views

How can I get MSSQL server working on RHEL 9 or CentOS 9?

Has anybody running MSSQL server on RHEL 9 or CentOS 9? I got this Error when trying to setup: Red Hat Enterprise Linux 9.2 (Plow) Capturing core dump and information to /var/opt/mssql/log... Hint: ...
Michael Siegmund's user avatar
0 votes
1 answer
59 views

How to stop excel from formating DATETIME to DATE

Im trying to insert DATETIME data from MSSQL database with SSIS into excel destination but upon inserting, excel formats it to DATE by its own.. Data in table are DATETIME. In Excel i tried to format ...
Tomas's user avatar
  • 1
0 votes
1 answer
39 views

SQL management studio actions through GUI usually giving errors when SQL commands aren't

This is a bit of a noob question: while using SQL server management studio many times when I'm performing actions such as, for example, changing data type (a non primary/foreign key text field from ...
Eirinn1975's user avatar
0 votes
0 answers
84 views

MSSql Database randomly not answering

We have a 32 Bit production machine that has MS SQL 2014 installed. 32 Bit is forced by twincat 2 running on it, (not compatible with 64 bit), thus the available ram is limited. Randomly, about twice ...
sharkyenergy's user avatar
0 votes
0 answers
312 views

SQL Server 2017 - High CPU usage after service start

For a long period now we have an issue after a reboot of the host OS or restart of SQL Server 2017 service that the sqlservr.exe process takes 100% CPU. It uses so much CPU it is almost impossible to ...
Sebazzz's user avatar
  • 171
6 votes
3 answers
3k views

How to mute windows beep sound in SSMS 18.5 everytime you tab in the table designer?

FOUND THE ISSUE: Seems it's not a known bug and I've reported it on their Uservoice. This seems to happen only on SSMS 18.3.1 onwards up to SSMS 18.5. On SSMS 18.2 and lower the issue does not happen. ...
DARKGuy's user avatar
  • 258
0 votes
1 answer
892 views

Connecting Azure Data Studio to Microsoft SQL Express fails with connection error: Invalid argument

I am running Microsoft SQL Express in a docker container on a Linux VM on my mac. In order to make the VM available from my mac, there is some port forwarding necessary, since Virtualbox uses NAT on ...
Human's user avatar
  • 583
0 votes
1 answer
2k views

Cannot connect to reporting services from SSMS MSSQL 2017?

I have installed MSSQL Server on localhost although when I try to open reporting services from ssms v18.3.1 I get the following error message: Unable to connect to the server at DOMAIN\SSRS. The ...
Johnny Adams's user avatar
0 votes
1 answer
3k views

MSSQL Reporting Server slow on first connection

I'm relatively new to the MSSQL world, and we have a newly installed reporting server that is in an availability group. The first time any report is executed, it seems to take about 30-40 seconds to ...
user2496011's user avatar
0 votes
0 answers
303 views

T-SQL Error Messages in Visual Studio 2019 not showing anymore

I would like some suggestions if this could be fixed you I need to fix/re-install Visual Studio. The error messages were visible a few days ago. I am using Visual Studio for SQL queries for two weeks ...
dotNetD's user avatar
1 vote
1 answer
4k views

Why am I unable to access Object Explorer in Microsoft SQL Server Management Studio?

For reference, I am using MS-SSMS version 14.0.17289.0 and I have Microsoft Visual Studio 2019 installed, on Windows 10. I am unable to locate or open Object Explorer. I have installed the Microsoft ...
Jack Roberts's user avatar
0 votes
0 answers
25 views

MS SQL use trigger to update field

I have a table with fields for length, width, and area. I want to use a trigger to calculate the area when a new record is inserted or an existing record is updated. How do I do this?
user2369812's user avatar
0 votes
1 answer
1k views

Trying to get a local MSSQL server for SQLTools plugin for vscode working under linux

I enrolled in a DBMS course in college, the professor has been explicitly using MySQL. The labs have Ubuntu and Windows on dual boot, but the Windows installation is old and really slow. I have been ...
Blaine's user avatar
  • 172
2 votes
0 answers
78 views

Restore an SQL database from FTP to Google Cloud

I have an FTP site from a third-party vendor that updates with weekly .bak files and daily .diff files for a Microsoft SQL 2016 database. I do not have access to the original database. My eventual ...
user2895444's user avatar
1 vote
1 answer
4k views

Can I add Maintenance Plan in SQL Server for Linux?

I am using SQL Server 2017 for Linux, and the Maintenance Plans are missing from the Management menu. Does anyone knows if the Maintenance Plans are available for SQL Server for Linux? I can't find ...
theofilis's user avatar
  • 113
1 vote
0 answers
35 views

Getting randomly non English character in SQL

Getting some random non English character when I execute DBCC CHECKCONSTRAINTS WITH ALL_CONSTRAINTS in MS SQL database. Some time it's work or some time not. Some errors are : The multi-part ...
user3805429's user avatar
0 votes
1 answer
182 views

Connection to MSSQL timed out

from a Kubernetes Linux pod, i am trying to establish a MSSQL connection to a Windows Server on Port 1433. I have full admin access to all the machines. I already made sure that the SQL Server ...
xola's user avatar
  • 111
0 votes
3 answers
2k views

Force SQL Server 2019/Ubunti to use ipv4 instead of ipv6

We are testing usability of Microsoft's SQL Server on Linux servers for our internal products, and we ran into a bump during config. We are trying to setup and configure SQLServer 2019 (preview) and ...
mmix's user avatar
  • 111
0 votes
1 answer
2k views

not able to connect to localhost in MS SQL Management Studio 2017

I have installed MS SQL Server Management Studio 2017. After installing, when I try to connect to the local host by typing either "127.0.0.1" or "local" or "." (dot) in ...
Divyang Mehta's user avatar
1 vote
1 answer
2k views

How can sql server log space used be more than 100 percent?

We are seeing application errors (exceptions) that report the transaction log "is full due to ACTIVE_TRANSACTION". There are no pending transactions reported by DBCC OPENTRAN. Running DBCC SQLPERF('...
Gary's user avatar
  • 11
2 votes
1 answer
2k views

MS SQL on Ubuntu 18.04 configuration setup not working as expected

I am trying to install MS SQL server on Ubuntu 18.04. Everything went fine until I ran sudo /opt/mssql/bin/mssql-conf setup First I got: usermod: no changes Choose an edition of SQL Server: 1) ...
Laika_Boss's user avatar
1 vote
1 answer
26 views

SQL query to find 3 consective records and rspective data

Need to pick the data where values are >=0.7 and appearing at least 3 consecutive times then hourly recorded per day Hours 00 0100 0200 0300 0400 0500 ValueNumber .7 ...
Imran's user avatar
  • 11
0 votes
1 answer
3k views

MS ODBC SQL Driver 13 version issue, How do I get/install a newer version?

It simply seems that MS has not updated their download site to have the most up to date version of the version 13 ODBC driver. When I download the MS SQL ODBC driver 13 from the Microsoft site, it ...
GraspSoftwareCorp's user avatar
9 votes
1 answer
28k views

Additional User Account, Windows Authentication in SQL Server Management Studio

I am transitioning my work laptop to a coworker (who we'll call Mary Smith) who is taking my place on my team as I move on to other things. One of the tools we use is Microsoft SQL Server Management ...
James Dunn's user avatar
1 vote
0 answers
49 views

Intermittent issues connecting to a SQL CE Database

I'm trying to work on a local development copy of a website in Visual Studio 2017. This website uses a SQL CE database in an .MDF file, and I run the site locally through VS using IIS Express. When I ...
David Z's user avatar
  • 11
1 vote
1 answer
108 views

PHP 7.0 round function and MsSQL módule

I've a Debian server that acts as web server. Recently I've needed to install the MsSQL module to use a Microsft SQL Server as source, but after install it I've noticed that php round function has ...
Daniel Carrasco's user avatar
1 vote
0 answers
794 views

Can't connect SQL Server when EXE is run from network share

After last update of Windows 10, one program is not connecting to SQL Server when its executable is started from network share (e.g. \\192.168.1.2\share\the_tool.exe). When it is copied to local HDD,...
i486's user avatar
  • 155
1 vote
0 answers
702 views

Security concerns with users created for R scripts in SQL Server

As discussed in this question and this MSDN forum post, installing R with a Microsoft SQL Server 2017 installation (possibly other versions) creates 20 users in the SQLRUserGroup. As explained in the ...
Talset's user avatar
  • 11
2 votes
0 answers
30 views

Anyone have success configured MySQL linked servers on SQL Server 2017 for Linux?

I am trying to figure out if SQL Server 2017 for Linux supports linked servers for MySQL? I know its possible on Windows OS if ODBC/OLEDB drivers are configured on the same server as SQL, but ...
tfrancois's user avatar
3 votes
1 answer
1k views

PowerShell SqlServer module only imports functions and aliases, but no cmdlets

I am trying to use the SqlServer PowerShell module, available on the PowerShell Gallery. After installing, either to -Scope CurrentUser or in an admin session, doing Import-Module SqlServer only ...
NReilingh's user avatar
  • 5,805
1 vote
0 answers
2k views

[unixODBC][Driver Manager]Can't open lib '/opt/microsoft/msodbcsql17/lib64/libmsodbcsql-17.1.so.0.1

I am trying to run windows command line program that uses ODBC to connect to a remote MSSQL server. It works fine in Windows 10. Now I want to run the same program in Linux using Wine. I have ...
Jake He's user avatar
  • 111
1 vote
1 answer
3k views

How to reduce the database size of MS SQL server

I have a website that runs on MS SQL Server 2014 Enterprise with two clustered virtual machines and AlwaysOn. A database backup is created each night and the size is now 20GB. On my laptop, I also ...
curious1's user avatar
  • 161
1 vote
0 answers
133 views

Can I save 'Outlining in my MS SQL Query

When writing a query, I will often use Cross Apply, or multiple sub queries. To make the query easy to read I realized you can outline parts of the query, and then hide them. Using: Edit -> ...
PeterH's user avatar
  • 7,505
2 votes
1 answer
4k views

mssql error: The evaluation period has expired

I am trying to install MSSQL on Centos. I followed the article here. I typed the following command to configure mssql to set a password etc. sudo /opt/mssql/bin/mssql-conf setup I got the following ...
david83's user avatar
  • 53
3 votes
1 answer
12k views

Dbeaver export result set to multiple CSV files

I'm using the latest version of DBeaver on Mac, querying against a remote MSSQL database and I've got a query that results in 24 million rows. I need to get this data into CSV format, but rather than ...
jaydel's user avatar
  • 131
2 votes
1 answer
5k views

Connect to MS SQL Server on Arch Linux

I installed on my arch machine mssql-server and mssql-tools via yaourt. I started the server from /opt/mssql/bin/sqlservr and tried to connect with my credentials, but with no luck. I found this ...
Vasileios Pallas's user avatar
1 vote
2 answers
2k views

Unable to Install MSSQL Server on CentOS 7

I was following along with: Install SQL Server on Red Hat Enterprise Linux and I ran into the following error at the configuration portion: Setting system administrator (SA) account password... ...
Ambiguities's user avatar
0 votes
0 answers
69 views

Last Week Job Schedule

I'm looking for a way to scheduled MSSQL jobs to run only on the last week of the month? I see the current options are daily,weekly or month, When selecting monthly, you can select the day number, ...
Wessel's user avatar
  • 502
2 votes
1 answer
1k views

In Microsoft SQL Server, how can I disable "X rows affected" at the end of my output?

I'm querying a database in Microsoft SQL Server and writing the output to a csv file. When importing the outputdata into another program i get an error because the last line of my output file ...
user3359820's user avatar
0 votes
2 answers
1k views

Edit multiple rows in MSSQL ".rpt" file

I have a report from MSSQL, that has been exported to an .rpt format. I have installed the necessary addons to open and edit the file in excel, however one such report has come out strangely. For ...
Ben's user avatar
  • 1,276
-1 votes
1 answer
5k views

How to troubleshoot Microsoft VBScript runtime error '800a0046' Permission denied?

The line the error formulates from is: Set newfolder = filesys.CreateFolder(Server.MapPath(newfolderpath)). Here is the code below: If Request.Form("add")= "true" then Dim prop, user, pwd, dir ...
user3597763's user avatar
0 votes
2 answers
548 views

Network unreachable - MSSQL

I am trying to connect remotely to a sql server 2008. I am able to make the connection with the local ip address (I am doing so from terminal in a linux os connected to the local network, using ...
Gabriel Ilharco's user avatar
1 vote
1 answer
67 views

MS SQL Server query which split to other table columns

I have two tables: table1: Manager | USER --------+------ John | Tom John | David John | Marry James | Henry table2: Now is empty, but must be like this: Manager | User1 | User2 | ...
Sarunas Radzevicius's user avatar
3 votes
1 answer
7k views

Convert DateTime with Decimal Time Longer Than 3 digits?

I'm trying to import some data from CSV into MS SQL 2008 Server. I'm using PowerShell's Invoke-SQL, and an SQL script that utilizes BULK INSERT. CSV fields get imported as VarChars and I'm trying to ...
Ƭᴇcʜιᴇ007's user avatar
5 votes
1 answer
3k views

Compiling PHP 7 with mssql support

So I'm trying to switch to PHP 7. Unfortunately I'm in need to connect to an MSSQL Server so I'll need the dblib driver for pdo. With PHP5 you could ust the php5-sybase Package. So I tried to do it ...
Shaeldon's user avatar
  • 101
0 votes
1 answer
2k views

Squid reverse proxy, DMZ, how to forward any non-http request

I'm actually facing an issue with some network-protocol related problem. I have my own domain, a owned DMZ, and externals users. In my DMZ, I have a reverse proxy who handle HTTP connection very well....
Kaël's user avatar
  • 191