Viewing 15 posts - 2,041 through 2,055 (of 10,144 total)
Junglee_George (10/16/2015)
I need help in removing cursor in my table valued function with alternate code. Thanks in advance.
ALTER FUNCTION [dbo].[eufn_e5_eSM_SE_GetCurrentContentForContainer]
(
@containerSqlId SMALLINT,
@containerIncId INT
)
RETURNS @Results TABLE
(
itemSqlId SMALLINT,
itemIncId INT,
itemMetaTableSqlId SMALLINT,
itemMetaTableIncId INT
)
AS
BEGIN
---- Get static...
October 16, 2015 at 7:11 am
BL0B_EATER (10/16/2015)
GilaMonster (10/16/2015)
Eirikur Eiriksson (10/16/2015)
GilaMonster (10/15/2015)
Oh, and the bloody desktop booted clean to windows on the first try tonight and is behaving itself...Did you just upgrade to Windows 10?
Err, no.
win10...
October 16, 2015 at 3:21 am
_watching (10/16/2015)
Did you read Matt Miller's comment a few posts above? Try making the query SARGable, re test and post the results.
With all due respect, anyone is just as capable...
October 16, 2015 at 3:08 am
_watching (10/16/2015)
Did you read Matt Miller's comment a few posts above? Try making the query SARGable, re test and post the results.
With all due respect, anyone is just as capable...
October 16, 2015 at 2:34 am
Jeff Moden (10/15/2015)
October 16, 2015 at 2:14 am
fernando.arias (10/15/2015)
Though it doesnt delete the duplicates with the codes that you all have been so kind to give me.
This (below) doesn't result in deleting all the dups. I only...
October 15, 2015 at 8:05 am
DamianC (10/15/2015)
Just realised there are no indexes on this table so this is what I have:
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[E_DIM_POLICY_HOLDER](
[POLICY_HOLDER_BKEY] [varchar](255) NULL,
[POLICY_HOLDER_NAME] [varchar](255) NULL,
[POLICY_HOLDER_SHORTNAME] [char](255) NULL,
[POLICY_HOLDER_TYPE]...
October 15, 2015 at 7:13 am
DamianC (10/15/2015)
I have a relatively small table (around 400k records; 9 columns, all varchar(255)), that takes a long time to select from and I don't know why
Tried the following:
select *...
October 15, 2015 at 5:48 am
_watching (7/6/2014)
"Left" vs "Like" -- one should always use "Like" when possible where indexes are implemented because "Like" is not a function and therefore can utilize any indexes...
October 15, 2015 at 3:17 am
_watching (10/14/2015)
October 15, 2015 at 3:16 am
SELECT *
INTO #FernandosData
FROM (VALUES
(1, 44, 'Aaron Downey', '2008-2009', 'DET', '1974-08-27', 'Shelburne'),
(2, 44, 'Aaron Downey', '2001-2002', 'CHI', '1974-08-27', 'Shelburne'),
(3, 44, 'Aaron Downey', '2006-2007', 'MTL', '1974-08-27', 'Shelburne'),...
October 15, 2015 at 3:05 am
fernando.arias (10/15/2015)
I am having some problems coding with sql. Very new at this. I'm using sql server 2014.
Anyway, I want to clean my table which have seveal duplicates in the...
October 15, 2015 at 1:29 am
sushil_dwid (10/14/2015)
I can not create cluster because it has duplicate records
Clustered indexes don't have to be unique.
October 15, 2015 at 1:24 am
rs80 (10/14/2015)
But doesn't CROSS APPLY have a different purpose than CROSS JOIN?
CROSS APPLY dbo.InlineTableValuedFunction (parameters)
I guess might be the standard usage of APPLY. So replace the tablesource dbo.InlineTableValuedFunction with an...
October 14, 2015 at 9:50 am
rs80 (10/14/2015)
Based on what I'm trying to achieve, cross JOIN seems to be the correct way instead of cross APPLY. I'm referencing this explaination: http://www.sqlservercentral.com/Forums/Topic843768-8-1.aspx
Please...
October 14, 2015 at 9:22 am
Viewing 15 posts - 2,041 through 2,055 (of 10,144 total)