Viewing 15 posts - 286 through 300 (of 486 total)
Confirmed.
Set-Location SQLSERVER:\SQL\MyServer\Default\Databases\MyDB\StoredProcedures
dir | select name
does not return any system sprocs. I wonder why the repl sprocs would fall into the user category.
Weird...
P
June 26, 2012 at 10:58 am
$Srv = New-object Microsoft.SqlServer.Management.SMO.Server "Mufasa"
$Srv.Databases["Abb"].StoredProcedures | where {$_.issystemobject -eq $true} | select name
This returns 1300+ system procs -- including repls, and I don't have replication enabled.
P
June 26, 2012 at 9:15 am
This will exclude all non-user objects. I assume they're probably not required anyway.
Get-ChildItem | where {$_.IsSystemObject -eq $false}
June 26, 2012 at 7:18 am
Mystery solved. Ugh.
I managed to do what I wanted using Substring and IndexOf.
Thanks!
May 29, 2012 at 9:04 am
Oooooohhh. Me like TVP! 😀
Thanks opc!
May 23, 2012 at 8:01 am
Sure, here you go. I use Windows security, which appears to be the default for sqlcmd, as I'm not setting that switch in the call below.
function ApplyScriptFile ()
{
param ($DstSrv, $DBName,...
March 7, 2012 at 1:10 pm
SQLCMD has an -o outputfile parameter, to which output and errors can be written.
I actually have a function which:
1) Receives servername, dbname, infile, outfile
2) Writes to outfile the time, server,...
March 7, 2012 at 12:37 pm
I used to do deployments by .bat file, but PowerShell is SO much simpler -- OK, it's a little complicated at first, but once you get the hang of it,...
March 7, 2012 at 7:03 am
Solved by workaround: if unable to open using Bulk Insert, do nothing.
November 18, 2011 at 8:24 am
15 minutes is the lowest possible setting, according to my admin guy: we tried for 5, but he sent me a screen shot showing the message box where it says...
November 18, 2011 at 4:16 am
Yay, problem solved. My domain admin found a way to grant me rights to run repadmin /replicate without making me domain admin!
P
November 17, 2011 at 6:51 am
Ah...but that just moves the problem from remote to local... as in the local SQL Servers won't see those groups until the replication occurs.
I was given the rights to create...
November 17, 2011 at 4:55 am
Hey Brian,
So if I understand you, I can create the AD groups on both DCs?
There won't be a problem with out-of-synch SIDs after replication occurs?
Paul
November 16, 2011 at 12:45 pm
4 x 2000 (archived data)
10 x 2008 R2
October 21, 2011 at 6:18 am
You should definitely NOT allow incorrect data to be recorded in the database.
If you have enough info to determine what the proper data should be, then do so, and let...
August 23, 2011 at 5:39 am
Viewing 15 posts - 286 through 300 (of 486 total)