Viewing 15 posts - 3,691 through 3,705 (of 4,087 total)
repicurus (6/27/2011)
select replace(convert(char(10), getdate(), 120), '-', '')
How is this an improvement over the code listed below that the OP is already using?
select convert(varchar,getdate(),112)
I can't imagine that the efficiency of converting...
June 27, 2011 at 3:14 pm
thava (6/27/2011)
hope fully this is not a clean one but now it satisfies my condition so any one simplify it
This is a variation of the overlapping date ranges problem. ...
June 27, 2011 at 7:28 am
Selahattin SADOGLU (6/24/2011)
insert into #Personel values('deneme1'),('deneme2'),('deneme3')
insert into #Masa values('Masa1'),('masa2'),('masa3')
This syntax was introduced in SQL 2008. Since you're posting in the SQL 2005 forum and you're getting error messages about...
June 24, 2011 at 7:42 am
Actually what you are looking for is IN itself. There's nothing that requires the left side to be a field and nothing that prevents the right side from being...
June 23, 2011 at 11:44 am
Both WITH CUBE and WITH ROLLUP require that you have a GROUP BY clause, which I don't think that you want to use in this case. The COMPUTE clause...
June 23, 2011 at 7:14 am
One caveat is that in SQL 2008, it automatically takes DST into account, so you'll need to make sure that your UDF also takes that into account.
Drew
June 22, 2011 at 10:08 am
This is datetimeoffset data. It was introduced in SQL2008. It combines datetime data with a time zone offset.
Drew
June 22, 2011 at 8:58 am
Jeff Moden has previously posted about how inefficient it is to convert datetime data to varchar. His most recent post is here http://www.sqlservercentral.com/Forums/FindPost1119797.aspx.
There is a solution that only uses...
June 22, 2011 at 8:34 am
T-SQL does not use the ASCII null character to represent a NULL string. As far as SQL is concerned, there is no difference between ASCII 0 and any other...
June 21, 2011 at 9:17 pm
Andrew Westgarth (6/21/2011)
June 21, 2011 at 3:54 pm
You probably shouldn't be doing this in T-SQL at all. This is a presentation issue and should be left to the presentation layer.
What are you ultimately trying to achieve?...
June 21, 2011 at 2:30 pm
This sounds suspiciously like a homework assignment. Why don't you tell us your thoughts?
Drew
June 21, 2011 at 1:08 pm
Viewing 15 posts - 3,691 through 3,705 (of 4,087 total)