Viewing 15 posts - 1 through 15 (of 161 total)
if object_id('Rpt.fn_ParseJSON') is not null
drop function Rpt.fn_ParseJSON
GO
CREATE FUNCTION Rpt.fn_ParseJSON ( @JSON NVARCHAR(MAX))
--drop function Rpt.fn_ParseJSON
--created by R.Opeshansky
--created 10-11-2018
/*
Usage:
Select * from Rpt.fn_ParseJSON ('{ "Person":
...
November 10, 2022 at 8:25 pm
foreach ($provider in [System.Data.OleDb.OleDbEnumerator]::GetRootEnumerator())
{
if ($provider.GetValue(0) -like "Microsoft.ACE*")
{
$v = New-Object PSObject
...
November 10, 2022 at 8:20 pm
November 10, 2022 at 3:08 pm
C# code
=====================================
public void Main()
{
// TODO: Add...
November 10, 2022 at 2:18 pm
#Region "Imports"
Imports System
Imports System.IO
Imports System.Data
Imports System.Math
Imports System.Data.OleDb
Imports Microsoft.SqlServer.Dts.Runtime
#End Region
'ScriptMain is the entry point class of the script. Do not change the name, attributes,
'or parent of this...
November 10, 2022 at 2:05 pm
SET NOCOUNT ON
-- Specify the table here - this is the only place you need to modify.
DECLARE @SchemaName sysname SET @SchemaName = 'dbo'
DECLARE @TableName sysname SET @TableName = 'Cardinality'
-- Declare variables.
DECLARE @CrLf CHAR(2) SET @CrLf = CHAR(13) + CHAR(10)
DECLARE @Sql NVARCHAR(MAX) SET @Sql = ''
DECLARE @ColumnName sysname SET @ColumnName = ''
-- Show total number of rows in table.
SET @Sql = 'SELECT COUNT(*) AS "Row...
November 3, 2022 at 2:28 am
Dear Frederico, I attached Execution Plans here. Graphical plans are pretty complicated. Lots of icons. I just used SET STATISTICS PROFILE ON and saved the results as CSV. The stats...
January 10, 2020 at 3:53 pm
Jeffrey look at the very first block of code at the top of this thread. There are no variables. It's a scalar function that returns data for all the records...
January 10, 2020 at 3:10 am
Frederico your code works!
Apparently somebody pointed sources to linked server to PRODUCTION (Damn.. I think that's why i wasn't getting a match for five days!..) And that's why function results...
January 10, 2020 at 3:06 am
Jeffrey, your code is using parameter [@startDate]. Didn't really get you. I'm not looking for another "function" solution..
January 9, 2020 at 6:27 pm
Frederico,
I inserted the results from old code using function into [tmp_UsingFunction] table. I inserted results from your three versions into [tmp_FredericoX] tables and did EXCEPT to find differences. Here are...
January 9, 2020 at 6:20 pm
Frederico,/Jeffrey,
Thank you both guys so much. I will try your versions today. I just wanted to modify my version to make it work because I didn't really followed Frederico's logic...
January 7, 2020 at 3:45 pm
SCDECADE, Thank you very much for your code.
Old code returns 19554 records. Your code returns 1067 records. But it's an interesting approach. I'll see if maybe i can find how...
January 6, 2020 at 3:40 pm
I changed it to 1 DAY
but all tracking data seems to stay there and keeps accumulating . . .
I expected a cleanup....?
October 13, 2017 at 12:43 pm
Again guys...
THERE IS NO INSERT
Application calls this SELECT and loads the entire output into Memory.
SQL Plan is attached.
Both in .SQLPLAN and .XML format
September 11, 2017 at 4:44 pm
Viewing 15 posts - 1 through 15 (of 161 total)