Viewing 15 posts - 2,371 through 2,385 (of 13,469 total)
that's still a logical decision; from a static code point of vew, you could check if any procedure had a cursor: that would imply that it is calling some code...
April 22, 2014 at 6:00 am
this query would be an order of magnitude faster (at least!) for getting row counts per table.
something like this is what you'd wnat to wrap with sp_msForEachdb:
...
April 21, 2014 at 3:02 pm
Partial match to what?
do you have a master table for states, for example?
your data had some single letter possible matches... if you filtered for the letter "A" or "U", how...
April 21, 2014 at 2:42 pm
since redundancy type issues are logic based, i think you are stuck with actually reviewing the code. digging through the logic is a pain.
If you can give a better example...
April 21, 2014 at 11:42 am
looks like someone restored msdb ? or maybe actually did a DBCC CHECKIDENT with Ressed?
the diagnosis is easy, and so is the fix:
the diagnosis:
use msdb;
GO
DBCC CHECKIDENT ('dbo.backupset')
SELECT MAX(backup_set_id) +...
April 17, 2014 at 12:27 pm
Mani I know you obfuscated the error, but i'll bet you an internet cookie that the procedure being called references a different database or different schema than what the procedure...
April 17, 2014 at 11:03 am
i assume the string can be anything, and not justa ~33 character GUID, right?
i think the right thing to do is to find find where the slash starts, and where...
April 17, 2014 at 10:53 am
imran.baig (4/16/2014)
April 16, 2014 at 5:15 am
the problem there is security, though, right?
an end user needs access to each of those tables in each of the schemas in order to use the view; ownership chaining gets...
April 16, 2014 at 5:11 am
my network guy was able to provide me with a list of user accounts + last workstation they logged in on;
I stuck that in a table, and use that...
April 16, 2014 at 5:07 am
you have to keep track of the files already processed someplace. that's #1. do you have that accessible?
Like Raunak Jhawar suggested, you'd move the processed files someplace, like to an...
April 15, 2014 at 2:40 pm
Josh i inherited a similar solution once, and it depends on where it gets the next value from;
the original badly written proc would get the max value from a table,...
April 15, 2014 at 10:43 am
ben besides the join, i think you also have to be able to say where the level < previous level as well; that avoids the endless recursion
here's a rough example;...
April 15, 2014 at 6:55 am
Tom As far As I know, the trick to getting the column definitions is getting them into a temp table, so that piece is correct...
the real trick is to call...
April 15, 2014 at 6:02 am
well i can think of two things that might explain this:
1: you are not a sysadmin, and the object in question is outside of your permissions scope. ie the sysadmin...
April 15, 2014 at 5:49 am
Viewing 15 posts - 2,371 through 2,385 (of 13,469 total)