sql-server-2016

Encrypting data in SQL Server Azure database with separate key for each user's data

这一生的挚爱 提交于 2019-12-11 02:06:55
问题 I'm trying to create a service based on an Azure SQL Database backend. The service will be multi-tenant, and would contain highly sensitive information from multiple "clients" (potentially hundreds of thousands), that must be strictly isolated from one another and secured heavily against data leaks. "by design" Using so many individual databases would not be feasible, as there will be a lot of clients with very little information per client. I have looked into the transparent encryption

Kerberos Double Hop Delegation with ASP.NET Core (4.5.2)

一曲冷凌霜 提交于 2019-12-10 23:57:12
问题 Our dev, test and production environments all have similar setups using windows authentication and separate VMs for IIS 10 server and SQL Server 2016. Both VMs running Windows server 2016. All that remains is solving the double hop issue. I haven't been able to find up-to-date how-to guides with steps needed to get this working, any help / recent references would be appreciated? Here are some outdated how-to / checklists: https://msdn.microsoft.com/en-us/library/ms998355.aspx# https://blogs

Splitting time column into start time / end time columns

让人想犯罪 __ 提交于 2019-12-10 23:24:17
问题 I have a table that contains information regarding what they've done throughout the day. I need to get the start time/end time for each task. Currently I am able to pull the timestamp of each task, but I am hoping to create Start Times and End Times columns. Start time would be the timestamp from the previous row, and end time would be the timestamp from the current row. Is there any simple way to do this? Here is the query that I am currently using. select Timestamp, Sku, Station, Username,

Calculate percentage between two values

醉酒当歌 提交于 2019-12-10 19:30:59
问题 I have two columns that hold numbers for which I am trying to calculate the difference in % between and show the result in another column but the results seem to be wrong. This is the code in question. SELECT GenPar.ParameterValue AS ClaimType, COUNT(Submitted.ClaimNumber) AS SubmittedClaims, COUNT(ApprovalProvision.ClaimNumber) AS ApprovedClaims, COUNT(Declined.ClaimNumber) AS DeclinedClaims, COUNT(Pending.ClaimNumber) AS PendingClaims, ISNULL(SUM(SubmittedSum.SumInsured),0) AS

Increase validity of Always Encrypted Certificate

主宰稳场 提交于 2019-12-10 18:06:37
问题 I am using SQL Server's Always Encrypted feature to encrypt a few columns in the database using a master key that is protected by a self-signed certificate. The certificate is created using SQL 2016's Management Studio and always defaults to an expiration date that is one year ahead of the issue date - it is stored in the Windows Certificate Store for the current user. Is it possible to extend the validity of this certificate to a value greater than a year? More specifically, can a

SQL refusing connection in load test

旧城冷巷雨未停 提交于 2019-12-10 16:50:02
问题 I'm running a load test on my system. At a certain level of load, I start getting SQL errors in my log: System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Prprovidererror: 40 - Could not operrorconnection to SQL Server) ---

Always Encrypted with Azure Key Vault SSMS Purge Error

半城伤御伤魂 提交于 2019-12-10 10:23:44
问题 I'm trying to setup a new Always Encrypted database using Azure Key Vault (I have previously had this working). In the SSMS Always Encrypted Wizard I can select the table and column to encrypt but I have a problem after selecting "Azure Key Vault" as the key store provider. I login and the window briefly pops up the dropdown that correctly lists my Key Vault in Azure but then it immediately goes away and has a warning triangle with the word "Purge" next to it and a "Try Again" button.

SQL 2016 with R - Error HRESULT 0x80004004

蓝咒 提交于 2019-12-10 10:11:11
问题 I am working through a number of tutorials on using SQL and R. But when I am trying to Run the R Script to obtain the 'ggplot' library I am getting the following error Msg 39004, Level 16, State 20, Line 1 A 'R' script error occurred during execution of 'sp_execute_external_script' with HRESULT 0x80004004. Msg 39019, Level 16, State 1, Line 1 An external script error occurred: Error in library("ggplot2") : there is no package called 'ggplot2' Calls: source -> withVisible -> eval -> eval ->

Data profiling Task - custom Profile Request

旧时模样 提交于 2019-12-10 02:00:37
问题 Is there any option to create a custom Profile Request for SSIS Data Profiling Task? At the moment there are 5 standard profile requests under SSIS Data Profiling task: Column Null Ratio Profile Request Column Statistics Profile Request Column Length Distribution Profile Request Column Value Distribution Profile Request Candidate Key Profile Request I need to add another one (Custom one) to get summary of all numeric values. Thanks in advance for your helps. 回答1: Based on this Microsoft

SQL Server Always Encrypted with .NET Core not compatible

谁说胖子不能爱 提交于 2019-12-10 01:27:00
问题 I'm trying to use the Always Encrypted feature of SQL Server 2016 with .NET Core and seems like it can not be used (yet). Trying to import the Microsoft.SqlServer.Management.AlwaysEncrypted.AzureKeyVaultProvider from Nuget, I get an error stating it is not compatible: Package Microsoft.SqlServer.Management.AlwaysEncrypted.AzureKeyVaultProvider 1.0.201501028 is not compatible with netstandard1.6 (.NETStandard,Version=v1.6) Any ideas on how/where to get a compatible version? 回答1: Disclaimer: I