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
0answers
5 views

MS SQL query with wildcard and select dont work… but why? [migrated]

Im new in sql and i try to debug this: This work: (SELECT TRY_PARSE((SELECT CONVERT(nvarchar, '12.02.2021')) AS DATE USING 'en-gb')) This work too: SELECT * FROM Employees WHERE BirthDay LIKE (...
0
votes
0answers
21 views

Hyper-V Guest slow to query SQL vs Physical Machine

I have an internal database that runs off of a MS SQL server and the information is presented via IIS on the same server. This server runs in a Hyper-V environment along with a few work stations. ...
3
votes
2answers
154 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. ...
0
votes
1answer
45 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 ...
0
votes
0answers
7 views

MSSQL Revoke modification rights sysadmin

Is there a way in MSSQL to achieve following. User X can perform only CRUD operations on DB1 User X can Backup DB1 and Resotre it as DB2 User X can perform any operation on restored DB2
0
votes
1answer
167 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 ...
0
votes
1answer
178 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 ...
0
votes
0answers
23 views

Enabling OLE Automation procedure for MSSQL Version Engine version 14.00.3049.1.v1 in Amazon RDS

I understand that the OLE Automation procedure is disabled by default and is not editable for MSSQL Engine version 14.00.3049.1.v1 within Amazon RDS. The modifiable property is set as false. How can I ...
0
votes
0answers
34 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 ...
1
vote
1answer
406 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 ...
0
votes
0answers
15 views

Sqoop create dublice values importing from MSSQL

I am noticing an issue with a Sqoop import from MSSQL table, in an Oozie workflow. We have a prod cluster Ambari HDP-2.6.3.0, Oozie 4.2.0. and Sqoop 1.4.6. I am importing with the following comment:...
0
votes
0answers
12 views

Multiple Users unable to login in dotnet application

Our application(500MB) with 20,000 users is hosted on cloud with 8 GB RAM and 60 GB disk space.The OS is windows server 2012 R2, IIS 7.0, ASP.NET 3.5. MS-SQL Server 2016 is hosted on another server ...
0
votes
0answers
11 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?
0
votes
1answer
291 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 ...
2
votes
0answers
27 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 ...
0
votes
0answers
42 views

How can I see a reference on all tables in a SQL database that is for Aptean Made2Manage ERP software?

The ERP program Made2Manage works from a MS SQL server and has at least a hundred tables, all with cryptically short names and even shorter field names inside the tables. I can get access to the SQL ...
1
vote
1answer
471 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 ...
0
votes
0answers
110 views

Docker on Windows Server: Using Windows authentication

I need to run docker in production on Windows Server with Docker Windows containers. It is an .Net Framework app, so it's running on IIS. I need the containers to connect to MSSQL and MSMQ on the ...
0
votes
0answers
28 views

Debian MSSQL connection delay

Recently updated from Debian Stretch to Buster and now I have significant delay like 2-3 seconds while connect to the sql-server (all connections are local). Particularly php request looks like ...
1
vote
0answers
13 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 ...
0
votes
1answer
33 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 ...
0
votes
2answers
734 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 ...
0
votes
0answers
17 views

SSIS Package Failue

I'm running a package that gets data from a MySql Server and loads data into a SQL Server database. This all works in my development environment fine until I deploy it to the server. Drivers are ...
0
votes
1answer
859 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 the server name field, I get ...
1
vote
1answer
598 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('...
2
votes
1answer
628 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) ...
1
vote
1answer
19 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 ...
0
votes
1answer
940 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 ...
2
votes
1answer
6k 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 ...
1
vote
0answers
29 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 ...
1
vote
1answer
55 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 ...
1
vote
0answers
404 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,...
1
vote
0answers
249 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 ...
2
votes
0answers
25 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 ...
3
votes
1answer
708 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 ...
0
votes
0answers
1k 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 ...
1
vote
1answer
791 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 ...
1
vote
0answers
29 views

SQL in LOCAL SERVER GROUP via CMD

I already created a MSSQL LOCAL SERVER GROUP . question is , is there a way we can connect in LOCAL SERVER GROUP via CMD.
1
vote
0answers
61 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 -> ...
1
vote
1answer
2k 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 ...
2
votes
1answer
3k 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 ...
1
vote
1answer
3k 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 ...
1
vote
2answers
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... ...
0
votes
0answers
53 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, ...
2
votes
1answer
248 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 ...
0
votes
2answers
518 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 ...
-1
votes
1answer
2k 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 ...
0
votes
2answers
241 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 ...
1
vote
1answer
62 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 | ...
3
votes
1answer
3k 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 ...