Viewing 15 posts - 61 through 75 (of 2,487 total)
Bill Galashan (7/12/2010)
--------------------
Colt 45 - the original point and click interface ![]()
July 13, 2010 at 4:17 am
Yeh, was planning to post it, but was rushed with the earlier posting π
Just replace
"<< YOUR SERVER >>" with server name
"<< INSTANCE >>" with instance name, or DEFAULT...
--------------------
Colt 45 - the original point and click interface ![]()
July 7, 2010 at 4:41 pm
I have a script that runs in a Powershell script step of a SQL Agent job to do this.
Makes deployment pretty easy as it's just T-SQL to create the SQL...
--------------------
Colt 45 - the original point and click interface ![]()
July 7, 2010 at 6:50 am
Powershell would be a good option and the one I'd pursue.
However for those that don't want to dabble in Powershell and don't want to enable xp_cmdshell, you can pipe the...
--------------------
Colt 45 - the original point and click interface ![]()
June 23, 2010 at 4:04 am
ROFL
iHurt
--------------------
Colt 45 - the original point and click interface ![]()
May 25, 2010 at 11:11 pm
You need to use two single quotes
eg:
@query = 'exec uspEmailSQLServerHealth10 ''192.168.1.120'', ''abc'', ''suyog.pagare@gmail.com;;'', ''test'', ''MYSELF''',
If you're editing the SQL statement in Management Studio the entire value for the @query...
--------------------
Colt 45 - the original point and click interface ![]()
February 23, 2010 at 5:33 pm
Yes.
--------------------
Colt 45 - the original point and click interface ![]()
February 10, 2010 at 8:36 pm
Basically the global variable has become "corrupted", the GUI interface can't handle correcting the problem, so you have to delete and re-create the variable.
You may be able to fix it...
--------------------
Colt 45 - the original point and click interface ![]()
February 10, 2010 at 2:49 pm
A selection of examples
http://www.sqlservercentral.com/articles/powershell/65324/%5B/url%5D
http://www.simple-talk.com/sql/database-administration/why-this-sql-server-dba-is-learning-powershell/%5B/url%5D
http://itknowledgeexchange.techtarget.com/dba/powershell-sql-server-health-check-script/%5B/url%5D
--------------------
Colt 45 - the original point and click interface ![]()
February 3, 2010 at 5:12 pm
nplace6530 (2/3/2010)
The xp_dirtree function was only added in SQL2005 so itβs not likely to disappear and will probably be around for quite a while.
Actually xp_dirtree has been around for a...
--------------------
Colt 45 - the original point and click interface ![]()
February 3, 2010 at 3:17 pm
As Health check scripts are used only by DBAs undocumented stuffare not a huge pblm.
Unfortunately, as evidenced by a number of replies to this article, its not only executed by...
--------------------
Colt 45 - the original point and click interface ![]()
February 3, 2010 at 2:05 am
nplace6530 (2/2/2010)
...
With:
select @Str = 'EXEC Master.dbo.xp_DirTree "' + @URL + '",1,1'
INSERT #dirpaths SELECT 'PATH: ' + @URL, 1, 1
This replaces the "EXEC master.dbo.xp_cmdshell" command with the undocumented "EXEC...
--------------------
Colt 45 - the original point and click interface ![]()
February 2, 2010 at 11:03 pm
louis.young, One thing I can think of is to make sure you are in the same database that you created the queue in.
Great article Jonathan, looking forward to more. Especially...
--------------------
Colt 45 - the original point and click interface ![]()
December 23, 2009 at 8:05 pm
Try this one, http://support.microsoft.com/kb/918992
Using this procedure, you can use OSQL to output all the logins to a single file. If you want individual files per login, just loop through the...
--------------------
Colt 45 - the original point and click interface ![]()
November 11, 2009 at 3:16 pm
I use the following on SQL 2008 to pull messages off the event queue that are related to a 'sa' login event. Another procedure processes the records in the work...
--------------------
Colt 45 - the original point and click interface ![]()
November 11, 2009 at 3:06 pm
Viewing 15 posts - 61 through 75 (of 2,487 total)