Click here to Skip to main content
15,884,472 members
Home / Discussions / Database
   

Database

 
Questionconvert EMPTY fields to NULL? Pin
John Sundar18-Mar-08 1:35
John Sundar18-Mar-08 1:35 
GeneralRe: convert EMPTY fields to NULL? Pin
Krish - KP18-Mar-08 1:43
Krish - KP18-Mar-08 1:43 
GeneralRe: convert EMPTY fields to NULL? Pin
Krish - KP18-Mar-08 2:01
Krish - KP18-Mar-08 2:01 
GeneralRe: convert EMPTY fields to NULL? Pin
John Sundar23-Mar-08 19:51
John Sundar23-Mar-08 19:51 
GeneralRe: convert EMPTY fields to NULL? Pin
SeeSharp18-Mar-08 21:10
SeeSharp18-Mar-08 21:10 
GeneralRe: convert EMPTY fields to NULL? Pin
John Sundar23-Mar-08 19:49
John Sundar23-Mar-08 19:49 
GeneralGetting StartDate and EndDate using SQL query Pin
meeram39518-Mar-08 0:08
meeram39518-Mar-08 0:08 
GeneralRe: Getting StartDate and EndDate using SQL query Pin
Krish - KP18-Mar-08 1:29
Krish - KP18-Mar-08 1:29 
Getting End Date
1. Add 1month to the given date taking 1st day and year of given date
2. which returns 1st of next month from given date
3. subtract 1day which returns last day of given month

DECLARE @GivenDate AS DateTime<br />
SET @GivenDate = GetDate()<br />
SELECT DateAdd(DD, -1, DateAdd(MM, 1, Cast(Month(@GivenDate) AS VarChar(2)) + '/01/' + Cast(Year(@GivenDate) AS VarChar(4))))



Getting Start date
similar to the end date take day as 1 with month & year from given date

Regards
KP

GeneralRe: Getting StartDate and EndDate using SQL query Pin
meeram39518-Mar-08 3:55
meeram39518-Mar-08 3:55 
Generalsql query Pin
rameshdontagani17-Mar-08 18:30
rameshdontagani17-Mar-08 18:30 
GeneralRe: sql query Pin
pmarfleet17-Mar-08 20:48
pmarfleet17-Mar-08 20:48 
GeneralRe: sql query Pin
SeeSharp18-Mar-08 23:54
SeeSharp18-Mar-08 23:54 
GeneralError on Mapping an UDT Pin
faehne17-Mar-08 11:13
faehne17-Mar-08 11:13 
GeneralReporting Services: Draw rectangle on chart's plot area Pin
Mark J. Miller17-Mar-08 9:47
Mark J. Miller17-Mar-08 9:47 
GeneralRe: Reporting Services: Draw rectangle on chart's plot area Pin
pmarfleet17-Mar-08 10:23
pmarfleet17-Mar-08 10:23 
GeneralRe: Reporting Services: Draw rectangle on chart's plot area Pin
Mark J. Miller17-Mar-08 10:54
Mark J. Miller17-Mar-08 10:54 
GeneralRe: Reporting Services: Draw rectangle on chart's plot area Pin
pmarfleet17-Mar-08 11:25
pmarfleet17-Mar-08 11:25 
GeneralRe: Reporting Services: Draw rectangle on chart's plot area Pin
Mark J. Miller17-Mar-08 11:32
Mark J. Miller17-Mar-08 11:32 
QuestionSaving Bitmap File To MS Access 2003 Problem Pin
cyberE-gor17-Mar-08 8:32
cyberE-gor17-Mar-08 8:32 
GeneralRe: Saving Bitmap File To MS Access 2003 Problem Pin
Christian Graus17-Mar-08 10:09
protectorChristian Graus17-Mar-08 10:09 
GeneralSQL DTS Pin
kibromg17-Mar-08 7:08
kibromg17-Mar-08 7:08 
GeneralRe: SQL DTS Pin
Mark J. Miller17-Mar-08 9:58
Mark J. Miller17-Mar-08 9:58 
GeneralSQL reporting Services 2000 Pin
imnotso#17-Mar-08 5:09
imnotso#17-Mar-08 5:09 
Questionhow to insert datatable rows into database ??????? Pin
md_azy17-Mar-08 0:29
md_azy17-Mar-08 0:29 
GeneralRe: how to insert datatable rows into database ??????? Pin
Mark J. Miller17-Mar-08 4:25
Mark J. Miller17-Mar-08 4:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.