Viewing 15 posts - 3,181 through 3,195 (of 4,820 total)
How about via SSMS, by right-clicking on the job and selecting Stop Job ?
February 12, 2016 at 2:34 pm
For one thing, updating the records one at a time via the For Each Loop container is a seriously bad way to approach an update of any sizable number of...
February 12, 2016 at 2:31 pm
Just thought I'd toss in a CLUSTERED INDEX on the data, and see what the following looked like on execution plan:
--===== If it exists, drop the test table to make...
November 20, 2015 at 8:29 am
You're welcome.
November 19, 2015 at 4:30 pm
curious_sqldba (11/19/2015)
sgmunson (11/19/2015)
November 19, 2015 at 4:28 pm
So.... what makes you doubt the accruacy? Be aware that if anyone with the necessary permissions manages to delete any of the job history, then yes, it could...
November 19, 2015 at 2:43 pm
Try this and see what you get:
SELECT
t00.ScenarioID,
t01.[GROUP],
'' AS GroupName,
t01.companygroupaccount,
t01.accountnum,
t01.accountname,
t00.ActualValue + t00.Forecast AS Forecast,
0 AS ForecastPercentage,
t00.BudgetValue AS Budget,
0 AS BudgetPercentage,
t00.BudgetValue - (t00.ActualValue + t00.Forecast) AS Variance,
0 AS VariancePercentage
FROM (
SELECT ScenarioID,
AnualSalary,
ISNULL(EndSalary, 0)...
November 18, 2015 at 3:55 pm
Ummm... answering your questions requires understanding exactly what such a dynamic query is supposed to accomplish, and I don't see that stated anywhere in your post. Also, by...
November 18, 2015 at 3:39 pm
You're probably going to want to make a permanent table out of this, if performance doesn't suffer so badly that you have a problem on that front. And...
November 13, 2015 at 2:40 pm
There is no direct or obvious methodology for that kind of thing. You need to derive that data in the query that is used to create your data source....
November 13, 2015 at 2:21 pm
Yes, it's do-able, but there are a number of questions that immediately come to mind... First, you need a simple calendar table, which you can create in a CTE....
November 13, 2015 at 2:11 pm
Turned out I was misinterpreting the values from sys.database_files. The max_size value coming back was 256 MB, but as that value represents the number of 8K pages, or...
November 11, 2015 at 4:49 pm
Are you talking about changes to values, or changes made to the schema that affect the primary key field? There is no inherent provision for tracking either one,...
November 11, 2015 at 2:18 pm
ChrisM@Work (11/10/2015)
Your code looks ok. What datatype is dbo.R_ResrvStock.Vin?
With that thought in mind, perhaps something like: LTRIM(RTRIM(field1)) = RIGHT(field2, 6) ?
e.g.
UPDATE TT
SET TT.Vinnumber = RRS.Vin
FROM dbo.R_ResrvStock AS RRS
INNER JOIN Txt_Temp...
November 11, 2015 at 8:18 am
This one is a bit of a sticky wicket, in that I have no idea what you are trying to accomplish. I'm guessing that English is not your...
October 23, 2015 at 11:46 am
Viewing 15 posts - 3,181 through 3,195 (of 4,820 total)