Viewing 15 posts - 106 through 120 (of 4,820 total)
I'm not aware of any settings related to the nature of the OLEDB connection, but you can always search Google and see what you can or can't find, ... and...
Steve (aka sgmunson) π π π
Rent Servers for Income (picks and shovels strategy)
August 12, 2020 at 1:16 am
FYI, the IIF function became available in SQL Server 2012.Β Β I don't recall hearing much about it back then, so I would imagine it may not be all that well...
Steve (aka sgmunson) π π π
Rent Servers for Income (picks and shovels strategy)
August 10, 2020 at 1:59 am
Apparently, I was unaware there was such a version of SSMS that can debug a sproc...Β which version is that?
Steve (aka sgmunson) π π π
Rent Servers for Income (picks and shovels strategy)
August 10, 2020 at 1:55 am
Why not just UNPIVOT, as shown here in a CTE:
Both work.Β The tally based is probably more efficient depending on scale.Β It didn't occur to use a tally...
Steve (aka sgmunson) π π π
Rent Servers for Income (picks and shovels strategy)
August 7, 2020 at 6:18 pm
Why not just UNPIVOT, as shown here in a CTE:
CREATE TABLE dbo.ProductOrders (
ProductCategory varchar(5) NULL,
ProductSubCategory varchar(5) NULL,
[Total Orders Placed in North America] int NULL,
[Total Orders Placed in...
Steve (aka sgmunson) π π π
Rent Servers for Income (picks and shovels strategy)
August 7, 2020 at 2:28 pm
I can't really help with what VS does or doesn't do...Β Β but frankly, why not learn how to debug your sproc the way it's been done for many years...Β Β Look...
Steve (aka sgmunson) π π π
Rent Servers for Income (picks and shovels strategy)
August 7, 2020 at 1:43 pm
Yes, LEAD and LAG were indeed introduced in SQL 2012.Β Β And I agree with Brian here regarding "which approach can I support?".Β Β That's got to be the number one consideration.Β Β ...
Steve (aka sgmunson) π π π
Rent Servers for Income (picks and shovels strategy)
August 6, 2020 at 2:54 pm
Wow... Thank you so much for such insights.
However, using a hint in the secondary table or in my case on the joining table can still be okay? since all...
Steve (aka sgmunson) π π π
Rent Servers for Income (picks and shovels strategy)
August 6, 2020 at 2:48 pm
Do you happen to know what character in that collation is represented by the ASCII value of "?"Β Is there such an ASCII value within that collation?Β Β Not sure about...
Steve (aka sgmunson) π π π
Rent Servers for Income (picks and shovels strategy)
August 6, 2020 at 2:38 pm
I'd have to wonder how VS would perform this task.Β Β After all, it would likely need the kind of permissions you need in SSMS to be able to see the...
Steve (aka sgmunson) π π π
Rent Servers for Income (picks and shovels strategy)
August 6, 2020 at 2:34 pm
Thanks for your help. I have got the below response which works good to me. But , I am getting [] in columns with the values. Is there anyway...
Steve (aka sgmunson) π π π
Rent Servers for Income (picks and shovels strategy)
August 6, 2020 at 2:30 pm
Dynamic key value pairs would require a dynamic SQL pivot.Β Β However, take a look at the following code, which assumes your JSON values are always separated by commas, and that...
Steve (aka sgmunson) π π π
Rent Servers for Income (picks and shovels strategy)
August 5, 2020 at 6:24 pm
Nicely done, Scott...Β Β I had a funny feeling that there was no way toΒ make recursion work for this, and that some kind of loop was likely a necessity.Β Β My...
Steve (aka sgmunson) π π π
Rent Servers for Income (picks and shovels strategy)
August 5, 2020 at 2:50 pm
Okay... let's restate the problem.Β Β What you posted as the "task" is: "Find a bundle with number less than X".
Not sure exactly what that means, as neither "bundle", nor "number"...
Steve (aka sgmunson) π π π
Rent Servers for Income (picks and shovels strategy)
August 4, 2020 at 3:08 pm
Okay, you've solved the problem (and I'm glad we were able to help) by breaking it up into pieces, but it does kind of leave us hanging as to the...
Steve (aka sgmunson) π π π
Rent Servers for Income (picks and shovels strategy)
August 4, 2020 at 2:34 pm
Viewing 15 posts - 106 through 120 (of 4,820 total)