SQL Server 2008 R2 CTP Hurts.

I am still getting the error after following the suggestions in the enclosed blogs. If you find a solution, let me know…it does hurt. Where was my VM sense? I wrote a neat blog though before the stab. So the stab stings less.
“The report definition has an invalid target namespace ‘http://schema.microsoft.com/sqlserver/reporting/2009/01/reportdefinition’ which cannot be upgraded.”

http://www.keepitsimpleandfast.com/2009/08/report-definition-has-invalid-target.html

http://usmantjiudri.wordpress.com/2009/08/18/converting-ssrs-2008-r2-rdl-back-to-ssrs-2008-version/

Windows Startup Greetings

1.http://research.att.com/~ttsweb/tts/demo.php
2.Create your greetings & accents(get funky! hours and hours of fun).
3.Download the generated .wav.
3.Control Panel -> Sounds & Audio -> Sounds -> Start Windows -> Browse -> Select t…he downloaded .wav.
Heee haaa…
Mine? Welcome swetha, an eye for an eye makes the whole world blind. Serve with friendship and humility that’ll conquer the hearts of everyone(i know!! )

Unable to open .chm files

Issue: The .CHM file downloaded from the internet does not open and issues an error.

Fix: Once the file is downloaded right click the properties of the file and then, click UNBLOCK.

The error is the result of advanced security update for Windows XP -KB896358.

Unblocking the file resolves this.

Happy learning!

Removable USB Flash Disc detected but driver not found

12/12/2008
Removable USB Flash Disc detected but driver not found, ahhhh… Edit

I was trying to plug in the flash drive, my laptop gave me the traditional sound(tadum!!), found new hardware message and then recognized the hard drive. When I went to look at my drives, I could not find the pen drive connected.

Now I have plugged and unplugged multiple times but nothing happens(ok, that was a bit dramatic, didn’t have to do that as many times as I did…I was just hoping for a miracle to happen) The drive does not show up.

Then, I stopped plugging and unplugging :)

Now, what?

I tried the following steps,

1. My Computer –> Manage –>Disk Management –> Check to see if the removable USB device is added and to which drive it gets added to.—>Change the driver letter…

VOILA…we have our files from the removable USB flash disk in our new driver (in my case ‘O’)

Good luck(plugging and unplugging)

SQL Server 2005 services are not listed in SQL Server Configuration Manager

Some or all SQL Server 2005 services are not listed in SQL Server Configuration Manager, or you receive a “No SQL Server 2005 components were found” error message when you perform operations in SQL Server 2005 Surface Area Configuration
SYMPTOMS
In Microsoft SQL Server 2005, you open SQL Server Configuration Manager. In the SQL Server Configuration Manager window, you encounter one of the following problems when you click SQL Server 2005 Services:

* No service is listed.
* Some services are not listed.

When you perform operations in the SQL Server 2005 Surface Area Configuration window, you receive the following error message:
No SQL Server 2005 components were found on the specified computer. Either no components are installed, or you are not an administrator on this computer. (SQLSAC)

CAUSE

This problem occurs because the NETWORK SERVICE account has insufficient permissions to query the information about the SQL Server 2005 services.

This problem may occur after you apply some security policies to update the security settings for SQL Server 2005 services. In particular, this problem may occur after you apply a Group Policy to update the security settings.

RESOLUTION

To resolve this problem, make sure that the NETWORK SERVICE account has the READ permission to query the information about the SQL Server 2005 services. To do this, follow these steps:

1. Click Start, click Run, type mmc, and then click OK.
2. In the Console window, click Add/Remove Snap-in on the File menu.
3. In the Add/Remove Snap-in window, click Add.
4. In the Add Standalone Snap-in dialog box, click Group Policy Object Editor under Available Standalone Snap-ins, and then click Add.
5. In the Select Group Policy Object window, click Browse.
6. In the Browse for a Group Policy Object window, click Another computer, specify the location of the domain controller, and then click OK.

Note If you perform steps 1 through 5 on the domain controller, click This computer, and then click OK.
7. In the Select Group Policy Object window, click Finish.
8. In the Add Standalone Snap-ins dialog box, click Close.
9. In the Add/Remove Snap-in dialog box, click OK.
10. Expand the snap-in that you add, expand Computer Configuration, expand Windows Settings, expand Security Settings, and then click System Services.
11. In the Service Name column, double-click SQL Server (Instance_Name).
12. In the SQL Server (Instance_Name) Properties dialog box, click to select the Define this policy setting check box, select the appropriate startup mode, and then click Edit Security.
13. In the Security for SQL Server (Instance_Name) dialog box, click NETWORK SERVICE under Group or user names.

Note If the NETWORK SERVICE account is not listed, you should add it first.
14. Under Permissions for NETWORK SERVICE, click to select the Read check box in the Allow column, and then click OK.
15. Repeat steps 11 through 15 to add the READ permission to the NETWORK SERVICE account for other SQL Server 2005 services.

MORE INFORMATION

We have a good practice to avoid this problem. When you apply security policies, always make sure that the default discretionary access control list (DACL) for the SQL Server 2005 services is not changed. You can add accounts or groups to the security setting of the SQL Server 2005 services if you want the accounts or groups to have the permission to query the service information.

You can run the following command at a command prompt to extract the information about the default DACL for a SQL Server 2005 service:

sc \\[servername] sdshow SQLService_Name

When you run the SQL Server Configuration Manager tool or the SQL Server 2005 Surface Area Configuration tool, these tools internally create an instance of the ManagedComputer SQL Server Management Objects (SMO) class. These tools iterate through the services collection to obtain the information about the SQL Server 2005 services. When these tools iterate through the services collection, these tools generate the following Windows Management Instrumentation (WMI) queries:

* SELECT * FROM RegServices
* SELECT * FROM SqlService

When these tools generate the WMI queries, the SQL Server Web-Based Enterprise Management (WBEM) provider (Sqlmgmprovider.dll) is loaded into the Wmiprvse.exe process. Then, the SQL Server WBEM provider extracts and processes the information about the services of every instance of SQL Server 2005. The information is about the following SQL Server 2005 services:

* The SQL Server Database Engine service
* The SQL Server 2005 Reporting Services service
* The SQL Server 2005 FullText Search service
* The SQL Server 2005 Agent service
* The SQL Server 2005 Integration Services service
* The SQL Server 2005 Analysis Services service

Finally, the ManagedComputer SMO object returns the list of SQL Server 2005 services to these tools.

The Wmiprvse.exe process in which the Sqlmgmprovider.dll file is loaded runs under the security context of the NETWORK SERVICE account. In the Wmiprvse.exe process, a thread executes the code in the Sqlmgmprovider.dll file. When you run these tools, this thread in the Wmiprvse.exe process impersonates the security context of the user who is running these tools.

Additionally, information about some SQL Server 2005 services is still extracted under the security context of NETWORK SERVICE account. If the NETWORK SERVICE account has insufficient permissions to extract the service information, the information about the SQL Server 2005 services is not present in the result set for the WMI queries that are mentioned previously. Therefore, the ManagedComputer SMO object returns an empty list or a partial list of SQL Server 2005 services to these tools.

REFERENCES

For more information about the ManagedComputer class, visit the following Microsoft Developer Network (MSDN) Web site:
http://msdn2.microsoft.com/en-us/library/microsoft.sqlserver.management.smo.wmi.managedcomputer.aspx (http://msdn2.microsoft.com/en-us/library/microsoft.sqlserver.management.smo.wmi.managedcomputer.aspx)
For more information about QueryServiceConfig function, visit the following MSDN Web site:
http://msdn2.microsoft.com/en-us/library/ms684932.aspx (http://msdn2.microsoft.com/en-us/library/ms684932.aspx)
For more information about WMI, visit the following MSDN Web site:
http://msdn2.microsoft.com/en-us/library/aa394572.aspx (http://msdn2.microsoft.com/en-us/library/aa394572.aspx)

APPLIES TO

* Microsoft SQL Server 2005 Standard Edition
* Microsoft SQL Server 2005 Workgroup Edition
* Microsoft SQL Server 2005 Developer Edition
* Microsoft SQL Server 2005 Enterprise Edition

SQL Server Reporting Services(2008) reports and SharePoint integration

Issue:
The reports were deployed to the Document Library but when we tried to access them the following error kept popping up
• An error has occurred during report processing. (rsProcessingAborted) Get Online Help
Cannot create a connection to data source ‘data_source1′. (rsErrorOpeningConnection) Get Online Help
Internal 500 error. Database access denied.

Fix:
After some intense research we discovered that the problem was not RS as such, but the IIS setup hosting it.
IIS was handling the app pool in an aggravating way.
The fix was to set its properties so that under Performance, the idle timeout was disabled. We could access the reports from http://MOSSServer/SharedDocument folder afterward.
However, we could not add the reports as web parts.
Research revealed that the web part “ReportViewer.dwp“ had to be manually added to the web part collection.
ReportViewer.dwp can be found in the following folder
“C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES\ReportServer”
The steps involved in adding are as follows,
My Site -> Site Actions -> Site Settings -> Galleries -> Web Parts -> Upload and browse to the ReportViewer.dwp file and add it.
On refreshing we can see the added web part named, SQL Server Reporting Services Report Viewer.

Percentage Formulas

Corresponding percentage:
What is Rate% of Base.
(Base * Rate ) / 100
Eg: 20% of 700 is (700*20)/100=140.

Percentage difference application:
What is the change expressed in percent from one number(x) to another(y); What is the change from 97235 to 126567
Difference %= ((NewAmount-Base)/Base)*100
Eg: Difference%= (126567-97235/97235)*100=30.17%

Percent of Total application:
What percent of one number is of another; what percent of 3.92 million is 1.67 million.
%T= 100*(Amount/Total)
Eg: %T= 100(1.67/3.92)=42.60%