Viewing 15 posts - 181 through 195 (of 253 total)
DROP SCHEMA [ IF EXISTS ] schema_name
December 18, 2015 at 10:02 pm
This can also help to list procedure
select * from sys.all_objects where type='p' and is_ms_shipped=0
but it does not list system procedures:
December 17, 2015 at 9:48 pm
PowerShell Script:
Add-Type -AssemblyName "Microsoft.SqlServer.Smo, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91";
[Microsoft.SqlServer.Management.Smo.SmoApplication]::EnumAvailableSqlServers()
December 16, 2015 at 10:15 pm
take a look at this article: https://dougzuck.com/sql-differential-backup-size-prediction
December 16, 2015 at 9:42 pm
try this
exec sp_removedbreplication N'sqlservername'
December 16, 2015 at 9:33 pm
take a look at this article: https://msdn.microsoft.com/en-us/library/dd255225.aspx
December 15, 2015 at 9:52 pm
try this
SELECT name, log_reuse_wait_desc FROM sys.databases
it told you the cause for no emptying the log was REPLICATION
then execute
sp_removedbreplication youdbname
to fix
December 13, 2015 at 10:02 pm
take a full backup of the database then backup the transaction log then shrink the database.
http://www.sqlserverlogexplorer.com/shrink-transaction-file/[/url]
December 13, 2015 at 9:49 pm
1. Inserting records in a table
2. Viewing all records from a table.
3. Viewing only selected records from a table
4. Deleting records from a table
5. Changing data in existing...
December 13, 2015 at 9:21 pm
First, I set up the database recovery model as SIMPLE
Then, delete some old files which gave the log file more space to grow.
December 10, 2015 at 10:08 pm
To fix this issue enable page level locking on index
ALTER INDEX <index name> ON <table name> SET (ALLOW_PAGE_LOCKS = ON)
GO
December 9, 2015 at 9:29 pm
I don't think it's possible with SQL Profiler. But if this is just for debugging then you can save the values into a table to check after the fact, but...
December 8, 2015 at 10:54 pm
Check out the following link hope this will help you https://msdn.microsoft.com/en-us/library/ms151762.aspx
December 8, 2015 at 10:43 pm
Viewing 15 posts - 181 through 195 (of 253 total)