Wednesday, November 9, 2011

Maintenance Plan not emailing report

You think you have everything configured to send out a report once your SQL Maintenance Plan is finished. You configured your profile, configured the account and email server correctly, and sent a test message and received it. But did you set the profile to be the default profile?


 

Open SSMS and double click on Database Mail.

Click Manage profile security.

Click Next.

Click the drop down box under Default Profile and select Yes.

Click Next.

Click Finish.


 

You now should receive email notifications once the Maintenance Plan is done.

Wednesday, September 7, 2011

Feature '2510d73f-7109-4ccc-8a1c-314894deeb3a' for list template '433' is not installed in this farm

If you are working with MOSS 2007 you may have ran into the error “Feature '2510d73f-7109-4ccc-8a1c-314894deeb3a' for list template '433' is not installed in this farm”. This happened when I tried to switch to kerberos from NTLM authentication in MOSS 2007. The fix was:

stsadm -o uninstallfeature -force -name ReportListTemplate

Then run:

stsadm -o installfeature -force -name ReportListTemplate

It worked for me but may or may not work for you!

My first post for the month of September!

Wednesday, August 31, 2011

Configuring a SQL user script

I have been working on a script to make my job easier at work. The script I needed to create was to take variables set once and create a SQL user account while setting the required permissions. After numerous trials and many failures I have it finished. I figured I would share it with the world so someone else can stop pulling out their hair. If you find a better way let me know.

I make no warranties.

USE [master]
GO

DECLARE
@UName varchar(255),
@Password varchar(255),
@dbName nvarchar(255),
@sqlstmt varchar(200);

/*****SQL USer Account 'change test to what the account is going to be'*/
SET
@UName = 'test'
/*****Password for account 'change test1'*/
SET
@Password = 'test1'
/*****Database you wish to create the account for*/
SET
@dbName = 'CGS_sde'

/*****Setup user in SQL*****/
EXEC ('CREATE LOGIN '+ @UName + ' WITH PASSWORD=''' + @Password + ''', DEFAULT_DATABASE=[master], CHECK_EXPIRATION=OFF, CHECK_POLICY=OFF');
/*****Setup user in specified database set above*/
EXEC('USE ' + @dbName + ' CREATE USER [' + @UName + '] FOR LOGIN [' + @UName + ']')
/*****Set permissions in database for user*/
EXEC ('USE ' + @dbName + ' EXEC sp_addrolemember ' + 'db_datareader,' + @UName);
EXEC ('USE ' + @dbName + ' EXEC sp_addrolemember ' + 'db_datawriter,' + @UName);
EXEC ('USE ' + @dbName + ' EXEC sp_addrolemember ' + 'db_securityadmin,' + @UName);
EXEC ('USE ' + @dbName + ' GRANT CREATE PROCEDURE TO [' + @UName + ']');
EXEC ('USE ' + @dbName + ' GRANT CREATE TABLE TO [' + @UName + ']');
GO

Friday, August 5, 2011

Going Open Source?

What would it take for me to ditch my Windows OS and go with a version of Linux? That is a good question! I know I could do email, office (documents, spreadsheets, presentations), web surfing, and blogging with open source. My main thing is all the games that I play are for Windows. Could I survive with using linux? I might have to try an experiment on my home system..........hmmmmm!

Monday, July 25, 2011

Need a laugh

If you need a good laugh go here: http://damnyouautocorrect.com!

First blog for the site.

This is my first blog since moving to Blogger.com. I will try to blog about SQL, beer brewing, and other things. This site was orginally for my family's tree, but there was little intrest from the family, so I am doing my own thing!