Viewing 15 posts - 616 through 630 (of 3,489 total)
Unless I'm reading it wrong, sounds like you could use Service Broker for that...
"Here are some examples of reasons you might use Service Broker:
Asynchronous triggers. You can construct asynchronous triggers either...
September 6, 2020 at 3:16 pm
Created a User DSN, and it worked a champ.
Then for fun I created a trivial stored procedure just to see if I could call it.
CREATE SCHEMA junk;
CREATE...
September 5, 2020 at 12:39 am
something like this?
SELECT DISTINCT ID
FROM Response r
WHERE EXISTS (SELECT 1 FROM Response r2 WHERE r2.ID = r.ID AND r2.result = 'Y')
AND EXISTS (SELECT 1 FROM Response r2...
September 4, 2020 at 10:54 pm
=IIf(Round(Fields!Qty1.Value,3) = Round(Fields!Qty2.Value,3),"Red","Black")
September 3, 2020 at 3:58 pm
This almost worked <g>.
DECLARE @tableName NVARCHAR(50);
DECLARE @TemplateSQL NVARCHAR(500)=
'SELECT *
INTO #tempData
FROM dbo.MikeyData n
EXCEPT
SELECT *
FROM #tempData d;';
DECLARE @InsertSQL NVARCHAR(500);
DECLARE tables_cursor CURSOR FAST_FORWARD
FOR
SELECT ao.name
FROM...
September 3, 2020 at 3:12 pm
What are your options?
If you can use SSRS, it's stupid easy.
Can you use a matrix in .NET? (Well, SSRS is an ASP.net application, so I would think so.)
September 1, 2020 at 11:11 pm
I created a table for this... (Far easier to do in SSRS with a matrix visual)
now someone who's better at Pivot than I am can have a play.
September 1, 2020 at 2:26 pm
Got some sample records? And how about a couple of CREATE TABLE scripts. Or do you have something against tested queries?
September 1, 2020 at 5:55 am
So what's your question? You want to split the last and first names into separate columns in your SQL query? (I would do that... makes querying much easier and faster).
August 31, 2020 at 2:13 pm
Could you explain the logic behind how your desired ranking works?
August 31, 2020 at 1:56 pm
I rewrote your create table and inserts, because they didn't run. You don't need DateTime2 if you're not using time.
CREATE TABLE [test2]
(
[InDate] [date] NULL,
[OutDate] [date] NULL,
[weight] [float]...
August 30, 2020 at 7:56 pm
Not for me. Can you show at least a partial expected result from the query using the data you provided?
August 29, 2020 at 1:57 am
This worked:
SELECT t.*
, ca.value
FROM #tblTest t
CROSS APPLY STRING_SPLIT(t.FileData, ';') ca
WHERE LEN(TRIM(ca.Value))>0;
August 28, 2020 at 7:24 pm
Use ISBLANK([ColumnWithNulls],"AlternativeValue")
ISBLANK is analogous to T-SQL ISNULL()
August 27, 2020 at 4:25 pm
Is there a really short article showing how to do this from Python outside of SQL Server? (Or from Jupyter Notebooks?)
Then you can use pandas to do the data analysis...
August 27, 2020 at 2:25 pm
Viewing 15 posts - 616 through 630 (of 3,489 total)