Viewing 15 posts - 121 through 135 (of 901 total)
I'm assuming that this is for an SQL 2012 database as its in the 2012 section.
One thing I noticed is that you are passing boundaries in for the result...
December 22, 2014 at 3:53 am
Glad you sorted your issue, Id have never thought about the hosts file.
I quite understand about not putting SSMS on the server, bit of a possible security issue, but being...
December 19, 2014 at 9:31 am
ajfarroll (12/18/2014)
I checked the sql server text logs and they are showing no information of the attempted connection. I doubt if there will be any relevant...
December 19, 2014 at 2:13 am
ldanks (12/18/2014)
Just returned to work and will try both of the suggestions - thanks for taking the time to offer solutions guys, it is much appreciated.
No problem I think David's...
December 18, 2014 at 9:44 am
Have you asked the DBA to check the SQL server logs on the DB for the login failure, or run a trace when trying to log on, looking to see...
December 18, 2014 at 9:42 am
PiMané (12/17/2014)
Cause the pk when it's created will already point to the cidx and wont need rebuild/recalculate. Less work on the io system and cpu.
I thought all the NC indexes...
December 17, 2014 at 7:33 am
You have to drop the PK anyway, so why not rebuild it as an NC, then when you build the new CIDX it will rebuild all the NC indexes wont...
December 17, 2014 at 4:44 am
The key question is How long is the window in which you have to do this and how big is the table?
having done something similar, it was a case of...
December 17, 2014 at 1:39 am
As a guess something like this would work and remove all the sub queries
WITH CTE
AS
(
SELECT uompScheduleNumber,status, COUNT(*) TotalCount
FROM OrbeData_KithKitchens.dbo.WIP_master
WHERE (itemtype ='DR' or itemtype ='DDF')
AND status in ('2','3'......,'20')
GROUP BY...
December 15, 2014 at 8:56 am
As Kevin suggested you would need to build Dynamic SQL and execute it
Something like this should give you an Idea
DECLARE @Year TABLE
(
CalYear INT
)
INSERT INTO @Year
VALUES (2014),(2015),(2016)
December 15, 2014 at 1:30 am
adiaz 16837 (12/12/2014)
ohhh, sorry....too much querys for me today....
Thanks!!
Or not enough coffee 😀
December 12, 2014 at 8:59 am
Something like this should work as well, its not as neat as the LAG function but
WITH CTE_RN
AS
(
SELECT
fmc_terminal
, fmc_prodlnk
, fmc_cost
, fmc_date
, ROW_NUMBER() OVER(PARTITION BY fmc_terminal
, fmc_prodlnk
ORDER...
December 12, 2014 at 8:56 am
Its not surprising if you are rebuilding the clustered index as well which will effectively rebuild the entire table via the TempDB, I'll take a stab in the dark and...
December 11, 2014 at 1:25 am
I had a requirement a few years ago to do something similar where the flattened hierarchy where each level was a column, This is the thread http://www.sqlservercentral.com/Forums/Topic1071035-392-1.aspx the end solution...
December 11, 2014 at 12:48 am
GilaMonster (12/10/2014)
Probably the limit of the number of objects in a database. That's 2.3 billion, give or take.Memory is NOT the limit as temp tables are not memory-only.
Over and above...
December 10, 2014 at 3:09 am
Viewing 15 posts - 121 through 135 (of 901 total)