Viewing 15 posts - 2,101 through 2,115 (of 5,841 total)
If you shut down SQL Server there is a known bug that advances the identity values. I don't know if there is a fix for that or not.
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
March 31, 2014 at 8:27 pm
I failed to catch the follow-up post about there being an identity column involved. Sorry!
Note to all - don't answer forum posts while on a cruise!! :blink:
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
March 28, 2014 at 8:03 am
This is a concurrency issue, therefore I am 99.984% certain it is a CODE issue. Something somewhere is not properly handling locking and concurrency. As for why this...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
March 27, 2014 at 2:41 pm
Do you have any further ideas?
Not without quite a bit of extra information or access to your system. Sorry, but you just haven't given much detail at all.
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
March 19, 2014 at 7:46 pm
darren_ferris (3/19/2014)
Once a simulation has completed the user would then typically view the results (or a subset of the results) via our application. They might also...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
March 19, 2014 at 12:54 pm
Cool! So it looks like the EXISTS/EXISTS is able to very quickly exit with a hit (8 reads). Oh, I forgot to ask - are your plans estimated...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
March 18, 2014 at 2:55 pm
vip.blade (3/18/2014)
I have a question regarding the rowversion / timestamp column. I want to use it to track changes in some tables and I created a non clustered index on...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
March 18, 2014 at 1:59 pm
But your 3 samples are missing the important 4th sample:
IF NOT EXISTS (
SELECT *FROM Table1 c
WHERE NOT EXISTS ( SELECT 1 FROM Table2 z WHERE z.CNST_CONSENT_ID = c.CNST_CONSENT_ID)
)
PRINT...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
March 18, 2014 at 1:54 pm
patrickmcginnis59 10839 (3/18/2014)
studySQL (3/17/2014)
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
March 18, 2014 at 11:13 am
If truly boggles my mind why an EXISTS with a COUNT(*) and HAVING is faster than a straight EXISTS check. That makes absolutely no sense whatsoever! :crazy:
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
March 17, 2014 at 9:08 pm
mister.magoo (3/17/2014)
select count(*)
from sales.salesorderdetail
where salesorderid not in (select...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
March 17, 2014 at 8:17 pm
studySQL (3/17/2014)
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
March 17, 2014 at 7:59 pm
My recommendation in this case is probably to purchase a third party product to watch out for sql injection for you.
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
March 17, 2014 at 3:29 pm
If it works on your sample but not when you run it on real data then you need to find out the characteristics of the rows that do NOT work...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
March 15, 2014 at 8:55 am
Look around for a "how to post" article so you can learn how to help us help you. Can you give us a sample table(s), sample data, sample code...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
March 14, 2014 at 7:17 pm
Viewing 15 posts - 2,101 through 2,115 (of 5,841 total)