Viewing 15 posts - 2,521 through 2,535 (of 2,645 total)
Sean Lange (3/5/2012)
Jonathan AC Roberts (3/5/2012)
drew.allen (3/5/2012)
Jonathan AC Roberts (3/5/2012)
Create a function to split a string into a table:
The original question was about taking multiple values and storing them in...
March 5, 2012 at 9:38 am
drew.allen (3/5/2012)
Jonathan AC Roberts (3/5/2012)
Create a function to split a string into a table:
The original question was about taking multiple values and storing them in a single variable, not doing...
March 5, 2012 at 9:30 am
What is it sorted on? The minimum rule number it satisfies?
March 5, 2012 at 8:48 am
Create a function to split a string into a table:
GO
CREATE FUNCTION [dbo].[SplitString] (@list nvarchar(MAX), @separator nvarchar(MAX) = ';')
RETURNS @table TABLE (VALUE nvarchar(MAX))
AS
BEGIN
DECLARE @position int
...
March 5, 2012 at 8:17 am
you have to use SCHEMABINDING
February 24, 2012 at 8:24 am
Tidied up version below:
IF NOT EXISTS(SELECT NULL
FROM INFORMATION_SCHEMA.SCHEMATA
...
September 8, 2011 at 8:43 am
Were you using the latest version above? linky
this does the "include" columns without ASC or DESC and I believe the order is correct.
September 8, 2011 at 8:40 am
I've heard a few things about SSD's, limited number of writes for memory's lifetime, fast reads and slow writes, but this probably depends on how the memory is wired up...
August 16, 2011 at 4:13 am
SELECT GroupName,
DATENAME(mm,'2000-' + RIGHT('0' + CAST([month] as varchar(13)), 4) + '-01') [month],
[Count]
FROM (SELECT 'A'...
July 27, 2011 at 8:16 am
The Disk Usage section is not relevant to SAN disks. We have systems that run at over 100% disk time all day. I think this is because a SAN has...
July 26, 2011 at 3:47 am
In the Fragmentation section when it instructs to:
DECLARE @DatabaseName sysname
SET @DatabaseName = 'mydatabase' --use your own database name
The uses it:
FROM sys.dm_db_index_physical_stats(DB_ID(@DatabaseName), NULL, NULL, NULL, 'Sampled') ips
The query only actually...
July 26, 2011 at 3:44 am
I use these as I figure it's better to use SQL servers internal function than assume Datetime will always be a float:
DECLARE @DateOnly DATETIME
SET @DateOnly = CAST(CONVERT(varchar,GetDate(),112) AS DATETIME)
SELECT @DateOnly...
June 14, 2011 at 7:18 am
Might not be quicker but it's a differnt way of writing it:
SELECT A.Field1,
A.ImportantDate,
A.FirstTime
...
February 7, 2011 at 7:49 am
There is a balance between "Security through obscurity" and supportability. I support the argument that security through obscurity is bad as it is a total nightmare to support systems where...
November 22, 2010 at 4:23 am
Would have been nice to have a definition of what physically ordered and logically ordered meant?
October 5, 2010 at 4:19 am
Viewing 15 posts - 2,521 through 2,535 (of 2,645 total)