Viewing 15 posts - 196 through 210 (of 3,011 total)
New technology does not mean the old technology is going away. Technology has a purpose, and only goes away when its utility goes away.
I read somewhere that there are...
June 13, 2013 at 8:34 am
OLDCHAPPY (6/11/2013)
June 12, 2013 at 10:13 am
opc.three (6/12/2013)
June 12, 2013 at 8:27 am
LOB data (TEXT, NTEXT, IMAGE, VARCHAR(MAX), NVARCHAR(MAX), VARBINARY(MAX)) is only compressed if it is stored in-row.
June 11, 2013 at 10:00 am
I suggest adding the CHECKSUM option to your backup command. Example:
backup database [MyDatabase]
to
disk = '\\MyBackupServer\MyBackupShare\MyDatabase_Backup.bak'
with
init,
compression,
checksum,
stats = 10;
CHECKSUM specifies that the backup operation will verify each page for...
June 11, 2013 at 9:57 am
This works by finding the 7th day of April for a given year, and then finding the Monday on or before that date.
select
a.DT,
FirstMondayInApril =
dateadd(dd,(datediff(dd,'17530101',dateadd(yy,datediff(yy,'17530407',a.DT),'17530407'))/7)*7,'17530101')
from
( -- Test Dates
select DT =...
June 11, 2013 at 9:11 am
This code shows the result of nested transactions:
create table #t ( x int not null primary key clustered )
begin transaction
select [@@Trancount 1] = @@trancount
insert into #t select 1
insert into #t...
June 11, 2013 at 8:12 am
Are you doing a row at a time delete, or deleting multiple rows at a time?
Do any of the tables you are deleting from have a delete trigger that is...
June 10, 2013 at 3:56 pm
There is probably very little advantage to having allow_row_locks or allow_page_locks disabled, so you would be better off finding them and fixing them.
select * from sys.indexes where allow_row_locks = 0...
June 10, 2013 at 10:52 am
Jeff Moden (6/7/2013)
PHYData DBA (6/7/2013)
using rar instead of xcopy to speed up the network transfer?
Once we had to move an entire JDE 8.X database with...
June 7, 2013 at 9:29 am
This will return both unique constraints and primary keys:
select
[SCHEMA_NAME]= sc.name,
[TABLE_NAME]= t.name,
[CONSTRAINT_NAME]= k.name,
[CONSTRAINT_TYPE]= k.type_desc
from
sys.schemas sc
inner join
sys.tables t
onsc.schema_id = t.schema_id
inner join
sys.key_constraints k
ont.object_id = k.parent_object_id
order by
sc.name,
t.name,
k.name
June 6, 2013 at 10:15 am
To copy a backup of a large database over a WAN, I recommend the following:
1. Make a compressed backup of the database to multiple output files. Example: Make 20x5...
June 6, 2013 at 9:59 am
Rod at work (6/5/2013)
Michael Valentine Jones (6/5/2013)
You need a CAL for each user or client that accesses SQL Server either directly or indirectly...
June 5, 2013 at 11:26 am
I take a conservative approach to applying SQL Server service packs.
I usually don’t apply them to a production environment until they have been out for a few months, unless I...
June 5, 2013 at 9:36 am
SQL server CALs are not for concurrent users.
You need a CAL for each user or client that accesses SQL Server either directly or indirectly via a middle tier application.
June 5, 2013 at 9:29 am
Viewing 15 posts - 196 through 210 (of 3,011 total)