I thought I will start updating my blog after a bit hibernation. So here is a tip for getting rid of the blank page that appears if you use a Next Page After setting in the group section as shown below. Use the formula Not Onlastrecord To do this click on the formula section against the Next PAge After setting and type in Not Onlastrecord Save the report and the last blank page will disappear.
Read More
I created a new database today and was wanting to restore this new database from another exisitng database using the restore option available in the wizard. But I got the 3154 error as below. So I had to restore to the restore database command in the SSMS. So here is the first option I tried restore database databasename from disk 'filepath.bak' with replace but this gave an error because the database and log files were in use for the exisitng database and had to use the with move command as fol...
I use sharepoint 2010 to display the data analysis tool I have created in excel 2010 to manage the Microsoft licenses as well as to utilise the excel 2010 capabilities of slicers and dicers. This has been going pretty smoothly until yesterday when I stumbled with this error below. "Workbook is larger than the maximum workbook size" So I had to go through the Excel web services properties on the sharepoint server and increase the maximum file size. Here are the steps that I followed. Logged into ...
Yesterday I had this problem in moving between the cells within excel. This problem usually occurs if the scroll lock is on. I tried to find the scroll lock button on my keyboard but it was not there. So I got the idea of using the On screen keyboard function to diable the scroll lock. So I clicked on Start button -- All Programs -- Accessories -- Ease of Access --On Screen keyboard. The following screen appears and I click on the scroll lock as shown below. This same functionality can be used w...
As you all know Excel 2007 has lot more features compared to Excel 2003. The extension with which the excel files are saved alos differs based on the version of excel. For excel 2003 the file is saved as .xls and for Excel 2007 the file is saved as .xlsx The other day I realised that when I opened a file in Excel 2007 all the features of Excel 2007 are not available for use. So when I tried to investigate what was happening I found that the file was saved as .xls. So I saved the file as excel 20...
I was using excel to display data from a cube. I tried to do a caluclated cell in excel to display number of months between two dates. Here is the formula I used to do this. =Datedif(H1,G5,"m") But I received an error -- #NUM Then I again looked at the dates entered. To make sure that the datedif function works you need to give the earlier date as the first parameter and the later date as the second parameter to avoid the #NUM error. You also need to ensure that the dates are in the correct form...
This morning I recieved the email of 24 hrs of PASS registration. Below are the details. Nonstop SQL Server Training Don't miss the best 24 hours of free, online SQL Server training in the industry with 24 Hours of PASS: SQL Server 2012 March 21, featuring closed captioning in 15 languages. Join us for an exceptional lineup of the world's top SQL Server and BI experts, who will be presenting 24 back-to-back technical webcasts with a special focus on SQL Server 2012. Go ahead and register and ben...
Late last year one of my colleagues Mark Crosby has introduced the Prezi tool in our company to do presentations. Prezi is a presentation software that can be used in creating more visual presentations. It is different to the traditional powerpoint software as it has a Zooming user interface and uses a vector based illustration and text which creates big visual impact. The main differences between Prezi and Powerpoint that I have found are as follows: The first difference I found is that Prezi i...
Today I was asked by my colleague as to how to change outlook 2007 so that she does not manually need to download the pictures every time an email comes in. Here is what I have suggested to her. Go to the menu item Tools in Outlook and then click on Trust Center Then choose Advanced settings Untick the "Don't Download pictures automatically' option as shown below
Today I had a unique scenario where I had to introduce 2 spaces in between two fields. I came across the space function which I used in my scenario. The syntax is space(integer_expression) The integer expression is an integer. IF a negative value is supplied a null is returned. So for example look at the following syntax: select First_name, + space(4) + Last_Name from test_table The above select statement will generate 4 spaces in between the first name and last name The space function will gene...
I just now realised that it has been more than a month since I have posted anything on my blog. So here I am with the most recent tip I learnt in Excel. If you have a column of cells that need to be divided by 1000 for example. Here are the steps that you need to follow. Type 1000 in a cell lets say A2 Copy the cell A2 using Ctrl+C Select the cells in the column where you would like to let us say multiply the values by 1000. Right click and select Paste Special Click on Multiply as shown below. ...
In Sql Server Management Studio, I usually access my sql query files that I save -- using the File -- Recent Files option. The default setting of the number of recent files to be displayed in SSMS. Today I wanted to access a file that I had used last week and I could not find that file in the recent list. So I thought of displaying more than the normal 4 files that are displayed in the Recent Files option. So I set out to find where the settings are (as in the microsoft office programs) -- I cli...
Yesterday I wanted to export the contents of a folder into excel to provide it to the users for input. Here are the steps I followed. Go to Start -- Run -- CMD Change to the drive letter of the drive in which the folder you want the contents listed is if you are not already there by typing the drive letter followed by a colon. Eg: d: for going to the d drive. Change to the folder of which you want the contents to be exported by using the chane directory command cd. Eg: cd shared/test for changin...
Today I had a requirement to save the results of an SQL query into a sql table. Usually it is easy to export to excel by using the option of copying the results and pasting them to an excel file. But this time I had over a million rows and I didnot want to use excel to store that huge amount of data. So I followed the following 2 simple steps. 1. Create a new table in a new database: Use the SSMS to create the database and use the create table query to create the new table as follows: create tab...
Yesterday I had this requirement to add number of months (m) to a cell that contains start date to estimate the end date. In 2003 I had to use a complex formula like below where A1 is the cell that contians the start date. =DATE(YEAR(A1),MONTH(A1)+m,DAY(A1)) Well in Excel 2007 it is even more easy to add months with the Edate function like below. =Edate(A1, m).
Today I was taking a back of a database and for the past two days this has become my regular activity. So I thought there should be some kind of recording option (like recording a macro in excel) so that I can just use the recorded action whenever I need to do the same task again and again. So I tried to investigate and found this script button. So I thought I would investigate this. The following are the steps I followed to backup a database in the Management Studio. Right click the database th...
Today I had to access the Windows Firewall to check for blocking of a port. I am used to the command wscui.cpl from the Start -- Run screen of the Windows XP operating system. So I did the same thing on my Windows 7 screen. I was surprised to get the security centre where the Windows Firewall was not visible as shown below. Luckily I saw the Control Panel Home link at the top and clicked on the link. Then I noticed the Windows Firewall as being a separate entity in the control Paenl and accessed...
The registration for the much awaited 24 hours of PASS is now open. Here is an excerpt from the site. Two Days of Free SQL Server Training! Don't miss the best 24 hours of free, online SQL Server training in the industry with 24 Hours of PASS: Summit Preview September 7 and 8. Join us for an exceptional lineup of SQL Server and BI experts , who will be presenting a sneak peek of their PASS Summit 2011 session topics in 24 live webcasts delivered directly to your computer. Register here to attend...
A free webinar is being organised by Idera on Powershell for SQL Server. Here is an excerpt from the site. In this session, Microsoft MVP Aaron Nelson will discuss what PowerShell is and demonstrate how and why DBAs should use it. Aaron will step you through the basics of Windows PowerShell and provide you with some commonly used first scripts to help you get started. Register for the webcast today! The date and time of this webinar is below: Wednesday, August 10, 2011 2:00 PM - 3:00 PM CST
Yesterday I had a question in my mind as to what could be the sql server password policy. So I started hunting in the Help menu of the SSMS window. Here is how I found that. Click on Help from Sql Server Management Studio. Choose contents Then choose Security considerations for SQL Server Then choose the Password Policy as shown in the screenshot below.
I was using excel today and I wanted to count all the cells in a range only when there is a value greater than 2. So I started hunting for a funciton in excel and found the countif function. Countif(range,criteria) But when I started using it like this -- Countif(A1:A100,>2) it didn't work. It was coming up with an error. So I tried Countif(A1:A100, ">2"). This worked. So if we include the criteria in quotes then the formula worked. I also noticed a sumif function that also works in a simi...
Shared Squared is running a webinar on 26th July 2011. The topic is -- " Best Practices for SharePoint 2010 Upgrade and Configuration" Here is an excerpt from the site The webinar will include various demonstrations and discuss: Who should upgrade, why & when How to assess existing SharePoint deployments and identify upgrade risks and opportunities Specific tasks that need to be done to prepare for SharePoint 2010 How to identify and upgrade existing 2007 customizations Best Practices for su...
I came across this link on Codeplex this morning which will be helpful for learing Denali Here is an excerpt from the site This release is dedicated to the Adventure Works sample databases and related samples that ship for Microsoft SQL Server code-named "Denali", Community Technical Preview 3 (CTP3) . This release uses the AdventureWorks2008R2 and AdventureWorksDWDenali sample databases. They have been upgraded to the "Denali" CTP3 version. The only change to AdventureWorks2008R2 is the removal...
Today I was sitting in a demo presentation and learned a few tips that my colleague Mark Crosby shared. Did you know that in the slide show mode of the powerpoint presentation if you want to jump to a particular slide, you can just put in the slide number and enter and you can go straight into that slide without coming out of the presentation mode. He also added that if you have the slides printed and numbered it will be easy for you to go to the respective slide if you know the number of the sl...
Free TSQL Webcasts Start Next Week In SSWUG.ORG’s “Writing T-SQL Queries and Code” webcast series, you will be able to learn how to write aggregate and crosstab queries, as well as how to use common table expressions to write recursive queries. In three, in-depth sessions, Kathi Kellenberger, SQL Server Technology Specialist for Microsoft and author of Beginning T-SQL 2008, will teach beginning and experienced T-SQL programmers about writing code to ensure their applications are highly performin...