Friday, April 16, 2010

UN Report on BB’s death

Musharraf may not be directly responsible for BB’s death, but he’s certainly responsible indirectly. All he had to do was to provide her with more security, but him and Q government completely failed when it came to this. It was in their interest if there was no BB. They did not kill her, but they watched her get killed and did not do anything to stop it. We can say that they used terrorists to get rid of BB.

Zaradari must be the luckiest man when it comes to accidents. The accidental death of Benazir made him president of a country with the help of sympathy vote. I still wonder, despite Benazir’s death, how many people would have voted for him if they knew that Zardari would become President of Pakistan. This is going to be a significant factor in future elections.

Tuesday, March 16, 2010

SQL SERVER – Simple Example of Cursor

UPDATE: For working example using AdventureWorks visit : SQL SERVER – Simple Example of Cursor – Sample Cursor Part 2

This is the simplest example of the SQL Server Cursor. I have used this all the time for any use of Cursor in my T-SQL.
DECLARE @AccountID INT
DECLARE
@getAccountID CURSOR
SET
@getAccountID = CURSOR FOR
SELECT
Account_ID
FROM Accounts
OPEN @getAccountID
FETCH NEXT
FROM @getAccountID INTO @AccountID
WHILE @@FETCH_STATUS = 0
BEGIN
PRINT
@AccountID
FETCH NEXT
FROM @getAccountID INTO @AccountID
END
CLOSE
@getAccountID
DEALLOCATE @getAccountID

Reference: Pinal Dave (http://www.SQLAuthority.com),

Discussion on current world issues,Sql Server Articals, donet Articalst