sql-server-2014

How to revoke login/connection access to SQL Server Analysis Services (SSAS)

谁说我不能喝 提交于 2020-01-17 06:14:26
问题 I've got a SQL Server Analysis Services Server 2014. I revoked the access of a user by going into the security tab of properties window of the SSAS server instance and then performing remove operation. Then I launched SQL Server Management Studio (SSMS) in the context of the user which I had removed by using Run as different user option from context menu. To my surprise I'm still able to connect to the SSAS server though that user( which has no access to the SSAS server) through windows

combining Geography data

Deadly 提交于 2020-01-17 05:09:11
问题 Using something like this works: DECLARE @Shape GEOGRAPHY = 'POLYGON EMPTY' SET @Shape.STSrid = 4326; SELECT @Shape = @Shape.STUnion([PolygonData]) FROM [Bla].[Polygon] SELECT @Shape.STAsText(); on a table like this: CREATE TABLE [Space].[Polygon]( [Id] [UNIQUEIDENTIFIER] NOT NULL, [PolygonData] [GEOGRAPHY] NULL) Unfortunately, it is very slow. I do not think I can index this so I wonder if there are alternative approaches that can be used to merge polygons to obtain just the outer points of

Default random 10 character string value for SQL Server column

假如想象 提交于 2020-01-16 03:27:12
问题 I have a column rndm in my table [guests]. Now, for the field Default value or Binding for the table, whenever a new row is inserted I want to automatically insert a 10-character random string into this column as the default value. This random string may not contain special characters, only characters from a-zA-Z0-9 . What is the best approach to achieve this? To be clear: I don't want to generate this random string in my .NET code, I want it to be generated within SQL Server. And I want to

error message: Format of the initialization string does not conform to specification starting at index 0

瘦欲@ 提交于 2020-01-14 22:33:40
问题 I searched SO but have not found a solution to my error. I am using VS 2013, and SQL Server 2014. Below is my connectionstring: using (SqlConnection sqlConnection = new SqlConnection("cnInvestTracker")) { } My web.config is: <connectionStrings> <add name="cnInvestTracker" connectionString="Data Source=localhost;Initial Catalog=InvestTracker;Integrated Security=True" providerName="System.Data.SqlClient" /> </connectionStrings> I am getting an error message when the code executes the using line

error message: Format of the initialization string does not conform to specification starting at index 0

旧巷老猫 提交于 2020-01-14 22:32:14
问题 I searched SO but have not found a solution to my error. I am using VS 2013, and SQL Server 2014. Below is my connectionstring: using (SqlConnection sqlConnection = new SqlConnection("cnInvestTracker")) { } My web.config is: <connectionStrings> <add name="cnInvestTracker" connectionString="Data Source=localhost;Initial Catalog=InvestTracker;Integrated Security=True" providerName="System.Data.SqlClient" /> </connectionStrings> I am getting an error message when the code executes the using line

SSIS and Informatica [closed]

做~自己de王妃 提交于 2020-01-12 11:45:02
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed last month . SQL SERVER 2014 SSIS has been released,we have already got lot of facilities in SQL SERVER 2012 SSIS.Can anybody compare SSIS 2014/SSIS2012 with Informatica Power center ? What are the additional fetures are there in the Informatica new version than SSIS 2012/2014? Or are

SSIS and Informatica [closed]

时光毁灭记忆、已成空白 提交于 2020-01-12 11:42:10
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed last month . SQL SERVER 2014 SSIS has been released,we have already got lot of facilities in SQL SERVER 2012 SSIS.Can anybody compare SSIS 2014/SSIS2012 with Informatica Power center ? What are the additional fetures are there in the Informatica new version than SSIS 2012/2014? Or are

SSIS and Informatica [closed]

点点圈 提交于 2020-01-12 11:38:11
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed last month . SQL SERVER 2014 SSIS has been released,we have already got lot of facilities in SQL SERVER 2012 SSIS.Can anybody compare SSIS 2014/SSIS2012 with Informatica Power center ? What are the additional fetures are there in the Informatica new version than SSIS 2012/2014? Or are

SQL function for converting string expression to proper value

非 Y 不嫁゛ 提交于 2020-01-07 10:00:21
问题 I need a function to convert mathematical expressions to a float value: create function dbo.ExpressionToValue ( @expression nvarchar(max) ) returns float as begin declare @result float --convertion codes return @result end expected usage: select dbo.ExpressionToValue('2+3') expected result: 5 回答1: An alternative hack is to leverage C# in the form of an assembly. C# does not have an eval function, but this too can be hacked. You can create an assembly function like using System.Data.DataTable

add dynamic placeholder columns to dynamically pivoted data

馋奶兔 提交于 2020-01-07 05:36:11
问题 This questions follows on from this one. The following Sql work fine: IF OBJECT_ID('tempdb..#Source') IS NOT NULL DROP TABLE #Source IF OBJECT_ID('tempdb..#Aim') IS NOT NULL DROP TABLE #Aim CREATE TABLE #Source ( ColumnName NVARCHAR(10), ColumnValue NVARCHAR(10), Id INT ) CREATE TABLE #Aim ( Id INT, Column1 NVARCHAR(10), Column2 NVARCHAR(10), Column3 NVARCHAR(10) ) INSERT INTO #Source (ColumnName, ColumnValue, Id) VALUES ('Column1', 'Value1', 1); INSERT INTO #Source (ColumnName, ColumnValue,