Viewing 15 posts - 10,906 through 10,920 (of 13,462 total)
it's the shortcut SQL uses for data types; integer divided by integer yields an integer result.
multiply either the numerator or denominator by 1.0 and you'll get your 0.17
June 30, 2009 at 7:12 pm
lk (6/30/2009)
Hi, Lowell:Thank you--this will save me a lot of typing! I also enjoyed your use of the word "doink" in your comments. 😛 This is very much appreciated!
your welcome!
it...
June 30, 2009 at 10:26 am
i have already done something very similar...this code may help out, or just complicate matters...
it's a huge stack of updates to a temp table, so I could review the old...
June 30, 2009 at 10:11 am
you error message is not related to your (max) string, it's related to a specific varchar/char column in the sql statement you built...
if a column has a definition of a...
June 30, 2009 at 9:58 am
ahh i see what you are after...i think you'll end up finding that all the DMV's get set to zero whenever the server is stopped and started, though right?
so...
June 30, 2009 at 9:54 am
i think the original poster wanted a different database, not necessarily a different server, right?
a simple trigger like:
CREATE TRIGGER TR_MyTrigger On SomeTable
FOR UPDATE
AS
BEGIN
UPDATE MyAlias
SET col1 = INSERTED.col1,
col2=INSERTED.col2
...
FROM INSERTED
INNER...
June 30, 2009 at 7:28 am
jabba (6/30/2009)
June 30, 2009 at 7:11 am
not enough information to help you; you can see how long a command took with a trace or by setting SET STATISTICS TIME ON , but not an estimated time,...
June 30, 2009 at 7:05 am
your co workers are under informed, I think.
when you move the primary key/clustered index of a table to a new file group, you move it's data as well.
example:
CREATE...
June 29, 2009 at 11:01 pm
there's a pretty good thread on the issue here, but it may or may not be the same thing you are experiencing:
it seems the default behavior of SQL 2005 changed,...
June 29, 2009 at 12:03 pm
well, just as the error message says, the first thing I'd do is check to see if the server allows remote connections:

This issue vs your credentials in your signature don't...
June 29, 2009 at 11:34 am
the above trigger example assumes thre would only be ONE row ever updated at any one time...it best practice is to assume more than one row comes from the INSERTED...
June 29, 2009 at 9:02 am
yeah i agree; either fix the data, or the one parameter raising the issue. I would not try to change hundreds of other parameters...to many things for the QA team...
June 29, 2009 at 8:56 am
@Param1 NUMERIC(2, 0)---this says the definition is 2 digits, none after the decimal....but you are assigning a 5 digit number to it: @Param1 = 92229.0
since the biggist...
June 29, 2009 at 7:47 am
he can use a case statement to group them horizontally;
well...three case statements, right?
case
when c1 <= c2 and c1 c1 and c2 <= c3 then c2....
June 29, 2009 at 7:42 am
Viewing 15 posts - 10,906 through 10,920 (of 13,462 total)