Viewing 11 posts - 16 through 26 (of 26 total)
USE master
GO
SET NOCOUNT ON
-- Get all roles
CREATE TABLE #temp_srvrole(
ServerRole VARCHAR(128),
Description VARCHAR(128)
)
INSERT INTO #temp_srvrole
EXEC sp_helpsrvrole
-- sp_help syslogins
CREATE TABLE #temp_memberrole(
ServerRole VARCHAR(128),
MemberName VARCHAR(265),
MemberSID...
March 12, 2014 at 8:04 am
Some additional links on the subject for you:
http://stackoverflow.com/questions/13657461/odd-sql-server-2012-identity-issue
November 15, 2013 at 5:15 am
I have exactly the same issues on my 2012 servers, Googled and found the following script (sorry can't remember where) - run as a startup proc to "reset" the identity...
November 15, 2013 at 5:14 am
try checking that you have instant file initialisation enabled
http://bradmcgehee.com/2010/07/21/instant-file-initialization-speeds-sql-server/
November 5, 2013 at 6:23 am
MyDoggieJessie (10/15/2013)
You know that doing COUNT(*) on a table with a lot of columns and a lot of rows can take a lot of time and memory
There is virtually no...
October 15, 2013 at 7:13 am
Worked a treat, thanks all for your input - my GSCE maths escaped me and I was looking for an over engineered solution..!
October 15, 2013 at 2:25 am
bleroy (9/23/2013)
What about adding 1 column to the small table that would contain RIGHT(smallTable.toid,13), create an index on that and then do your join?B
ooooh.. good idea! 🙂
Exactly what I...
September 23, 2013 at 9:06 am
L' Eomot Inversé (9/23/2013)
duncanburtenshaw (9/23/2013)
Erland Sommarskog (9/21/2013)
September 23, 2013 at 6:52 am
Erland Sommarskog (9/21/2013)
September 23, 2013 at 12:59 am
SrcName (9/20/2013)
http://www.sqlservercentral.com/articles/T-SQL/62867/%5B/quote%5D
SrcName - thank you for the link, I have read this before and am familiar with the numbers/tally...
September 21, 2013 at 1:46 am
sometimes it's worth putting in a hint to use the spatial index, i.e.
SELECT CASE WHEN (SELECT count(*) FROM table1 WITH (INDEX ([SpatialIndex])) where SHAPE.STIntersects(@center) = 1) > 0
just to ensure...
August 22, 2013 at 9:26 am
Viewing 11 posts - 16 through 26 (of 26 total)