sql-server-2016

ntext/text/image datatypes in SQL server 2016 CTP 3

久未见 提交于 2019-12-13 09:45:41
问题 I am using SQL server 2016 CTP 3, as per documentation, ntext/text/image datatypes are not supported but I tested this by creating new DB and all these datatype still works. Database compatibility mode is SQL server 2016. Am I missing something? 回答1: As per MSDN those data types are deprecated , not removed. They will be removed in a future version but will still be usable in 2016. So this is just a strong message not to use them in anything new. 来源: https://stackoverflow.com/questions

What is the best method for being able to design a report using SQL 2016?

≯℡__Kan透↙ 提交于 2019-12-13 09:44:41
问题 When I am trying to edit a report by clicking on the design option, an error message is displayed as: The report builder is not available. Please check the report builder URL in report setup. So is there anything new with reports in SQL 2016 or am I missing something. I am using SQL Server standard edition - 13.0.15700.28 回答1: Himanshu, SQL Server 2016 stopped this feature. till SQL server 2014 this functionality working name as clickOne Technology.Error" The report builder is not available.

Error in ORDER BY clause using CASE WHEN

三世轮回 提交于 2019-12-13 08:34:45
问题 I'm trying to allow ASC/DESC sort order to be defined by a parameter in a stored procedure. After lots of research, I found this approach (with simplification): SELECT * FROM MyTable ORDER BY CASE WHEN @reverse = 1 THEN MyColumn END DESC, CASE WHEN @reverse = 0 THEN MyColumn END ASC However, this code throws the following error: Msg 408, Level 16, State 1, Line 8 A constant expression was encountered in the ORDER BY list, position 2. Why is this happening? Clearly MyColumn isn't a constant -

ODBC connect to SQL Server 2016 with error Unknown data type -155

与世无争的帅哥 提交于 2019-12-13 04:09:44
问题 I've searched throughout the site and found the similar issue but with python not C#. Moreover, the workaround in that post (to avoid querying columns with DateTimeOffset datatype) did not help me since my application is slightly different. My MVC web application needs to list all tables in a SQL Server 2016 database dynamically. Then users can select 1 table from that list and display all columns and their values in a grid. I'm using ODBC with driver = {ODBC Driver 13 for SQL Server} to

Store big arrays (Lists) of data in XML format into SQL server 2016

試著忘記壹切 提交于 2019-12-13 03:33:54
问题 I need to save the result from several measurements generated in C#. The results are big Lists of data of different types: List<double, double> [20000 records] List<string, double, double> [20000 records] List<int, double, double> [20000 records] My first thought was to store these lists in XML format into a table (xml field). So, for each List I generate a XML file and insert it into the table. <MeasurementList> <item> <left_measurement>0.1264</left_measurement> <right_measurement>6.500<

How does impersonation and security permissions in tSQLt tests work?

馋奶兔 提交于 2019-12-13 03:07:55
问题 I have a tSQLt test which I expect to fail but it runs with success. When I run the code outside the procedure, it fails as expected, but when executing the test with Run, no error occurs. I have read the question tSQLt Testing SQL Server security permissions but the accepted answer does not solve my problem. My test looks like this: CREATE PROCEDURE TestSecurity.[test AFDK_Reader cannot read from AWS schema] AS BEGIN --EXEC tSQLt.ExpectException EXECUTE AS USER = 'AFDK_Reader' select * from

T-SQL/CLR function for deterministic encryption

纵然是瞬间 提交于 2019-12-13 00:48:06
问题 I have a table with User Agents Strings table with the following structure: UserAgentStringID INT UserAgentStringValue VARBINARY(8000) The [UserAgentStringValue] field is encrypted with symmetric key. The previous version of the table structure was: UserAgentStringID INT UserAgentStringValue NVARCHAR(4000) UserAgentStringHASH BINARY(32) and I have index on the [UserAgentStringHASH] column in order to optimized searchers. With the new format, such index is not efficient as the ENCRYPTION

SQL2016 Not able to create Column Master Key

这一生的挚爱 提交于 2019-12-12 22:09:34
问题 I just installed SQL 2016 Standard Edition because I wanted to use the 'Always Encrypted' feature. However, when I tried to created a Column Master Key under Security->Always Encrypted Keys->Column Master Key, I got the following error: productversion: 13.0.160.5, productlevel:RTM, edition:Standard Edition 64bit Any ideas? Thanks! 回答1: I was having the same issue. I fixed it by updating to Sql Server 2016 SP1 from Sql Server 2016. Previously @@version was: Microsoft SQL Server 2016 (RTM-GDR)

Special character in Sensitive SSIS Package Parameter String renders package invalid

…衆ロ難τιáo~ 提交于 2019-12-12 21:43:11
问题 I have a Sensitive String Parameter on an SSIS Package that is used to store a password for a remote server. However, the Job Agent throws an error whilst configuring the Package Parameters of that step when the string value contains a curly brace: Microsoft SQL Server Management Studio: Errors were detected in the command line arguments, please make sure all arguments are set correctly. (SqlManagerUI) The package works when it is directly executed in Visual Studio Data Tools, or when the {

DSN Less Connection (MS Access to SQL2016)

流过昼夜 提交于 2019-12-12 20:23:26
问题 I have this solution that works when I want to convert linked tables to a DSNLess Connection: http://www.accessmvp.com/djsteele/DSNLessLinks.html But it's always been an Access DB (2010 or 2013) to SQL2012. I now have a SQL2016 instance that I'm trying to make a DSNLess Connection to. So here is what I've tried: Running the code as given in the article.. This gives me an SSL Security Error. Changing the Connection to use: strConnectionString = "Provider=SQLNCLI11;" & _ "Server=" & ServerName