Viewing 15 posts - 91 through 105 (of 984 total)
Comms link failure / semaphore timeout - is the server starved of resources at that point? What jobs are running at the point of failure? Anything really heavy duty? Thomas Rushton
blog: https://thelonedba.wordpress.com
August 13, 2018 at 9:32 am
Thomas Rushton
blog: https://thelonedba.wordpress.com
August 13, 2018 at 6:13 am
Thomas Rushton
blog: https://thelonedba.wordpress.com
August 1, 2018 at 2:56 am
Here's one option using windowing functions and aggregates.
WITH
CSIDChange -- mark the first line of each batch / island
AS
(
SELECT...
Thomas Rushton
blog: https://thelonedba.wordpress.com
August 1, 2018 at 2:28 am
Thomas Rushton
blog: https://thelonedba.wordpress.com
July 31, 2018 at 8:26 am
Thomas Rushton
blog: https://thelonedba.wordpress.com
July 13, 2018 at 4:00 am
Have you looked in the SQL Server logs for the error state code for that error 18456? If so, what was it? If not, then go find it!
Thomas Rushton
blog: https://thelonedba.wordpress.com
July 12, 2018 at 3:39 pm
An alternative is to use the "dynamic crosstab" query. For example, using the temporary table provided above, something like:
SELECT @query = 'SELECT ItemID, Description ';
SELECT...
Thomas Rushton
blog: https://thelonedba.wordpress.com
July 4, 2018 at 5:23 am
Ah, right. +1 for Thom A's suggestion of Unicode Left-to-Right / Right-To-Left characters embedded in the string.
interesting that this also reverses the direction of the brackets. 🙂
Thomas Rushton
blog: https://thelonedba.wordpress.com
July 4, 2018 at 5:07 am
I'm finding it difficult to spot the difference here... can you highlight the problem areas?
Thomas Rushton
blog: https://thelonedba.wordpress.com
July 4, 2018 at 3:48 am
Can you provide an example of you making the direct query, and an invocation to the stored procedure?
And, if possible, the definition of the stored procedure?
Thomas Rushton
blog: https://thelonedba.wordpress.com
July 3, 2018 at 3:23 am
Also be sure to check the full SQL Server error log - probably at something like C:\program files\microsoft sql server\mssql10_50\mssql\log\errorlog (assuming you installed using the default settings)...
Thomas Rushton
blog: https://thelonedba.wordpress.com
July 2, 2018 at 9:11 am
I know this was a followup to an old SQL2008 question, but, if you're running SQL 2017, check out the new DMV `sys.dm_os_enumerate_filesystem`
eg:
SELECT *...
Thomas Rushton
blog: https://thelonedba.wordpress.com
June 25, 2018 at 7:20 am
Are you doing replication using this database / has this database ever been involved in any replication?
What does `DBCC OPENTRAN` say when you run it in that database? Thomas Rushton
blog: https://thelonedba.wordpress.com
June 18, 2018 at 7:57 am
just one thing... please tell me you're not storing money / financial values as `float`s?
Thomas Rushton
blog: https://thelonedba.wordpress.com
June 18, 2018 at 3:40 am
Viewing 15 posts - 91 through 105 (of 984 total)