Viewing 15 posts - 3,841 through 3,855 (of 8,416 total)
COldCoffee (4/14/2010)
...i am giving u a vague and rogue code...
Rogue code is right 😉
This extended stored procedure is undocumented and might stop working one day, format your hard drive, or...
April 16, 2010 at 6:09 am
Jeff Moden (7/25/2009)
...I'm a bit touchy because I'm trying to quit smoking, again...
Good job I'm never giving up 😉
April 16, 2010 at 5:38 am
Stefan_G (4/15/2010)
I just thought of another even more efficient way of solving this problem.
You don't even need to go to the trouble of creating the invalid/unknown groups - just use...
April 16, 2010 at 5:35 am
Two things on the PARSENAME conversion routines:
First, T-SQL scalar functions have no place in this world - the routines would be much more happily expressed in an in-line table-valued function.
Second,...
April 16, 2010 at 4:28 am
cheyursenthil (4/15/2010)
alter table <TABLENAME> add gid timestamp
delete from <TABLENAME> where gid not in(select max(gid) from <TABLENAME> group by Field1,Field2)
alter table <TABLENAME> drop column gid
Note: Field1,Field2...
April 16, 2010 at 12:23 am
RBarryYoung (4/14/2010)
April 14, 2010 at 11:36 pm
Stefan_G (4/14/2010)
I think the concept of Class A-E of ip-adresses is actually obsolete.
Agreed. I was using 'class A' as a quick way to refer the the first octet -...
April 14, 2010 at 5:41 pm
Stefan_G (4/14/2010)
Here is a script that tests the two different methods (hash based and range based)
Thanks - that clarifies the details of the 64K range idea nicely 🙂
Of course, I...
April 14, 2010 at 5:29 pm
PaulB-TheOneAndOnly (4/14/2010)
kiran.hegde (4/12/2010)
However when a SQL Server instance is upgraded, the value should be NULL for all databases on the sql instance.
Who said that?
Documentation Paul provided clearly reads "master" database...
April 14, 2010 at 4:45 pm
bobmclaren (4/14/2010)
I was finally able to get around to changing that code and implemented the permanent table solution. As a result, the default trace logs...
April 14, 2010 at 4:43 pm
Always nice to get a happy ending 🙂
April 14, 2010 at 4:33 pm
Stefan_G (4/14/2010)
I am not trying to be defensive about anything, I am just discussing the relative merits of two different methods to solve a quite interesting problem.
Great! Because I...
April 14, 2010 at 8:25 am
Stefan_G (4/14/2010)
Unfortunately If I am not missing something, it will not really work correctly.Consider the following consecutive rows in the IpToCountryMap table:
Your US IP address range is 6.0.0.0 to 7.57.75.31...
April 14, 2010 at 7:24 am
One other thing, timotech:
TOP 100 Percent ORDER BY Considered Harmful:
http://blogs.msdn.com/queryoptteam/archive/2006/03/24/560396.aspx
April 14, 2010 at 4:07 am
Just in case anyone finds it useful, here's the code I used to compact the records:
-- Compacted version of the full allocated-IPs table
CREATE TABLE dbo.IPtoCountryMap
...
April 14, 2010 at 3:11 am
Viewing 15 posts - 3,841 through 3,855 (of 8,416 total)