Viewing 15 posts - 856 through 870 (of 1,170 total)
Nice script
The following is missing AND is_read_only = 0
in select
INSERT INTO @LoopExecuteScripts
SELECT 'ALTER AUTHORIZATION ON DATABASE::' + name + ' TO sa'
FROM sys.databases
WHERE owner_sid <> 0x01
AND state_desc =...
August 31, 2013 at 5:51 pm
IgorMi (8/23/2013)
GilaMonster (8/23/2013)
No, it's not a bug. The client app ran out of memory probably due to the 'several selects for each insert'.Correct!
Thank you
IgorMi
Issue was surpassed after I changed the...
August 23, 2013 at 12:48 pm
GilaMonster (8/23/2013)
No, it's not a bug. The client app ran out of memory probably due to the 'several selects for each insert'.
Correct!
Thank you
IgorMi
August 23, 2013 at 11:15 am
GilaMonster (8/23/2013)
You're running Management Studio, on your client machine out of memory. Nothing...
August 23, 2013 at 10:51 am
...and additional
The insert operations execute under an explicit transaction.
I wanted to try to create a snapshot of the database and was not able because of the
SQL Server version:
Microsoft SQL...
August 23, 2013 at 9:07 am
Erland Sommarskog (8/19/2013)
IgorMi (8/19/2013)
It is not good to shrink without rebuild.If you shrink and rebuild after then it's ok.
No, it may be OK. In this case, the jfgrocha removed 200...
August 19, 2013 at 10:23 am
Talib123 (8/19/2013)
Can't believe no one has pointed out that is not a good idea to shrink Production DBs.
It is not good to shrink without rebuild.
If you shrink and rebuild after...
August 19, 2013 at 7:54 am
Hi
Can you check whether you have open transactions?
SELECT * FROM sys.sysprocesses sp WHERE sp.open_tran = 1 and sp.dbid = DB_ID()
or
DBCC OPENTRAN
Regards
IgorMi
August 13, 2013 at 6:37 pm
The temp objects are not deleted. They are just truncated and then reused for other purposes, hence you cannot know which temp object from which user object is created/used. The...
August 2, 2013 at 7:58 am
Dird (8/1/2013)
No. The issue is "''''''''''''''''"...so many! because for every ' I have to do '' to escape it. Is there another way to escape in TSQL? So I...
August 1, 2013 at 4:56 pm
Dird (8/1/2013)
but then it will still have many apostrophes? just in a different location~
I think i get your issue. What about this:
set quoted_identifier off
declare @query nvarchar(1000)
declare @server nvarchar(100)
set @query =...
August 1, 2013 at 4:27 pm
Dird (8/1/2013)
Hi Igor,What do you mean?
I mean if you can put your code with many apostrophes in another script/sp and use it from another place...
August 1, 2013 at 4:04 pm
SQLRNNR (8/1/2013)
IgorMi (8/1/2013)
The widely used thresholds are: Reorganize if fragmentation is between 10-30%. Rebuild if > 30%.
Indexes with small number of pages (<1000) will usually not loose fragmentation. Try...
August 1, 2013 at 4:02 pm
Hi,
The widely used thresholds are: Reorganize if fragmentation is between 10-30%. Rebuild if > 30%.
Indexes with small number of pages (<1000) will usually not loose fragmentation. Try your own...
August 1, 2013 at 3:52 pm
Hi,
How about the refdate dates? are they two months ago, or fresher?
Regards,
IgorMi
August 1, 2013 at 3:48 pm
Viewing 15 posts - 856 through 870 (of 1,170 total)