Viewing 15 posts - 13,936 through 13,950 (of 14,953 total)
Have you tried copy-and-pasting the value of the @cmdstr variable into the shell and running it that way? Or have you typed it in yourself? (I see that...
April 30, 2008 at 12:39 pm
padmaja.mantha (4/29/2008)
April 30, 2008 at 12:37 pm
My fault. I forgot a pair of parentheses when I was converting this from the function I use.
Here you go:
abs(3959 * ATAN(SQRT(1 -
...
April 30, 2008 at 12:31 pm
What does the select do if you run it without the insert? How about if you run it without the inline function?
April 29, 2008 at 2:26 pm
A partitioned table might allow you to do that, but not a regular table.
April 29, 2008 at 2:22 pm
The main thing is don't skimp on it. Let TempDB grow. Start out with it pretty big, so it doesn't have to stop and grow all the time.
Pick...
April 29, 2008 at 1:56 pm
Tomm Carr (4/29/2008)
April 29, 2008 at 1:52 pm
In what way is it not working?
Doesn't give you the results you expect?
Causes an error?
Something else?
April 29, 2008 at 1:42 pm
That way of getting the running total will work, but it is a slow way to do it. There's another way, using an inline variable, that was in the...
April 29, 2008 at 1:38 pm
That looks like a valid select statement to me. What's your create statement for the view?
April 29, 2008 at 1:32 pm
The reason changing to float worked is because 50/69, in Integer, is 0. In Float/Real, it's .72464. Makes a big difference in the calculation.
Here's a formula for distance:
declare...
April 29, 2008 at 1:29 pm
The problem with having a unique key on SSN is that it only allows 1 row with null. But what happens if you have employees in other countries where...
April 29, 2008 at 12:53 pm
I missed that @Radius is declared as Int. Change that to Float too, please.
April 29, 2008 at 12:41 pm
In SQL 2005, running xp_cmdshell is turned off by default. Have you turned it on?
April 29, 2008 at 12:37 pm
It looks to me like your pseudo code is just a few table names and such away from being actual code.
Can you be specific as to the difficulty you're having...
April 29, 2008 at 12:30 pm
Viewing 15 posts - 13,936 through 13,950 (of 14,953 total)