How to Create or Delete A Service in Windows XP

August 16, 2008

(0) Comments

To Create A Service

* Start | Run and type cmd in the Open: line. Click OK.
* Type: sc create
* Reboot the system

To Delete A Service

* Start | Run and type cmd in the Open: line. Click OK.
* Type: sc delete
* Reboot the system

SQL Basic #1 : How to get date value in SQL query?

August 14, 2008

(2) Comments

Disclaimer : This tutorial is meant for beginners and for anyone who find it useful. The main purpose of this post to keep everything i find useful for future reference for myself and for others.

This small tutorial is to show how to get particular date part of from a date value field in SQL Server query.

select sales_date,
Day(sales_date) as Day,
Month(sales_date) as Month,
Year(sales_date) as Year,
Day(getDate()) as Current_Day,
Month(getDate()) as Current_Month,
Year(getDate()) as Current_Year
from sales_detail

Result
Query Result

In above query my date field is sales_date , using Day , Month and Year function i can get the particular date part by passing sales_date as parameter. This is to get date part value from a particular field value.

To get date part from current date is almost same only passing the current date as parameter. To get current date use getDate() function which will return the current date.

BALA SINGAM

, , , , , , ,


1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
Loading ... Loading ...

ReportViewer print problem – Security Patch KB925902

August 12, 2008

(1) Comment

Few weeks back , I have this reportviewer printing problem during our UAT. When user click the print button in reportviewer the machine died and reboot :( , and its only happen in few machine. In others machine reportviewer working fine.

Further finding shows only the machines that have installed the Security Patch KB925902 facing this problem.

The problem

The user machine crash and reboot when users click print button in reportviewer.

Cause

The problem exist after the installation of Security Patch KB925902 and microsoft site reported following models of printers effected

Ricoh LAN Fax Driver
Gestetner P7026n PCL
Ricoh Laser AP2600N PCL
HP LaserJet 9050
HP LaserJet 4200
HP 4050 PCL6
HP LaserJet 4345 PCL 6
Canon Pixma MP170

The site also stated

This problem occurs when a printer driver makes a call that has invalid parameters to the Win32K.sys component. This problem affects the following printer drivers:

Solution

I guess you already know , yes apply another hotfix , KB 935843

BALA SINGAM

, , , , ,


1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
Loading ... Loading ...