Viewing 15 posts - 7,426 through 7,440 (of 8,753 total)
adonetok (8/22/2014)
If I put script like below, does it include all records?
SELECT
*
FROM @test-2 T
WHERE T.TEST_STRING in ('red', 'green') or T.TEST_STRING = ''
OR T.TEST_STRING...
August 22, 2014 at 9:05 am
Quick thought, two options, the developer should change the security setting to "Do not save sensitive..." or the second option, open the package in a text editor and remove the...
August 22, 2014 at 8:34 am
Quick thought, since you are (I think) on SQL 2012, why not use Extended Events?
๐
August 22, 2014 at 8:31 am
Quick thought, could this be caused by Cartesian Product, see the example?
๐
USE tempdb;
GO
DECLARE @TBL01 TABLE
(
T_ID INT NOT NULL
);
DECLARE @TBL02 TABLE
(
T_ID INT NOT...
August 22, 2014 at 8:26 am
adonetok (8/22/2014)
I need to search on varchar column including zero length string and null value.What is the best way to do it?
Something like this? (code from another reply adopted to...
August 22, 2014 at 8:05 am
If I remember correctly, there is a backward compatibility components option in the SQL install, seen this problem when trying to access earlier versions of SQL Server without having the...
August 22, 2014 at 3:56 am
Quick thought, are the SSMS versions 2008 or later and could the backward compatibility be missing?
๐
August 22, 2014 at 3:19 am
Quick thought, use the LIKE operator
๐
USE tempdb;
GO
DECLARE @test-2 TABLE
(
TEST_ID INT IDENTITY(1,1) NOT NULL PRIMARY KEY CLUSTERED
,TEST_STRING VARCHAR(50) ...
August 22, 2014 at 1:29 am
Quick question, are you using tabular SSAS/dax?
๐
August 22, 2014 at 12:04 am
bhavik.bk (8/21/2014)
was reading Distinct function on technet. There is a bit about VALUES FUNCTION. Anyone has idea how to use it? I tried using like distinct for a column,but...
August 21, 2014 at 11:17 pm
Quick though, first move towards an SQL set based solution is to change the word Loop to Group. Each Group starts with Coke/Fanta and ends in a HardDrink:doze:
๐
Here is an...
August 21, 2014 at 10:54 pm
After the second coffee I realised that the solution was in fact "current row and X following", here is a "X preceding and current row" improvement.
๐
use master
go
set nocount on
go
/**********************
** BUILD...
August 21, 2014 at 10:46 pm
Here is a little "first coffee in the morning" solution:doze:
It uses two instances of a Tally CTE to generate a set N{N+0,,,,N+x} for framing the x rows preceding and current...
August 21, 2014 at 10:31 pm
Edit: Oops, thought I was replying to this thread :w00t:
You are spot on, now I can reply which I could not do before your second post.:-)
๐
August 21, 2014 at 1:11 pm
Here is a quick suggestion, should result in more consistent plan (for better or worse)
๐
CREATE PROCEDURE [Quotation].[Get_Quotes_LH] ( @From DateTime = null, @To DateTime = null )
AS
BEGIN
...
August 21, 2014 at 10:41 am
Viewing 15 posts - 7,426 through 7,440 (of 8,753 total)