Date and Time in a SQL Statement (DateTime)
To get the date and time for a datetime value in SQL Server, use the GetDate method. It will return the current system date and time in the SQL Server standard internal format for datetime values.This...
View ArticleEarliest date known to mankind
Okay… maybe not mankind - but it is the earliest date SQL Server will except for a SQL Date. 01/01/1753
View ArticleChange owner on all database objects by stored procedure
Another handy dandy script: http://codebetter.com/blogs/darrell.norton/archive/2004/06/18/16932.aspxDarrell Norton (MVP) has a script that will allow you change the database owner on all of your...
View ArticleAdd a Column To An Existing Table
If you need to add a column to an existing table with a default value: ALTER TABLE YourTableNameADD YourColumnName varchar(50)DEFAULT ‘your default value’ WITH VALUES
View ArticleTurn Identity Insert Off and On
This is a really great thing to know if you are migrating data from one database to another and absolutely must retain the Id field of your records. You can turn Indentity Insert Off / On so that you...
View ArticleSQL Script to attach a database
note: this script detaches it first EXEC sp_detach_db @dbname = 'dbnametoattach'EXEC sp_attach_single_file_db @dbname = 'dbnametoattach', @physname = 'c:\yourdirectory\dbnametoattach.mdf' - Dan Lewis
View ArticleChange default location for SharePoint Database files: .mdf .ldf
When installing SharePoint, you may have decided you want to keep your data files for the database on a separate directory / drive. However, you need to keep in mind that the SharePoint installer is...
View ArticleSharePoint Crawl and SQL Server Errors - Event ID: 17310
After setting up a crawl rule to crawl something other than SharePoint sites (such as a file share), you may encounter some errors for SQL Server. If you start to see these repeatedly - check that you...
View ArticleWhat service pack is on my SQL Server?
Quick way to determine which SP is on your SQL Server: "If you are a DBA in a big SQL Server database shop, keeping track of what service packs are on each SQL Server can become daunting. Here are a...
View ArticleKill database connections to SharePoint
There will be occasions where you need to work with the databases for SharePoint in SQL Server Management Studio. Backups, restores, etc... If you run into problems with there being existing...
View ArticleReport Builder 2.0 for SharePoint 64 bit Integration
When you integrate SSRS with SharePoint, by default the Report Builder is 1.0. You can install the Report Builder 2.0 and configure SharePoint to use it instead. But you are going to run into issues...
View ArticleReporting Services Error
Getting SQL Server Reporting Services up and running and then integrated with SharePoint can be a bit of a challenge. There are just different pieces and too many areas where something can go wrong....
View ArticleFree Microsoft SQL Server 2008 R2 E-Book
Microsoft Learning is offering a free E-Book on the latest release of SQL Server. You only have to register to download it (quick registration I might...
View ArticleLost SharePoint Farm Passphrase
It’s okay… it happens. You can’t retrieve it, but you can reset it using PowerShell. Make sure that the account you are logged in as is: (1) a farm admin and (2) local admin on server $passphrase =...
View ArticleSharePoint Comic Cloud
Cloud – it’s the latest buzz word. Even my non-technical girl friend has asked me “what is this cloud I keep hearing about?”. SharePoint Online is not a new service, but with Office 365, SharePoint...
View ArticleUninstall Project Server from SharePoint Farm
The ability to uninstall Project Server or Remove Project Server from a SharePoint Farm is not supported, regardless if it’s 2007 or 2010. 2007 Removing either Office SharePoint Server 2007 or Office...
View ArticleSharePoint Learning Roadmap – on a Budget
I’m asked regularly on what type of training is needed to start a career in SharePoint, and although I hate to say it… “it depends”. I put together a quick learning roadmap, that will lead an...
View ArticleMount ISO in Windows 8
Windows 8 has a ton of great new features, but one my top 5 has to be the ability (and finally) to mount an ISO file to extract or install from. You can do this in two ways. 1. Select the ISO file....
View ArticleFree Screen Recorder
Yes my dear 7 readers, not only am I back to blogging but I come bearing free gifts. There is a utility in Windows 7 that many users don’t know about, and it will probably become one of your favorites...
View ArticleSharePoint Comic SharePoint Circus
Having a rough SharePoint Day? Cheer it up with the SharePoint Circus Chant (to the tune of Madagascar3) http://www.youtube.com/embed/_aELcXyjpts
View Article