Viewing 15 posts - 196 through 210 (of 921 total)
If you just need a count, replace the column identifier (Quantity) with just the number 1:
...THEN 1 ELSE 0 END
It's easier (and better distributed) to do this in VB, too...
CREATE...
--Jonathan
January 22, 2004 at 3:21 pm
Yes, if you wish to allow SQL Server the maximum amount of memory and you have more than 4GB of memory, you will need to use AWE.
--Jonathan
January 22, 2004 at 5:49 am
That is not the case. You don't give memory to SQL Server; it takes it. ![]()
There are no advantages to setting minimum memory on...
--Jonathan
January 22, 2004 at 5:47 am
This really should be done on the front-end; it would be easy with a report writer that supports cross-tab reports (and most do). There are also some third-party utilities available...
--Jonathan
January 21, 2004 at 6:21 pm
To let SQL Server use the most memory when you have 4GB, you'll need at the Enterprise Edition of SQL Server and an OS (Windows 2003 or Windows 2000 Advanced)...
--Jonathan
January 21, 2004 at 3:21 pm
It's documented in BOL under API Server Cursors.
--Jonathan
January 21, 2004 at 3:08 pm
January 21, 2004 at 2:01 pm
That sounds like "parameter sniffing" with atypical values. Does your stored procedure have defaults (like null) for its parameters?
--Jonathan
January 21, 2004 at 1:55 pm
That means the operation is being performed in parallel; i.e. the execution has been split into multiple threads being processed in parallel by multiple processors.
--Jonathan
January 21, 2004 at 1:52 pm
Tempdb cannot be set to auto shrink (at least not in SQL Server 2000), so that's definitely not the best setting. ![]()
All databases...
--Jonathan
January 21, 2004 at 1:22 pm
You will want to used the Simple or Bulk-Logged recovery model to avoid the overhead of tran logging. The simplest bulk-logged operation would be a SELECT * INTO TableB FROM...
--Jonathan
January 21, 2004 at 12:35 pm
Not sure what your data type or collation is but, assuming it's varchar(10) and the default collation for US, then try:
SELECT [User], CAST(Subject AS varchar(10)) COLLATE SQL_Latin1_General_CP1_CS_AS
FROM TestTable
GROUP BY [User], CAST(Subject...
--Jonathan
January 21, 2004 at 10:29 am
With a sophisticated array controller (certainly including SANs), one normally chooses Basic and uses the vendor's utilities to manage the dynamic aspects of the storage.
Storport drivers should perform better than...
--Jonathan
January 21, 2004 at 9:14 am
CASE WHEN Field LIKE '%[^0-9]%' THEN 0 ELSE CAST(Field AS numeric) END
--Jonathan
January 21, 2004 at 5:30 am
Aha! So the user name (login name, screen name, full name; whatever you decide to call it) is no longer a unique identifier. It's now just a free field (Full...
--Jonathan
January 20, 2004 at 6:46 am
Viewing 15 posts - 196 through 210 (of 921 total)