Viewing 15 posts - 1,006 through 1,020 (of 2,171 total)
SELECT326.76 * 1.105 / 1.21,
CEILING(326.76 * 1.105 / 1.21 * 100.0) / 100
N 56°04'39.16"
E 12°55'05.25"
April 15, 2008 at 8:28 am
You did?
Then I didn't have to explain the algorithm here?
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=100990
N 56°04'39.16"
E 12°55'05.25"
April 15, 2008 at 7:29 am
Why post the same question again when you got an answer here
http://www.sqlservercentral.com/Forums/Topic484231-8-1.aspx
N 56°04'39.16"
E 12°55'05.25"
April 15, 2008 at 2:09 am
http://support.microsoft.com/kb/297466
N 56°04'39.16"
E 12°55'05.25"
April 15, 2008 at 2:06 am
SELECT CONVERT(CHAR(8), DATEADD(SECOND, @Seconds, '00:00:00'), 108)
N 56°04'39.16"
E 12°55'05.25"
April 15, 2008 at 2:01 am
Derek Dongray (4/14/2008)
The only thing I'm dubious about is whether the update will always get the records in...
N 56°04'39.16"
E 12°55'05.25"
April 14, 2008 at 2:53 pm
Also asked and answered here
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=100812
N 56°04'39.16"
E 12°55'05.25"
April 14, 2008 at 3:32 am
Add a
AND t1.id = t2.id
and you produce the same result too!
N 56°04'39.16"
E 12°55'05.25"
April 14, 2008 at 12:53 am
And if "= NULL"
do not work, try "IS NULL" instead.
N 56°04'39.16"
E 12°55'05.25"
April 14, 2008 at 12:47 am
Try this
UPDATEt
SETt.Img = s.Img
FROMMyTable AS t
INNER JOINOPENROWSET(BULK N'C:\Image1.jpg', SINGLE_BLOB) AS s(Img)
N 56°04'39.16"
E 12°55'05.25"
April 12, 2008 at 3:06 pm
An EXISTS might be a better choice depending on number of records.
SELECTp.*
FROML_RPT_INV_PERSON_INFO AS p
WHEREEXISTS (SELECT * FROM L_RPT_INV_INFO AS i WHERE i.INFORMATION_CHANGED_FLAG = 'Y' AND i.RPT_INV_ID = p.RPT_INV_ID AND i.RPT_INV_TP...
N 56°04'39.16"
E 12°55'05.25"
April 12, 2008 at 3:03 pm
From looking at the OP, I would guess a last closing paranthesis...
N 56°04'39.16"
E 12°55'05.25"
April 12, 2008 at 2:59 pm
Try this one...
;WITH Yak (id, st, date, rowid, col)
AS (
SELECTid,
st,
date,
ROW_NUMBER() OVER (ORDER BY id, date),
0
FROM#t
)
SELECTid,
MAX(CASE WHEN col = 0 THEN st ELSE '' END) AS sta,
MAX(CASE WHEN col = 0...
N 56°04'39.16"
E 12°55'05.25"
April 12, 2008 at 1:52 pm
Use NVARCHAR data type.
N 56°04'39.16"
E 12°55'05.25"
April 12, 2008 at 1:27 pm
chris.f (4/10/2008)
2. The script doesn't fit into an nvarchar(max) as there are hundreds of fields in the tables.Is there any way round this?
NVARCHAR(MAX) can hold 1 billion characters. I do...
N 56°04'39.16"
E 12°55'05.25"
April 11, 2008 at 2:06 pm
Viewing 15 posts - 1,006 through 1,020 (of 2,171 total)