Viewing 15 posts - 3,136 through 3,150 (of 8,753 total)
JackTimber (9/27/2016)
Thanks Erirkur for the help.But i had miss quoted my question in previous screnario.
I thought there was something odd with desired results 😉
😎
Here is a solution to your problem...
September 27, 2016 at 4:09 am
Jeff Moden (9/26/2016)
September 27, 2016 at 2:53 am
rodjkidd (9/26/2016)
Row_number order by @@version - which I didn't know about.
I'm just to lazy to write "(SELECT NULL)" when @@VERSION does the same thing, that is tells the server to...
September 27, 2016 at 12:53 am
Quick questions, are you using SQLite or SQL Server? Can you post the DDL (create table ) scripts for the relevant tables, sample data as an insert statement and the...
September 27, 2016 at 12:47 am
Can you please post the DDL (create table) scripts for the relevant tables and sample data as an insert statement?
😎
September 27, 2016 at 12:38 am
The design and the desired results are somewhat odd as it requires a union of the reference data.
😎
USE TEEST;
GO
SET NOCOUNT ON;
--
IF OBJECT_ID(N'tempdb..#SourceData') IS NOT NULL DROP TABLE #SourceData;
CREATE TABLE #SourceData(
Name...
September 26, 2016 at 11:27 pm
jbalbo (9/26/2016)
Shouldn't I have "If_x0020_Other" somewhere in the cross apply?
The If_x0020_Other does not add a level as it is the sibling of the Delivery_x0020_Method node, therefore the query is the...
September 26, 2016 at 10:44 pm
jbalbo (9/26/2016)
I use :
CROSS APPLY Data.nodes('/Data/Delivery_x0020_Method/Service_x005F_x0020_Note_x005F_x0020_additions_Delivery_x0020_Method_Option') m(Node2)
WHERE ( Node2.value('Checked[1]',...
September 26, 2016 at 3:06 pm
Quick suggestion, use WinHttp.WinHttpRequest instead.
😎
Here is an example previously posted on this thread
CREATE function [dbo].[GetHttp]
(
@url varchar(8000)
)
returns varchar(8000)
WITH EXECUTE AS OWNER
as
BEGIN
...
September 26, 2016 at 2:39 pm
No, a session cannot deadlock itself and there are two different spids in there, spid="186" & spid="200".
😎
On the other hand, this looks like a multi threaded Entity Framework application...
September 26, 2016 at 1:56 pm
Luis Cazares (9/26/2016)
Different option:
SELECT '/' + LEFT( newpathx, CHARINDEX( '/', newpathx, CHARINDEX('/', newpathx) + 1))
FROM #t
CROSS APPLY( SELECT STUFF( pathx, 1, CHARINDEX('/', pathx), '') newpathx) x
WHERE pathx LIKE '%/%/%/%';
YAA (Yet...
September 26, 2016 at 1:07 pm
Luis Cazares (9/26/2016)
mw112009 (9/26/2016)
Sorry, but the first 2 entries in your solution should not be there. The output that I wanted will have exactly 3 "\" characters included.
I will...
September 26, 2016 at 11:41 am
Quick alternative to Luis's fine solution
😎
IF OBJECT_ID(N'tempdb..#t') IS NOT NULL DROP TABLE #t;
CREATE TABLE #t( pathx VARCHAR(400) ) ;
INSERT INTO #t ( pathx ) VALUES ( '/CaseRateAnalysis/');
INSERT INTO #t (...
September 26, 2016 at 11:18 am
Kaxtanhu (9/26/2016)
I've a column in a table with type NVARCHAR(50), with values that now "people" decided to turn it in an encrypted value. The only way that I...
September 26, 2016 at 3:22 am
Quick suggestion
😎
;WITH FIRST_NAME_DATA AS
(
SELECT
FN.C_ID
,FN.C01
FROM dbo.TestTbl1 ...
September 25, 2016 at 10:34 am
Viewing 15 posts - 3,136 through 3,150 (of 8,753 total)