Viewing 15 posts - 886 through 900 (of 1,993 total)
I think what you are describing is done by using "WITH ROLLUP" in the group by or perhaps a grouping set
have a look at this article
for each of your dates...
MVDBA
September 18, 2019 at 2:42 pm
We do a lot of work in marketing for other companies, most have different seasonal requirements.
I'm told that we make every "poppy" for rememberance day in the UK, so october...
MVDBA
September 18, 2019 at 11:08 am
Bulk Insert uses the privs of the login using it. You have to make sure the login being used as the privs in the source directory.
Hehe - until you...
MVDBA
September 18, 2019 at 7:54 am
ok - the issue is why is ((0)) matching %PGDb007%
MVDBA
September 17, 2019 at 8:02 am
have you checked both the file security for the shared folder AND the share permissions.
i'm not saying this is best practice, but what I tend to do is set "everyone"...
MVDBA
September 17, 2019 at 7:59 am
you will get this forever - especially if you use temp tables.
my advice - scrap it and rebuild, you will spend less time doing that than the hours of bug...
MVDBA
September 13, 2019 at 4:04 pm
you might find that after adding the index that you will get a new index suggestion afterwards
I often have to go through 3 rounds of execution plans to get all...
MVDBA
September 13, 2019 at 2:46 pm
depending on what mean by "job log" you're going to have to get this from msdb database
dbo.sysjobhistory , maybe a few more tables, but I can't see a way to...
MVDBA
September 13, 2019 at 2:08 pm
I'd be tempted to say the measurement includes spooling to tempdb and either sorting or joining
if you have to sort/join without decent indexes then that would cause a lot of...
MVDBA
September 13, 2019 at 1:53 pm
a slightly easier way could be using row_number over order by
for example, to get the first item in sysobjects by type (first table, first proc etc)
select x.* from (
select name,...
MVDBA
September 13, 2019 at 1:36 pm
Number isn't a data type
use decimal and specify the precision and scale
https://docs.microsoft.com/en-us/sql/t-sql/data-types/data-types-transact-sql?view=sql-server-2017
MVDBA
September 13, 2019 at 1:25 pm
are you using a fully qualified UNC path? such as
\\server\folder1\file1
or a local path
H:\file1
I've had issues with local paths and now everything is UNC for me
MVDBA
September 13, 2019 at 1:19 pm
if your scaled out DB has just replicated a delete without a where clause then you are just as stuffed as if the scaled out cluster went...
MVDBA
September 13, 2019 at 1:12 pm
Something else is going on, would need to see a more complete original statement and the table definition(s).
sorry, that proc is huge and references views which have functions etc...
MVDBA
September 12, 2019 at 4:08 pm
I suspect that the implicit conversion is causing an issue.
Does this work?
WHERE vaoq.Questionnaire_ID = CONVERT(uniqueidentifier, '09C4C7B4-1275-460A-AE23-FFA9256B1ABE')
that was the first thing I tried
MVDBA
September 12, 2019 at 1:08 pm
Viewing 15 posts - 886 through 900 (of 1,993 total)