Viewing 15 posts - 1 through 15 (of 16 total)
Do you have any maintenance plan to back up the transaction log for the same database? If that's the case, log shipping will not function correctly because both maintenance plan...
August 10, 2010 at 2:09 pm
Create TABLE #SQLCmd
(
SqlCmdLine varchar(max)
)
...
-- NOTHING WORKS BELOW THIS LINE
exec 'Select SqlCmdLine from #SQLCmd'
...
Dynamic SQL is executed in a separate scope than the batch. The temp table #SQLCmd is created outside...
August 7, 2010 at 1:59 pm
Try "Add Contraint" instead of "alter column":
ALTER TABLE MyTable ADD CONSTRAINT default_name DEFAULT 'my default value' FOR MyColumn;
July 26, 2010 at 2:33 pm
Krasavita (7/23/2010)
Is this correct order to do my weekly my maintenance plan wizard for all my dev databases1.CheckDatabaseIntegrity
2.Update Statistics
3.Reorginize Index
4.Rebulding Index
5.Cleanup History
6.Maintance Cleanup Task
Thank you
Ran "2.Update Statistics" after 3 &...
July 23, 2010 at 2:19 pm
Not sure what you want to achieve. SQL Server provides Security Catalog Views and Security Stored Procedures that you can use to audit server-level or database-level permissions.
July 23, 2010 at 1:56 pm
As Leo said, you will also need to know the SQL code (statements in SP, dynamic SQL, ...) by turning on trace 1204. Once you have all the information, you...
July 22, 2010 at 2:33 pm
You can find the objects and indexes, which caused the deadlocks, based on the information (hobt_id, objid, index name) provided in the deadlock graphs. Just query catalog views (e.g., sys.partitions).
July 22, 2010 at 2:26 pm
krypto69 (7/16/2010)
The drive the DB was on ran out of room.
I rebooted the server...and now my DB says 'In...
July 16, 2010 at 1:58 pm
You can try indexed view, which may solve the performance issue.
July 11, 2010 at 12:15 pm
Max Server Memory (MBs) 13312
The max server memory is the maximum memory used by the buffer pool of SQL Server Database Engine. SQL Server has internal and external components,...
July 10, 2010 at 7:47 pm
Should we migrate each Oracle schema into its own SQL Server database? Or should we create a separate database for each Schema/Application?
This really depends on your application and requirements. You...
July 10, 2010 at 7:00 pm
Quote: more specifically the slow down seems to occur when joining a temp table into several other tables.
In your production environment:
Check the configuration of TEMPDB database: make sure to move...
July 8, 2010 at 12:01 am
Comment on your second recommendation:
[ 2. As most of our users use tempdb(which can not be avoided) by pulling millions of records in temp tables, i thought i have better...
July 7, 2010 at 10:15 pm
If you concern about the size of the log file, consider using one of the following methods to prevent the transaction log files from growing unexpectedly:
1. Back up the transaction...
July 7, 2010 at 10:04 pm
DBCC Shrinkfile with TruncateOnly is applicable only to data files.
You may need to truncate your transaction log before you are able to empty that log file. Try this:
...
July 7, 2010 at 8:32 pm
Viewing 15 posts - 1 through 15 (of 16 total)