Viewing 8 posts - 1 through 8 (of 8 total)
Thanks Colin
Slowdown happens on both x32 and x64 versions of SQL Server 2008. Memory is either total physical memory on the machine (remove chips), limiting the available memory using...
February 3, 2010 at 11:19 am
If you're only looking for the last record for a specific consumer id, then try
SELECT Consumer_ID, Provider_ID, Effective_Date AS LastVisit
FROM dbo.MHC_Admissions_Provider
WHERE Consumer_ID = 0x0000000000000158
AND Effective_Date = (SELECT MAX(Effective_Date) FROM...
August 5, 2003 at 1:35 pm
If you're only looking for the last record for a specific consumer id, then try
SELECT Consumer_ID, Provider_ID, Effective_Date AS LastVisit
FROM dbo.MHC_Admissions_Provider
WHERE Consumer_ID = 0x0000000000000158
AND Effective_Date = (SELECT MAX(Effective_Date) FROM...
August 5, 2003 at 1:32 pm
Very simple way to get the SQL Servers on the network is to type
isql -L;
from a command line. You'll have to pipe it to a file, then read...
June 3, 2003 at 6:56 am
update db2.dbo.mytext
set spanish = db1.dbo.mytext.spanish
from db1.dbo.mytext inner join db2.dbo.mytext
on db1.dbo.mytext.id = db2.dbo.mytext.id
June 3, 2003 at 5:47 am
I use indexed views in Enterprise, Standard, Developer, and Desktop editions of SQL Server. To ensure that the compiler takes advantage of the indexed view, use the (NOEXPAND) view...
April 3, 2003 at 6:12 am
How about using a derived table to obtain the weekends, then an outer join to return the rows that you want?
SELECT calendar.weekend, RepiD
FROM
(SELECT Weekend
FROM dbo.calendar
WHERE weekend BETWEEN '2003-01-10' AND...
March 24, 2003 at 6:55 am
By prepared statements I mean that the SQL is embedded in the application and SQLPrepare is used to prepare the statement. Then SQLExecute is used with the statement handle...
November 27, 2002 at 7:56 am
Viewing 8 posts - 1 through 8 (of 8 total)