Viewing 13 posts - 16 through 29 (of 29 total)
Excellent points brought up by the author of 40 Years of Programming ! I don't think he or she was wanting paper documentation to come back -- all they wanted...
July 21, 2017 at 8:31 am
Sounds good, however, you could comment out the following line and everything will still work:
IF ((@lat1 = @lat2) AND (@lon1 = @lon2)) RETURN 0
Also, see the wiki article regarding...
February 3, 2016 at 8:02 am
I had the same problem years ago. You have to do an interim check to the value you send to ACOS; see function below ...
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
/*
*...
February 2, 2016 at 8:37 am
Ha! - store *every* column as VARBINARY(max) and never worry about data types again!
January 31, 2015 at 3:06 pm
Nice article Gail...
Which brings up MY question regarding data types...
Using MS SQL Server -- I'll be working on a project in the near future where we need to store latitude...
January 31, 2015 at 10:33 am
Andrew G,
Brilliant -- Thanks!
I also found the following, which could be useful once you have a list of all the procedure names:
/*
* Returns the source text for the stored procedure...
June 25, 2013 at 10:21 pm
Wesley Norton ...
Yes! -- the database I was checking was inherited (from SQL 2000) and I did not know the compatibility mode was still at 80 !!!
Thanks!!
July 9, 2012 at 10:02 am
Ok -- here is the script I tried -- (basically, I just removed ALL comments):
;with PerformanceMetrics
as
(
select
substring
(
dest.text,
statement_start_offset/2,
case when statement_end_offset = -1 then LEN(dest.text)
else statement_end_offset
end /2
) as 'Text of the SQL' ,
deqs.plan_generation_num...
July 6, 2012 at 11:01 am
Hello,
Still no luck; I copied and pasted the script you posted here. SQL 2008 R2 displays the following:
Msg 102, Level 15, State 1, Line 51
Incorrect syntax near '.'.
Tried to...
July 6, 2012 at 10:32 am
I must be missing something, when I cut-and-paste the query into SQL, I get the following:
Msg 102, Level 15, State 1, Line 53
Incorrect syntax near '.'.
tried on Microsoft SQL Server...
July 5, 2012 at 7:50 pm
Ok -- thanks,
With regard to "making things faster" -- what do people normally do -- rename every stored procedure and then go through all the code and rename as well?...
May 20, 2011 at 1:26 pm
The formula given is the "law of cosines" -- the constant 3963.0 is the earths mean radius (in miles).
To change the formula to km, replace 3963.0 with 6371.0
Altenatively, and I...
April 15, 2011 at 7:14 am
Hi Jeff,
Yes -- as a programmer, it was natural to think of a solution using bitmasks; and it actually works fairly well on SQL server -- however, I am open...
March 6, 2011 at 11:15 am
Viewing 13 posts - 16 through 29 (of 29 total)
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy