Viewing 15 posts - 1 through 15 (of 27 total)
It looks like you aren't using SQL Server 2019 but MySQL. May be post it in MySQL forums?
October 2, 2021 at 7:20 pm
Something like this should work ...
SELECT DISTINCT Age, ESPAC
,MIN(B2) OVER (PARTITION BY Age, ESPAC ORDER BY B2) as MIN_B2
,PERCENTILE_CONT(0.05)...
October 2, 2021 at 5:16 am
Hi Jeff,
Thanks for your note. Can you please reshare the link? It didn't come through in your post.
Here are two sample data sets that I made up:
Objective: Has Header. Ignore...
September 30, 2021 at 3:51 am
@jeff - Thanks for your advice.
@Ed - Thanks for your code snippet. It works. Here is what I had done.
declare @strPath varchar(2000);
declare @strDataFile varchar(2000);
declare @strCmd varchar(2000);
declare @scriptName varchar(100);
SET...
January 26, 2016 at 10:55 am
Hi Jeff - "W" is a FTP folder mounted as drive using a program called Webdrive. Thanks
January 22, 2016 at 1:59 pm
Think its my error. I was selecting db_datareader, db_datawriter, db_ddladmin under Owned Schemas section. I selected the same ones in Membership and its working as expected now. Thanks for your...
January 6, 2016 at 10:28 am
Thanks for your input. I tried adding "database roles db_datareader, db_datawriter and db_ddladmin instead of the individual permissions" to the adhoc database for the testuser. I could login just fine...
January 6, 2016 at 7:10 am
Thanks for your reply. Tried it but wont work. May be few more things needed? Please see below for my steps.
Steps:
0. Logged in as windows user (admin)
1. Create a login...
January 5, 2016 at 3:29 pm
Jeff Moden (12/21/2012)
murthyvs (12/11/2012)
Task - Create a stored procedure that reads an input string...
December 22, 2012 at 10:43 am
Results:
DelimitedSplit8K (Lynn Pettis)
SQL Server Execution Times:
CPU time = 280 ms, elapsed time = 133 ms.
PatternSplitCM (Dwain.C)
SQL Server Execution Times:
CPU time =...
December 18, 2012 at 11:34 pm
mtassin (12/17/2012)
murthyvs (12/16/2012)
sample:
3038469
3138470
The results were as expected...
December 18, 2012 at 11:18 pm
Hi dwain.c - I tried changing VARCHAR(8000) to VARCHAR(MAX). Ran the query with new pattern [0-9A-Za-z]. My input string is a very long string.
sample:
3038469
3138470
The results were as expected BUT the...
December 16, 2012 at 10:13 pm
Hi - this a nice method. didnt know this before.
I have created this function and using it in a stored proc..
CREATE FUNCTION [dbo].[FnXmlSplit](@input_string VARCHAR(max))
RETURNS @temptable TABLE (
...
December 16, 2012 at 10:03 pm
dwain.c (12/11/2012)
DECLARE @MyString VARCHAR(8000) =
'30;38469|31;38470|32;38471|33;38472|34;38473|35;38474|36;38475|37;38476|38;38477|'
SELECT col1=MAX(CASE ItemNumber%4 WHEN 1 THEN Item END)
,col2=MAX(CASE ItemNumber%4 WHEN 3 THEN Item END)
FROM PatternSplitCM(@MyString,...
December 14, 2012 at 9:26 pm
Hi - Quick question. Do you know why VARCHAR(MAX) doesnt work in this query?
It returns the following error:
Msg 240, Level 16, State 1, Line 110
Types don't match between the anchor...
December 14, 2012 at 9:09 pm
Viewing 15 posts - 1 through 15 (of 27 total)