Viewing 15 posts - 1,006 through 1,020 (of 2,645 total)
The best way to get this answered is to post the actual SQL that is dynamically generated so we can see what the SQL is doing. (Just change exec(@SQL) to...
June 30, 2020 at 3:02 pm
deleted answer
June 29, 2020 at 8:55 pm
June 25, 2020 at 12:07 am
Try this:
select i.ItemID
from Item i (nolock)
left join QueueItemDeactivation qid (nolock)
on i.ItemID...
June 22, 2020 at 4:32 pm
You could create a temporary table, insert all the rows you need into that. Then just select * from the temporary table.
June 18, 2020 at 4:33 pm
Thanks this looks great. I only found away to take the first numbers off.
You really need a lot more test data, you can replace later numbers by adding more...
June 17, 2020 at 7:47 pm
Here is something that could be a start, if you have no other option:
DECLARE @Words TABLE (Words nvarchar(20));
INSERT INTO @Words
VALUES ('ROAD'),
...
June 17, 2020 at 5:28 pm
The only reason why I got it right was because it has bitten so many people that work in every company that I've ever worked in including me back...
June 11, 2020 at 6:54 pm
We have a set of SSIS packages for a data warehouse ETL, all the dtsx packages are in one solution (project) the entire project is checked into source control (currently...
June 8, 2020 at 8:33 pm
SELECT DISTINCT
Reg_Text
FROM dbo.TestTable
WHERE Reg_Text NOT LIKE '[A-Z][A-Z][A-Z][A-Z][0-9][0-9][0-9][0-9]%'
June 7, 2020 at 10:54 pm
DECLARE @DateString nvarchar(100)='Wed Jun 29 15:57:45 2019'
SELECT CONVERT(datetime,SUBSTRING(@DateString,5,100))
June 6, 2020 at 2:36 am
I would change the WHERE in the last query to:
FROM staging.sfSurveillanceRecordHeader s1
WHERE NOT EXISTS (SELECT *
...
June 5, 2020 at 2:19 pm
So yesterday we got a bit of good/bad news...
Good, in that the wife has been called back to work and goes back on Tuesday.
Bad, in that the...
May 31, 2020 at 1:00 am
So yesterday we got a bit of good/bad news...
Good, in that the wife has been called back to work and goes back on Tuesday.
Bad, in that the wife got...
May 30, 2020 at 6:32 pm
If output_response_xml =''
then the expression:
LEN(output_response_xml) - LEN(LEFT(output_response_xml,
CHARINDEX ('>Thank you', output_response_xml))) - LEN(RIGHT(output_response_xml, LEN(output_response_xml) - CHARINDEX ('', output_response_xml))) - 1
Is equal to -1, which will give you the error you have.
May 29, 2020 at 10:02 pm
Viewing 15 posts - 1,006 through 1,020 (of 2,645 total)