Click here to Skip to main content
15,892,059 members
Home / Discussions / Database
   

Database

 
GeneralRe: data transformation problem for serialised recordsets Pin
uglyeyes17-Apr-08 13:23
uglyeyes17-Apr-08 13:23 
GeneralRe: data transformation problem for serialised recordsets Pin
Blue_Boy17-Apr-08 15:45
Blue_Boy17-Apr-08 15:45 
GeneralRe: data transformation problem for serialised recordsets Pin
uglyeyes17-Apr-08 16:48
uglyeyes17-Apr-08 16:48 
GeneralRe: data transformation problem for serialised recordsets Pin
Michael Potter18-Apr-08 3:57
Michael Potter18-Apr-08 3:57 
GeneralRe: data transformation problem for serialised recordsets Pin
uglyeyes19-Apr-08 17:26
uglyeyes19-Apr-08 17:26 
GeneralRe: data transformation problem for serialised recordsets Pin
Michael Potter21-Apr-08 3:22
Michael Potter21-Apr-08 3:22 
GeneralGrid sorting wont work on live server (Godaddy) [modified] Pin
AlexeiXX317-Apr-08 5:42
AlexeiXX317-Apr-08 5:42 
Questionhow to change the date 5 th dec 2008 to default date in sqlserver2000? Pin
subbu.sk17-Apr-08 3:59
subbu.sk17-Apr-08 3:59 
hi paul...
thank u for ur response .but i found answer for every formate....


but i need to convert dates like o4 th july 2005 or
3rd august 1997
31st december 2000
22nd july 1997....i.e th,nd,rd,....

to default formate..... 04/07/2005,
03/08/1997

helpe with a function.....
i am trying this ,but it convert without th,rd,nd,...

alter FUNCTION [dbo].[GetPhoto](@Photo nvarchar(max),@UploadedDate DATETIME)
RETURNS DATETIME AS
BEGIN
DECLARE @GetDate DATETIME
DECLARE @strDate varchar(24)
SET @GetDate = @UploadedDate
if NOT (@Photo IS NULL)
BEGIN
--RETURN @GetDate
DECLARE @Startposition int
SET @Startposition= patindex('%Date:%', IsNull(@Photo, '') )+5
SET @strDate = SUBSTRING(@Photo,@Startposition,len(@Photo)-@Startposition)
if (len(@strDate ) < 24)
BEGIN
RETURN @GetDate
END
if not (@strDate IS NULL)
BEGIN
SET @strDate = LEFT(@strDate ,patindex('%|%',@strPhotoDate )-1)
SET @strDate = replace(@strDate ,'th','')
SET @strDate = replace(@strDate ,'nd','')
SET @strDate = replace(@strDate ,'rd','')
SET @strDate = replace(@strDate ,'st','')
SET @strDate = replace(@strDate ,',','')
set @GetDate = cast(@strDate as DATETIME)

-- set @GetPhotoDate = convert(char,Convert(DateTime,@strPhotoDate,101))


-- set @GetPhotoDate = cast(CONVERT(datetime,@strPhotoDate)-convert(datetime,substring(@strPhotoDate,3,3)) as datetime)


--cast(@GetPhotoDate as DATETIME)
END
END

RETURN @GetPhotoDate
END
like that...
it will convert the 4/12/2008,4-july-2007....but not converting the 4th july 2008
22nd june 2008.



thanks in advance

Thanks
Subbu.

AnswerRe: how to change the date 5 th dec 2008 to default date in sqlserver2000? [modified] Pin
Blue_Boy17-Apr-08 15:59
Blue_Boy17-Apr-08 15:59 
GeneralRe: how to change the date 5 th dec 2008 to default date in sqlserver2000? Pin
subbu.sk17-Apr-08 20:03
subbu.sk17-Apr-08 20:03 
GeneralINSERT trigger - how to stop the insert from happening. Pin
Paddy Boyd17-Apr-08 3:53
Paddy Boyd17-Apr-08 3:53 
GeneralRe: INSERT trigger - how to stop the insert from happening. Pin
Werries17-Apr-08 9:56
Werries17-Apr-08 9:56 
GeneralRe: INSERT trigger - how to stop the insert from happening. Pin
SimulationofSai17-Apr-08 21:22
SimulationofSai17-Apr-08 21:22 
GeneralSystem.Data.OleDb.OleDbException: Unspecified error Pin
tom8317-Apr-08 3:35
tom8317-Apr-08 3:35 
GeneralRe: System.Data.OleDb.OleDbException: Unspecified error Pin
Kschuler17-Apr-08 10:37
Kschuler17-Apr-08 10:37 
Generalline 18 is getting error near ''this codes(mysql) Pin
srinivassam17-Apr-08 0:53
srinivassam17-Apr-08 0:53 
GeneralRe: line 18 is getting error near ''this codes(mysql) Pin
R. Giskard Reventlov17-Apr-08 1:16
R. Giskard Reventlov17-Apr-08 1:16 
GeneralCopy from one table into another Pin
.NET- India 17-Apr-08 0:52
.NET- India 17-Apr-08 0:52 
GeneralRe: Copy from one table into another Pin
pmarfleet17-Apr-08 1:57
pmarfleet17-Apr-08 1:57 
GeneralRe: Copy from one table into another Pin
SimulationofSai17-Apr-08 3:04
SimulationofSai17-Apr-08 3:04 
Generalmysql provider problem Pin
srinivassam17-Apr-08 0:28
srinivassam17-Apr-08 0:28 
GeneralERROR:40 Pin
A-MEN16-Apr-08 22:02
A-MEN16-Apr-08 22:02 
GeneralRe: ERROR:40 Pin
R. Giskard Reventlov16-Apr-08 23:36
R. Giskard Reventlov16-Apr-08 23:36 
GeneralConvert date formate 4th april 2008 to default date formate Pin
subbu.sk16-Apr-08 21:47
subbu.sk16-Apr-08 21:47 
GeneralRe: Convert date formate 4th april 2008 to default date formate Pin
pmarfleet16-Apr-08 22:18
pmarfleet16-Apr-08 22:18 

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.