Viewing 15 posts - 91 through 105 (of 146 total)
Thanks. Picture speaks a thousand words. So
--Example table
create table Labels
(Id int identity (1,1),
Value varchar(20),
IntSequence bigint,
ExternalSequence bigint,
BatchId int)
-- Insert some data
Insert into labels
(Value, IntSequence, ExternalSequence, BatchId)
Values
--batch 1
('exampleValue', 1,1,1),
('exampleValue', 2,2,1),
('exampleValue', 3,3,1),
--batch...
July 5, 2014 at 10:09 am
Success! The problem was in the raw data!! I was using a bulk insert to populate the raw data table, which came from a text file. There was an...
July 4, 2014 at 3:26 am
Thanks Gail, that's very useful example. My only reason for doing a loop is that there is extra work being done before the insert which I've excluded for clarity....
July 3, 2014 at 2:19 pm
John Mitchell-245523 (7/3/2014)
An alternative worth considering, since you have a primary key constraint, is to skip the existence check, and instead to handle the error when it occurs.John
That is true,...
July 3, 2014 at 9:47 am
Here is the code. What is weird is, I can get this to work as expected on my test system and if I write out the IF NOT EXIST part...
July 3, 2014 at 9:45 am
We've switched back on the offending application and can't see any issues at the minute with the log increasing.
However, I've been running a SQL trace and can see...
June 18, 2014 at 2:37 am
Beatrix Kiddo (6/17/2014)
Maddave (6/17/2014)
Thanks. For the post above, this isn't a problem with temdb data, but the tempdb log.
They're inextricably linked.
However, I came into the office today and found...
June 17, 2014 at 2:37 am
Thanks. For the post above, this isn't a problem with temdb data, but the tempdb log.
Quick update. Yesterday, I monitored the log usage all day and found it...
June 17, 2014 at 1:47 am
Thanks for the reply.
I've been doing some reading since this morning to try and understand what is happening.
Initially the log was set up as being 1GB in size with autogrowth...
June 16, 2014 at 8:24 am
Thanks for the replies.
I checked the query plans and they were both the same.
However, I've managed to find why the times were different! The query looks at a...
May 29, 2014 at 9:52 am
Thanks. That doesn't work unfortunately and still performs just as badly.
Just talking this problem over on this forum, I think I have solved it by using a temporary table...
May 23, 2014 at 9:41 am
Is there actually free space in the data file? If you run the following command on the database in question, what is the result?
Select (select
...
March 27, 2014 at 7:56 am
Many thanks for the reply. I am on build 11.0.3128. I've only applied the fix to the ms installer running bug as I experienced this a while back. I...
March 6, 2014 at 2:16 am
Thanks for the reply. Only one database (bar master and msdb) are using snapshot isolation. The vesioning would be kept in the version store of TempDB though, wouldn't they,...
March 5, 2014 at 10:07 am
The MSSQLSERVER in the service name shows it is a default instance, so you should just be able to put in the hostname of the server.
February 5, 2014 at 9:04 am
Viewing 15 posts - 91 through 105 (of 146 total)