Praveen's Tech Blog
Tuesday, December 28, 2010
SQL Server - Cursors
Today I was writing a stored procedure and had to use a lot of cursor to accomplish the task, then I got a doubt does extensive use of cursor affect the performance to the stored procedure?. Then I started to search the internet and the following is the result
What is a cursor?
A cursor is a set of rows together with a pointer that identifies a current row.
Cursor is a database object used by applications to manipulate data in a set on a row-by-row basis, its like recordset in visual basic.
A simple example of a cursor
DECLARE @OrderID INT
DECLARE cursor_getOrderID CURSOR
SET cursor_getOrderID = CURSOR FOR SELECT OrderID FROM Orders
OPEN cursor_getOrderID
FETCH NEXT FROM cursor_getOrderID INTO @OrderID
WHILE @@FETCH_STATUS = 0
BEGIN
PRINT @OrderID
FETCH NEXT FROM cursor_getOrderID INTO @OrderID
END
CLOSE cursor_getOrderID
DEALLOCATE cursor_getOrderID
Using Cursors affect Performance?
Cursors can affect performance if you use them to keep locks on data.
Some alternatives to using a cursor:
Use WHILE LOOPS
Use temp tables
Use derived tables
Use correlated sub-queries
Use the CASE statement
Perform multiple queries
Praisy Technologies
I came across a start up web site design and development company in chennai. They are a group who are aiming to make it big in the IT industry.Presently they are doing web site design and development. Take time to visit them at www.wix.com/praisytech/index.
Sunday, December 26, 2010
Super Star on the Internet
Super Star on the Internet. DaiGoogle
Rajni Kanth the super star of South India . Has once again proved he is the one and only super star by having a customized google search engine page. The webpage has the superstar doodle. No wonder the webpage has been attracted by thousand of fans and has more than 10000 fans on facebook.
Kaspersky Internet Security 2011 - Best Anti Virus
After using many antivirus software in my computer, Last week I installed Kaspersky Internet Security 2011. I was surprised to find a lot of malwares and a few visues that was detected in the full scan. I was surprised because the previous antivirus that I was using could not detect them. I think you will be forced to ask me the following question.
Why Kaspersky?
The following are certain points which makes Kaspersky Internet Security 2011 stand out from others.
Full Scan
- The effectiveness of detecting viruses and malwares. The speed of the scan was good. The system performance was in no way affected by the scan
Critical Area Scan
The critcal are scan, scans objects that are loaded at startup, system memory, boot sector and other objects that have been added by the user
Vulnerablity Scan
The vulnerability scan detects malicious programs’ activity. It also detects anomalies and damages to Operating system and browser. It also looks for vulnerable services that can potentially harm the system. The results are logged in the Kaspersky Internet Security Report
Safe Run
This is one feature which I admire the most it provided a safe area where you can execute applications, which you do not trust and are suspicious that it may harm the system
There is also a safe run for websites for testing out vulerable websites.
Labels:
2011,
Internet security,
Kaspersky Internet,
Praveen
Friday, December 24, 2010
APad

Today While searching on the internet for the IPad, I came accross the China made APad. It looks similar to the IPad but has the following configuration
APad Specifications
Dimensions(HWD): 190.5×118.5×14.7mm
Weight: 332g
CPU Processor Speed: 600MHz/500 MHz DSP
Memory/ROM: 2 GB
Memory/RAM: 128MB+
Memory Slot: T-flash
Camera: 30W to 130W Pixels digital camera
Color Display: 7 inch TFT LCD with Resistance Touch Screen
Resolution: 800×480
Battery Type: rechargeable Polymer battery.
Battery Capacity: 3000mAh
USB: Yes, Mini USB 2.0
Speaker: Yes
G Sensor: Yes
I/O Ports: Mini USB 2.0, T-flash, 3.5mm headphone, In-built microphone.
Wireless Network: WiFi 80211b/g
Software: OS Android 1.5
Browser: Google Browser
Video: MKV(H.264 HP), AVI, RM, RMVB, FLV,MPEG-1, MPEG-2
Music: MP3, WMA, APE, FLAC, AAC, AC3,WAV
Photo: JPEG, BMP, GIF, PNG, TIFF
E-mail: G-mail
GPS: Google Map
Suggest me if this will be worth buying. If any of you own a APad send me your comments on the product.
Subscribe to:
Posts (Atom)