Aug 5, 2011

Iftaar Timing Noida Delhi 2011


Noida & Delhi

Date

Day

Sehar

Iftar

Date

Day

Sehar

Iftar

2-Aug

Tue

4:16

7:12

17-Aug

Wed

4:28

7:00

3-Aug

Wed

4:17

7:12

18-Aug

Thu

4:29

6:59

4-Aug

Thu

4:18

7:11

19-Aug

Fri

4:30

6:58

5-Aug

Fri

4:19

7:10

20-Aug

Sat

4:30

6:57

6-Aug

Sat

4:19

7:09

21-Aug

Sun

4:31

6:56

7-Aug

Sun

4:20

7:09

22-Aug

Mon

4:32

6:55

8-Aug

Mon

4:21

7:08

23-Aug

Tue

4:32

6:54

9-Aug

Tue

4:22

7:07

24-Aug

Wed

4:33

6:53

10-Aug

Wed

4:23

7:06

25-Aug

Thu

4:34

6:52

11-Aug

Thu

4:23

7:05

26-Aug

Fri

4:35

6:50

12-Aug

Fri

4:24

7:04

27-Aug

Sat

4:35

6:49

13-Aug

Sat

4:25

7:03

28-Aug

Sun

4:36

6:48

14-Aug

Sun

4:26

7:03

29-Aug

Mon

4:37

6:47

15-Aug

Mon

4:26

7:02

30-Aug

Tue

4:37

6:46

16-Aug

Tue

4:27

7:01

31-Aug

Wed

4:38

6:45


Jun 26, 2011

MOTHERS & CHILDRENS


Pencil: I'm sorry
Eraser: For what? You didn't do anything wrong.
Pencil: I'm sorry cause you get hurt because of me. Whenever I made a mistake, you're always there to erase it. But as you make my mistakes vanish, you lose a part of yourself. You get smaller and smaller each time.
Eraser: That's true. But I don't really mind. You see, I was made to do this. I was made to help you whenever you do something wrong. Even though one day, I know I'll be gone and you'll replace me with a new one, I'm actually happy with my job. So please, stop worrying. I hate seeing you sad. :)

I found this conversation between the pencil and the eraser very inspirational.

Mother is like the eraser whereas their children are the pencil.
She is always there for their children, cleaning up their mistakes.
Sometimes along the way...  She get hurt, and become smaller (older, and eventually pass on).
Though her children will eventually find someone new (spouse), but she is still happy with what she do for their children, and will always hate seeing her precious ones worrying, or sad.
This is to all the MOTHERS & CHILDRENS..............!!!!!!!!!!!!!!!!!
Ref: Dont know the origin but I get it from Ahsan
P.S. Thanks a lot (whomsoever compose it) for writing such a wonderful inspirational message..

Feb 20, 2011

How to pass variable to sql script from batch file?


How to pass variable to sql script from batch file?
1.       Create a Table called Employees
id int
fname varchar(50)
lname varchar(50)
dept varchar(10)

2.       Insert few records into it as
Id            fname                   lname                   dept
01           Mohd                    Irfan                      IT
02           Gaurav                  Thakur                  IT
03           Animesh              Mishra                  Security
04           Ashok                   Roy                        Admin
3.       Create the sql script as getEmployees.sql
use $(dbname)
select * from $(tablename)

4.       Create the runsqlscript.bat file for running the sql script as below.
sqlcmd -S %1 -i getEmployees.sql -v dbname = %2 tablename = %3 -o %4

5.       Run this command from cmd.
>runsqlscript.bat SQLServerName DBName Employees D:\EmployeesList.txt


Sep 2, 2010

HCL Care Noida

Hcltouch Number for Noida - 18601800425
For Desktop - Monday to Saturday 9:00 AM to 5:00 PM
For Labtop - 24x7
 

Mar 18, 2010

Equivalent SQLWB Command in SLQ 2008

Run command for opening SQL2005 management studio is SQLWB, however the same is not availabl ein sql 2008.
So what is the run command for SQL 2008
 
 
Its SMSS
 
Go to Start -> RUN
Type SSMS
Click Enter
 
And here you are with SQL2008 Management Studio.
 
 

Jan 22, 2010

It is possible to have dynamic query in LINQ?

It is possible to have dynamic query in LINQ?

var data = items in ItemsList
where items='some condition'
select items;


The above query is static query as its already written and it will be executed good.

I wanna know if we can make the same query into some string and exec the same??

Jan 18, 2010

Can SQL Mirroring be implemented on .NET 1.1

The straight answer is NO, let me find some tweeks and update this topic.

And yes its true, for mirroring , failover implementation it need to provide the failover partner into the connection string which is not supported for .NET Framework 1.1 and 1.0.


http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlconnection.connectionstring.aspx


Key: Failover Partner
Default Value : N/A
Description: The name of the failover partner server where database mirroring is configured.
The Failover Partner keyword is not supported by .NET Framework version 1.0 or 1.1.

SQL - Difference between CAST,CONVERT and PARSE

TODO---