Viewing 15 posts - 3,751 through 3,765 (of 7,168 total)
Hi Steve,
I would like to correct a few minor typos in the article before it is published. Given that it has been scheduled for publication can I modify the article...
June 25, 2012 at 9:35 am
For what it's worth this PowerShell:
$v = [System.Reflection.Assembly]::LoadWithPartialName('Microsoft.SqlServer.SMO')
$v.FullName
$s = New-Object ('Microsoft.SqlServer.Management.Smo.Server') ".\SQL2012"
$bkup = $s.Settings.BackupDirectory
$bkup
Yielded this output on my machine:
Microsoft.SqlServer.Smo, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91
C:\Program Files\Microsoft SQL Server\MSSQL11.SQL2012\MSSQL\Backup
And yields this T-SQL when pointed...
June 24, 2012 at 9:28 pm
Jeff Moden (6/24/2012)
Actually, I said "Scheduling Reporting Capabilities" which is a bit less ambiguous. 🙂
When I evaluated enterprise job schedulers I evaluated at least 10 products on at least 20...
June 24, 2012 at 3:58 pm
Jeff Moden (6/24/2012)
matthieu178 (6/24/2012)
Indeed I'm using the sp startjob.
Unfortunately I don't have much knowledge in .net programming either, even with powershell commandlets.
For the...
June 24, 2012 at 9:52 am
matthieu178 (6/24/2012)
Indeed I'm using the sp startjob.
Unfortunately I don't have much knowledge in .net programming either, even with powershell commandlets.
For the second question...
June 24, 2012 at 8:49 am
Invoke-SqlCmd is good for issuing commands, but not necessarily for interacting with the database iteratively.
For that you'll be better off using the .Net SqlClient classes from PowerShell.
Here is an...
June 23, 2012 at 7:43 am
BenWard (6/21/2012)
just a quick one, I'm extracting data to a CSV for an accounts reconciliation and really would like the extract part of it to be coded in the...
June 22, 2012 at 1:21 pm
Might I recommend a shift in approach. In my opinion Log Shipping (LS) is better suited for this kind of work given that it is transactionally consistent. This property translates...
June 22, 2012 at 12:38 pm
vs.satheesh (6/22/2012)
Any Problem in...
June 22, 2012 at 8:55 am
What are you using within your PowerShell script to invoke the Maintenance Plan? DTExec.exe? If so, then generically the question becomes "how do I capture the return code when calling...
June 22, 2012 at 8:44 am
Jeff Moden (6/22/2012)
opc.three (6/20/2012)
Jeff Moden (6/19/2012)
June 22, 2012 at 8:34 am
OK, I am thinking you are seeing this error:
Msg 297, Level 16, State 1, Line 1
The user does not have permission to perform this action.
By default, users cannot select from...
June 22, 2012 at 7:49 am
minorgm (6/21/2012)
I have a DB with objects belong dbo schema and user1 schema( dbo.table1, dbo.table2, user1.table1, user1.table2, etc) , when I login with sa, of course, I can see...
June 21, 2012 at 4:59 pm
There are many reasons why the debugger may not start for you. The most common one is that your Server Login is not in the sysadmin Fixed Server Role. Do...
June 21, 2012 at 4:43 pm
clayman (6/21/2012)
SQLRNNR (6/21/2012)
EXECUTE [master].dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE', N'SOFTWARE\Microsoft\MSSQLServer\MSSQLServer', N'BackupDirectory'
Thanks.
I'm aware of this but.. What I'm trying to achieve here is to avoid hard coded paths so that SP would be more...
June 21, 2012 at 10:42 am
Viewing 15 posts - 3,751 through 3,765 (of 7,168 total)