Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
Clages1
Yak Posting Veteran
69 Posts |
Posted - 2010-09-17 : 12:16:00
|
Hiin this script in the else conditioni get 19 spaces , but i need Nonethis is to create a TXT file with Pipes |2010-09-17 13:15:21| or|| how can i do this?tks Clagesdeclare @x char(10)set @x = 'xxxx' select case when @x = 'SCAN900' then convert(char(19),getdate(),120) else '' end |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2010-09-17 : 12:26:39
|
[code]declare @x char(10)set @x = 'xxxx'select case when @x = 'SCAN900'then convert(varchar(19),getdate(),120)else ''end [/code]------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
|
|
Clages1
Yak Posting Veteran
69 Posts |
Posted - 2010-09-17 : 13:34:43
|
I am used to use char and forgot varchartks a lotclages |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2010-09-18 : 09:08:11
|
welcome ------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
|
|
|
|
|