Viewing 15 posts - 1 through 15 (of 24 total)
Why not just ask it?
SELECT max_workers_count
FROM sys.dm_os_sys_info;
July 5, 2019 at 1:42 pm
"I don't know why they made this decision instead of structuring things like this..."
Because ANSI SQL.
April 17, 2018 at 12:11 pm
Much better article at http://rusanu.com/2010/03/26/using-tables-as-queues/
April 5, 2010 at 5:00 am
DELETE t
FROM dbo.mt_fact_scanned t JOIN
(SELECT recipient_id, time_id, sender_id, sender_ip, MAX(msg_count) MaxCount
FROM dbo.mt_fact_scanned
GROUP BY recipient_id, time_id, sender_id, sender_ip)x
ON t.recipient_id = x.recipient_id AND t.time_id = x.time_id
AND t.sender_id = x.sender_id AND...
September 17, 2009 at 7:12 pm
kamau.john (9/17/2009)
Nevermind, figured it out. I"ll wrap the search param with % before suppling sp_executesql.
Or you can wrap the param in the dynamic code.
Set @sql = 'SET @ss...
September 17, 2009 at 7:45 am
This is an interesting sequence of questions... :Whistling:
EXEC sp_helpdb;
You are on your own to break the sa password.
September 17, 2009 at 7:27 am
UPDATE t SET yield = b.yield + DATEDIFF(d,b.date,t.date)*1. / DATEDIFF(d,b.date,a.date) * (a.yield - b.yield)
FROM
dbo.mytable t JOIN
(SELECT id,
(SELECT TOP 1 id
FROM dbo.mytable
WHERE service = m.service AND...
September 17, 2009 at 7:16 am
Jeff Moden (9/16/2009)
September 16, 2009 at 11:52 am
SQL Server takes care of concurrency issues for you, which is reason to try and use it instead of write your own. As I write, one statement is an atomic...
September 16, 2009 at 11:34 am
You do not need most of that code. You can do it in one statement, and one statement is an atomic transaction.
CREATE PROCEDURE dbo.usp_GetNextNumber @pNumberRange AS nvarchar(20), @pNextValue AS int...
September 16, 2009 at 10:40 am
Jean-Sebastien Carle (8/19/2009)
HansVE (8/19/2009)
1. You do not know of subnetting?Subnetting can easily be achieved using bitmasking on integer IPs. The following will yield 192.168.1.0 :
SELECT [dbo].[IPAddressToString]([dbo].[IPAddressToInteger]('192.168.1.1') & [dbo].[IPAddressToInteger]('255.255.255.0'))
I guess the...
August 19, 2009 at 11:39 am
DC (8/19/2009)
August 19, 2009 at 11:02 am
rja.carnegie (8/19/2009)
lhowe (8/19/2009)
August 19, 2009 at 9:26 am
nimdil (8/19/2009)
The idea with four columns - while not bad - has some flaws:
1. There is no merits with 1NF as IP address is a complete being. Would you store...
August 19, 2009 at 7:49 am
I store these as four tinyint columns. Also uses just four bytes but is human-readable, does not require all your conversions, has implicit validation, and better meets the 1NF...
August 19, 2009 at 6:16 am
Viewing 15 posts - 1 through 15 (of 24 total)