Viewing 15 posts - 2,716 through 2,730 (of 7,191 total)
You could put in a new step one and use the On success and On failure actions of the new step to govern what the job does next. That...
April 4, 2016 at 7:38 am
SELECT ID
FROM #John
WHERE
CASE
WHEN ID NOT LIKE '%[A-Z]' THEN RIGHT('0000'+ID,5)
ELSE RIGHT('0000'+ID,6+LEN(ID)-PATINDEX('%[A-Z]%',ID))
END < '00020'
If you're going to use it like this, you need to make sure you understand exactly how it works,...
April 4, 2016 at 4:14 am
You're on the right track. This should work:
CREATE TABLE #John (ID varchar(4)); -- if your column is char instead of varchar, this won't work
-- Constraint to check numeric characters...
April 4, 2016 at 3:36 am
andrea.dimaio (4/4/2016)
These are total waits time so writelog is always to the top. How can i monitor real time non cumulative waits time?
Since they're cumulative since SQL Server started, you'll...
April 4, 2016 at 2:18 am
Good. Is that normal? In other words, do you see those WRITELOG waits all the time, or only while the system is running slow?
John
April 1, 2016 at 9:42 am
It could be, but until you capture the wait stats, you're just speculating. Also, see whether you can capture sys.dm_os_waiting_tasks during that single second of slowness. If you...
April 1, 2016 at 9:32 am
You might want to capture wait stats as well. Since they're cumulative since SQL Server started, you'll need to subtract one set of figures from the next in order...
April 1, 2016 at 8:35 am
If you want the trigger to update those columns regardless of which columns are updated, just remove the IF clause altogether.
John
April 1, 2016 at 5:52 am
What is the data type of the Acc column? If it's not varchar(20), there may be some conversion going on. Please will you post the execution plans?
John
April 1, 2016 at 5:47 am
Does this happen every time, even after you clear the plan cache (don't do that on a production server, though)? Have you compared the execution plans for the two...
April 1, 2016 at 5:28 am
pbo71465 (4/1/2016)
The only problem was there is the possibility...
April 1, 2016 at 3:37 am
Eamon
Is there not an option in the Flat File Connection Manager in SSIS to overlook any delimiters that are enclosed in quotes? If not, I can't think of any...
April 1, 2016 at 2:54 am
I don't know whether this is the most efficient way, but you could use bitmasks. In a separate table, assign a power of two to each action, for example...
April 1, 2016 at 2:39 am
The clustering key is the column, or set of columns, on which you choose to create your clustered index.
Where did you read the term "heap index"? A table without...
March 31, 2016 at 9:57 am
If you just want to find rows where query_plan contains those terms, convert to varchar(max) and use LIKE, CHARINDEX or PATINDEX. If you want to know where in the...
March 31, 2016 at 9:52 am
Viewing 15 posts - 2,716 through 2,730 (of 7,191 total)