Viewing 15 posts - 5,701 through 5,715 (of 13,460 total)
that is not a valid xml/html entity character;
it has to be escaped as [amp]pound; or & pound;(no space between...hard to describe html on the forum)
http://www.w3schools.com/html/html_entities.asp
the full list of entities to...
Lowell
March 28, 2012 at 5:40 am
this index:
CREATE NONCLUSTERED INDEX other_systems on MyTable(
other_system_id ASC
)
INCLUDE (other_system_key)
would be good for qa query like
SELECT
other_system_id,
other_system_key
FROM MyTable
WHERE other_system_id = 42
it would not benefit a query...
Lowell
March 27, 2012 at 2:20 pm
i know you can force a query to use a specific index, would that help?
SELECT ContactID
FROM Person.Contact WITH (INDEX(AK_Contact_rowguid))
Lowell
March 27, 2012 at 1:43 pm
i do it the same way, strictly because I'm sending individualized emails; the typical "Dear [Firstname]" emails to each email address i get from multiple rows in a...
Lowell
March 27, 2012 at 12:55 pm
try this at the end, instead of the wordier version; i'm using isnull to do the same basic logic as the if statements.
--even this test is not necessary...but left so...
Lowell
March 26, 2012 at 2:31 pm
that was a minor syntax issue...the where statemetn was occurring before the join;
change to this:
SELECT
lw.name_code, lw.nc_seq, lw.name_type, lw.age, lw.race, lw.sex,
split.ItemNumber,
Item = CAST(REPLACE(QUOTENAME(split.Item,'"'),'"','') AS integer)
FROM [FAYOSSIRMS].[rms].[dbo].[lwnames]...
Lowell
March 26, 2012 at 2:22 pm
where the sample values 'abcd' and 'ijkl' there to show that the clientid is alphanumeric, or are all the id's really numeric?
if they are numeric, you can convert them to...
Lowell
March 26, 2012 at 8:43 am
remove the GO statements.
a GO statement ends the previous batch,and destroys the declared variables as well.
if you remove the GO statmeents, the variables will still be there, and you are...
Lowell
March 26, 2012 at 6:09 am
assuming all the values are numeric, you should explicitly convert it to int inside the sum:
SUM (CONVERT(int,ZL_Count))
alternatively, the better solution is to make sure your destination table has that column...
Lowell
March 26, 2012 at 6:06 am
dastagiri16 (3/24/2012)
hi,Thanks for replying ...
It is not working in all cases suppose the seconds is more than 100 hours its showing wrong .
Thanks,
Dastagiri.
so...yo want elapsed time converted to years:months:hours:minutes:seconds, and...
Lowell
March 24, 2012 at 4:01 pm
rounding inside the sum can lead to some varying results;
look at this based on your sample data...the rounding to money is quite a bit different.
/*4470487.674470487.76384470487.66999997*/
select SUM(convert(decimal(10,2),number,2)),
SUM(convert(money,number,2)),
sum(round(number,2))
from #temp
Lowell
March 23, 2012 at 1:48 pm
I had a requirement like that, and I generated the reports separately,and then used pdfmergerSB545.jar to join multiple PDF's together; in that way, i was able to get some reports...
Lowell
March 23, 2012 at 1:16 pm
nathan 7372 (3/23/2012)
I'm experiencing some unexpected behavior using rounds and sums on a floating point column. This is my query.
SELECT
sum(round([Refund],2))
FROM [MyDatabase].[TotalRefunds]
The...
Lowell
March 23, 2012 at 1:12 pm
the spaces in the file names makes it hard to do also;
i tried splitting the data on the slahses, and i'm not getting all teh possible results so far.
with mySampleData(id,val)
AS
(
SELECT...
Lowell
March 23, 2012 at 12:25 pm
pragyan.banerjee (3/23/2012)
Hi,This is the exact error I am getting
Server: Msg 8115, Level 16, State 2, Procedure dateadd1, Line 13
Arithmetic overflow error converting expression to data type datetime.
if that inner function...
Lowell
March 23, 2012 at 11:53 am
Viewing 15 posts - 5,701 through 5,715 (of 13,460 total)