Viewing 15 posts - 1,396 through 1,410 (of 7,191 total)
If it's not shown in the DETA report? If you're talking about indexes, you might consult the missing indexes DMVs, one of which I think does show the anticipated percentage...
June 22, 2017 at 4:20 am
You can avoid a loop by using a Numbers (or Tally) table. You can create your own table, or spin it up on the fly as I've done below. This...
June 22, 2017 at 2:46 am
The transaction log for database is full due to 'ACTIVE_TRANSACTION'
The only solution that I found so far is DBCC SHRINKFILE.
June 21, 2017 at 8:39 am
You can't, unless you already had something in place to capture such events. If you're lucky, you may find something in the default trace. Do any of your...
June 21, 2017 at 8:15 am
What's wrong with the one you posted - performance, wrong results, error messages? Will this one not work just as well?Select CustomerNumber, count(CustomerNumber) as Count
From SalesData
June 21, 2017 at 8:03 am
Somebody or something has stopped the jobs, either through the GUI or with an sp_stop_job command. Did this happen just once, or does it happen regularly?
John
June 21, 2017 at 4:00 am
Try this. It's not tested because you didn't supply DDL and INSERT statements. What do you want to happen if there's more than one xyz?WITH Ordered AS...
June 21, 2017 at 3:16 am
In the first error, you're missing a backslash from your path. What it's looking for is a file called "sftpto Televox.bat". Do you have Integration Services installed on the server?...
June 20, 2017 at 7:52 am
Is the batch file in the root of the G drive? Please try moving it to a subfolder - I've seen strange things happen when trying to programatically access files...
June 20, 2017 at 7:31 am
r.gall - Monday, June 19, 2017 9:42 AM1) How do the rows of data become a single row
You concatenate the values one...
June 19, 2017 at 9:55 am
Join sys.database_principals to sys.server_principals on sid=sid.
John
June 19, 2017 at 9:26 am
Chances are you're going to be supporting it, so you need to document and understand it. The COALESCE function takes the value of EndedAt, and if it's NULL, changes it...
June 19, 2017 at 8:55 am
I'd go into this with a more open mind. If it's a data load from another server, it doesn't have to be disk IO - it could be network latency,...
June 19, 2017 at 4:18 am
Start with a calendar table and then do something like this:
SELECT
c.MyDate
, t.ProductType
, COUNT(t.ProductType)
FROM Calendar c
LEFT JOIN ContractTable t
June 19, 2017 at 3:49 am
Viewing 15 posts - 1,396 through 1,410 (of 7,191 total)