Viewing 15 posts - 3,316 through 3,330 (of 6,401 total)
You cannot improve the performance.
As I have said, what you are doing is very intensive and will take time to execute.
The best whole database string search query I have seen...
November 20, 2012 at 5:48 am
Do you have backups of MSDB going back 1 month? If so restore it as a user database, then query sysjobhistory via script.
If you do not have...
November 20, 2012 at 5:43 am
Abu Dina (11/20/2012)
I have more questions sorry! if anyone can point me in the right direction I'd be eternally grateful!
1) The new box will not have any locally installed...
November 20, 2012 at 5:41 am
Not being stupid right to raise your concern but them accounts are created for the service regaurdless of the account which runs them. It does this so that you...
November 20, 2012 at 5:24 am
Bhuvnesh (11/20/2012)
anthony.green (11/20/2012)
Bhuvnesh (11/20/2012)
tonyarp05 61903 (11/20/2012)
But i have some codes,which takes min 30...
November 20, 2012 at 5:07 am
Any it does not matter as it will execute the procedure in every database you have in sys.databases unless you specifically exlcude it in the exclusions list.
Uncomment the SELECT @sql...
November 20, 2012 at 4:59 am
Use my code, the only thing you need to do is to replace the the text schema.procedure with the name of your procedure eg. dbo.thisismyprocedure
Then remove the spaces between the...
November 20, 2012 at 4:53 am
Bhuvnesh (11/20/2012)
tonyarp05 61903 (11/20/2012)
But i have some codes,which takes min 30 to 45mins.
Even...
November 20, 2012 at 4:39 am
Another way would be to use the following code
DECLARE @sql NVARCHAR(MAX)
SELECT @sql =
REPLACE(
CAST(
(
SELECT 'USE ' + QUOTENAME(name) +';' + CHAR(13) + CHAR(10) +
'EXECUTE schema.procedure;'+CHAR(13)+CHAR(10)
FROM sys.databases WHERE name NOT IN...
November 20, 2012 at 4:37 am
No, as I have said what you are wanting to to is very costly in performance as it uses so many resources to look through each table and each column...
November 20, 2012 at 4:25 am
There is no way to enforce a naming convention when your typing code but you can enforce object names where you have to create a table using a prefix for...
November 20, 2012 at 3:31 am
Not a problem, happy to help.
November 20, 2012 at 3:01 am
Does the same procedure exist in all 20 databases and does it need any special paramateres to run?
November 20, 2012 at 2:59 am
I am guessing the login once existed and you set it to remember the username and password? If so you need to remove the following file and then restart...
November 20, 2012 at 2:46 am
Viewing 15 posts - 3,316 through 3,330 (of 6,401 total)