Viewing 15 posts - 826 through 840 (of 7,191 total)
Pedro
You'll want to set the affinity manually, otherwise you may end up with each instance using some or all of the same processors as the others.
John
March 14, 2018 at 9:30 am
There's a lot to worry about in that code, I'm afraid. The loop within a loop will mean it'll run really slow. And you have a SELECT TOP 1 clause...
March 14, 2018 at 9:20 am
Matt
Does the job run at exactly the same time each day, or does it sometimes run before midnight and sometimes after?
Of course, the wider problem here...
March 14, 2018 at 6:00 am
You can't just remove the cursor, because now the stored procedure isn't doing the same thing. It's inserting just one row instead of all the rows. You need to rewrite...
March 13, 2018 at 6:10 am
William Rayer - Tuesday, March 13, 2018 5:29 AM"lakhs of tables, stored procedures"What are lakhs of tables?
I think lakh is...
March 13, 2018 at 5:35 am
That's not the whole stored procedure definition, is it? The execution plan shows that there's a cursor involved. Also, do you have an example of the table parameter (@TableWaybillID) that...
March 13, 2018 at 4:36 am
Please specify exactly what you need the user to be able to do. First you said it was only for one particular database; now you seem to be saying that...
March 12, 2018 at 10:19 am
There's no reason to run SQL Server on an old operating system. You should use SQL Server 2016. I don't know what the individual benefits are, but I do know...
March 12, 2018 at 10:17 am
shamshad.ali - Monday, March 12, 2018 10:01 AMCan anyone do this?
just grant db_owner membership in the database in question
John
March 12, 2018 at 10:07 am
Do you have the option to change code? The SelectWaybillID stored procedure uses a cursor - probably dreadfully inefficient. Please will you post the full definition of the stored procedure,...
March 12, 2018 at 10:05 am
Sounds as if you may have a disk bottleneck. But I think you need a slightly more detailed analysis of your wait stats. Paul Randal's and Brent Ozar's blogs have...
March 12, 2018 at 9:30 am
What other applications run on the server? How much memory is in the server and what is max server memory set to in sys.configurations?
John
March 12, 2018 at 9:02 am
The first problem is that your table mytable doesn't appear in the query. The second is that your subquery isn't correlated to the outer query. Therefore, all rows in the...
March 12, 2018 at 7:33 am
Viewing 15 posts - 826 through 840 (of 7,191 total)