Friday, April 1, 2011

Gmail Motion - A new era to communicate with your others

The mouse and keyboard were desiged before the evolution of Internet. Since then, countless technological advancements have allowed for much more efficient human computer interaction. Why then do we continue to use outdated technology? Introducing Gmail Motion -- now you can control Gmail with your body.

Thursday, February 3, 2011

Microsoft Office SharePoint Server(MOSS) 2007 Training for free from Microsoft


Now you can explore Microsoft Office SharePoint Server (MOSS 2007) with training from Microsoft experts by living at your desktop.
You can download a simple file which have grand tour of the latest features and changes in SharePoint, including automated workflows to track approval cycles, business dashboards showing how well you are performing on your goals, and syncing documents to Outlook.
Training topics included
  • Collaboration
Finding your way around a team site Understanding permissions Customizing a team site Linking calendars to Outlook Adding Web Parts Collaborating in libraries, lists, and workspaces Using blogs and wikis to share information
  • Enterprise Content Management
Document management Protecting files Using workflows Records management Creating and publishing Web pages Improving compliance and support litigation discovery
  • Search
Finding files, Web sites, information, and people
  • Portals and personalization
My Sites Targeting content to specific audiences Managing access to your My Site
  • Business processes and forms
Streamlining business processes with forms and workflow Gathering information with browser-compatible forms Designing custom workflows using SharePoint Designer
  • Business intelligence
Sharing Excel workbooks as interactive reports Working with a Report Center site Using dashboards to drive decisions
So, why are you waiting …..click here to download from Microsoft’s official site

Friday, January 28, 2011

SCOPE_IDENTITY, IDENT_CURRENT, and @@IDENTITY


SCOPE_IDENTITY, IDENT_CURRENT, and @@IDENTITY are similar functions because they return values that are inserted into identity columns.

IDENT_CURRENT is not limited by scope and session; it is limited to a specified table. IDENT_CURRENT returns the value generated for a specific table in any session and any scope. For more information, see IDENT_CURRENT (Transact-SQL).

SCOPE_IDENTITY and @@IDENTITY return the last identity values that are generated in any table in the current session. However, SCOPE_IDENTITY returns values inserted only within the current scope; @@IDENTITY is not limited to a specific scope.

For example, there are two tables, T1 and T2, and an INSERT trigger is defined on T1. When a row is inserted to T1, the trigger fires and inserts a row in T2. This scenario illustrates two scopes: the insert on T1, and the insert on T2 by the trigger.

Assuming that both T1 and T2 have identity columns, @@IDENTITY and SCOPE_IDENTITY will return different values at the end of an INSERT statement on T1. @@IDENTITY will return the last identity column value inserted across any scope in the current session. This is the value inserted in T2. SCOPE_IDENTITY() will return the IDENTITY value inserted in T1. This was the last insert that occurred in the same scope. The SCOPE_IDENTITY() function will return the null value if the function is invoked before any INSERT statements into an identity column occur in the scope.

Thursday, August 5, 2010

Wednesday, August 4, 2010

How to truncate transaction log file via sql statement

Sometimes you wish to truncate transaction log file via SQL statement. you don't want to create mess as you would have 24x7 (online) production database and recovery model would also be set to full.

Solution available before SQL SERVER 2005 was very simple. Just run below line and you have achieved your desired results.
backup log dbname with truncate_only

But in SQL SERVER 2005 and above, previous statement generates syntax error as it is no more supported in SQL SERVER 2005 and above. Then what is solution for SQL SERVER 2005 and above. Solution is very simple, a regular BACKUP LOG to a backup device is sufficient. That truncates the log. Use below statements in order to get your desired output
use master
alter database dbname set recovery simple
go
dbcc shrinkdatabase(dbname )
go
alter database dbname set recovery full

go

I hope it will solve your problem

Tuesday, August 3, 2010

Open Source Project Management Tools

Here is list of available project management tools which are currently available for your usage.

  1. Open Proj
  2. Open Workbench
  3. GanTT Project
  4. Trac
  5. Dot Project
  6. Redmine
  7. Achievo
  8. Projectivity
  9. eHour


Find the Most Time Consuming Code in your SQL Server Database

I liked this article. I hope you will also get valuable information from it.

Viewing tempdb Size and Growth Parameters

You can view the size and file growth parameters of the tempdb data or log files by using one of the following methods

SELECT
name AS FileName,
size*1.0/128 AS FileSizeinMB,
CASE max_size
WHEN 0 THEN 'Autogrowth is off.'
WHEN -1 THEN 'Autogrowth is on.'
ELSE 'Log file will grow to a maximum size of 2 TB.'
END,
growth AS 'GrowthValue',
'GrowthIncrement' =
CASE
WHEN growth = 0 THEN 'Size is fixed and will not grow.'
WHEN growth > 0 AND is_percent_growth = 0
THEN 'Growth value is in 8-KB pages.'
ELSE 'Growth value is a percentage.'
END
FROM tempdb.sys.database_files;
GO


Similarly, If the version store is using a lot of space in tempdb, you must determine what is the longest running transaction. Use this query to list the active transactions in order, by longest running transaction.

SELECT transaction_id
FROM sys.dm_tran_active_snapshot_database_transactions
ORDER BY elapsed_time_seconds DESC;

Wednesday, July 7, 2010

Top Ten Questions and Answers on Data

I hope you will love this information posted by Microsoft on MSDN.

Thursday, June 17, 2010

http://gmailblog.blogspot.com/2010/06/tip-5-things-you-may-not-know-you-can.html

http://gmailblog.blogspot.com/2010/06/tip-5-things-you-may-not-know-you-can.html

Monday, June 14, 2010

Extension methods

I liked above article. I hope you will also like it :)

Tuesday, February 2, 2010

Thursday, November 19, 2009

Most of the time, we, developers, creates temp tables in our stored procedures in order to store temporary data. We, sometimes, encounter an issue when we run that stored procedure, we got exception that #temp table already exists and user doesn't get what he wants.



After doing some RnD, i found a solution which really helped me a lot. Please use below TSQL statement(MS SQL SERVER) before you create any temp table.
if object_id('tempdb..#TableName) is not null drop table #TableName
then create your #TableName.
It will definitly help out alot in getting rid of displayed exception.

Tuesday, November 10, 2009

Cannot use a leading .. to exit

Last week, When we moved our application from staging site to production site, we were encountered an interesting exception.


Cannot use a leading .. to exit above the top directory.


Screenshot is attached herewith.





Please note that we are using Master pages in our application and we had included javascripts and CSS files in this master page. After googling through different forums, I found that ../javascript/a.js was causing this error.



Actually, in our staging site, it worked perfectly because ../ was finding parent directory but when that master page moved in parent directory, it didn't had 1 futher parent/top directory. We solved this exception using ~/ sign instead of ../

Tuesday, July 21, 2009

Silverlight 3 Released

Silverlight 3 and associated developer tools have been released. Visit the Get Started page to download all you need to build great Web experiences with Silverlight 3. You can also learn more by watching the new videos, reviewing the QuickStarts, and reading some success stories and what's new in Silverlight 3.

Tuesday, July 7, 2009

Cross Browser Findings

Here are my recent findings that I want to share with all of you:

1:- if there is nested table in a tag and you want to assign ID to this to make it dynamic HTML control, then I will recommend you to assign ID to table and make it HTML control.

Similarly, if you want to make tag as dynamic HTML control, then I will recommend you to make as HTML control instead of .

Happy coding.

Tuesday, June 9, 2009

IIS Search Engine Optimization (SEO) Toolkit

The IIS Search Engine Optimization (SEO) Toolkit helps Web developers, hosting providers, and server administrators improve their sites' relevance in search results by recommending how to make them more search engine-friendly. The IIS SEO Toolkit Beta can be installed with the Microsoft Web Platform Installer 2.0 Beta for use with IIS 7.0 and IIS 7.5. For details, visit IIS site