Viewing 15 posts - 1 through 15 (of 51 total)
Correct answers:1%(1)
I assume that's you, Tom? Wow... I hope I never have to troubleshoot a scenario like this. Tough, tough question. But very well laid out, great...
- Jeff
August 14, 2014 at 8:30 am
Stewart "Arturius" Campbell (3/19/2014)
snitnik (3/19/2014)
Option one:
The distributor needs to be the same version as the publisher
This statement is clearly wrong, as they don't have to be...
- Jeff
March 19, 2014 at 7:39 am
Transparent Data Encryption is another factor that can greatly reduce the efficacy of backup compression.
- Jeff
January 31, 2014 at 1:39 pm
We did get resolution to this error message after a long back-and-forth with Microsoft. The messages will disappear if you enable CLR on your system. Change Data Capture...
- Jeff
October 14, 2013 at 7:13 am
karthik babu (3/6/2013)
set rowcount 50000
DELETE FROM EventTracking.dbo.Event
while @@rowcount>0
begin
set rowcount 50000
DELETE FROM...
- Jeff
March 6, 2013 at 7:55 am
Would something like this work?
[reflection.assembly]::LoadWithPartialName("Microsoft.SqlServer.Smo") | Out-Null
$s = new-object ("Microsoft.SqlServer.Management.Smo.Server") "SERVERNAME"
$d = $s.Databases | ?{$_.Name -eq "Sandbox"}
$t = $d.Tables | ?{$_.Name -eq "Table1"}
$t.Indexes | ?{$_.IsUnique} | Select Name
- Jeff
October 10, 2012 at 3:29 pm
This may not be a complete answer (I don't think I'll be getting any bonus points), but I was able to get the proper output by adding -Property to the...
- Jeff
October 10, 2012 at 2:46 pm
Without getting into the guts of your script, you can pass variables to other functions by setting the scope.
This doesn't work:
function AssignVar
{ $Var1 = "abc" }
function DisplayVar
{ Write-Host $Var1 }
AssignVar
DisplayVar
But...
- Jeff
March 22, 2012 at 8:34 am
Take a look at Select-String's -context parameter.
Here's an article with some examples: http://blogs.msdn.com/b/powershell/archive/2010/05/07/select-string-context.aspx
- Jeff
February 14, 2012 at 3:29 pm
Are you using Change Data Capture?
We started noticing these same entries in the log when we were running some of the CDC functions that utilize CLR behind the...
- Jeff
February 10, 2012 at 3:02 pm
You can pipe the results of Get-ChildItem to Measure-Object to get a count of files.
Something like this:
(Get-ChildItem -path "C:\DBBackups\" | Where-Object {!$_.PSIsContainer} | Measure-Object).Count
- Jeff
November 10, 2011 at 1:50 pm
I tried the following and got the correct results. Perhaps others can chime in on why this behaves like it does:
Change:
if ( $specialmondaysvalue -eq 0)
To:
if ( $specialmondaysvalue.Trim() -eq 0)
The...
- Jeff
October 7, 2011 at 3:01 pm
Something like this should work:
declare @TableA table (id int, puser varchar(5))
declare @TableB table (id int, primaryuser varchar(5), stime datetime)
insert into @TableA
select 1, 'joe' union all
select 2, 'burt' union all
select 3,...
- Jeff
January 17, 2011 at 9:42 am
You're looking for the COUNT function (http://msdn.microsoft.com/en-us/library/aa258232(v=SQL.80).aspx).
An example:
declare @Counts table (field1 varchar(10), field2 char(1))
insert into @Counts
select 'jim', 'a' union all
select 'jim', 'b' union all
select 'jim', 'c' union all
select 'john', 'a'...
- Jeff
October 29, 2010 at 9:53 am
What you're looking for is sysmail_allitems.
select * from msdb.dbo.sysmail_allitems
Here's a reference: http://msdn.microsoft.com/en-us/library/ms191278(v=SQL.90).aspx
- Jeff
September 16, 2010 at 3:20 pm
Viewing 15 posts - 1 through 15 (of 51 total)