Viewing 15 posts - 1,396 through 1,410 (of 7,187 total)
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
Albert
There are several different settings that can very depending on which user runs the query, or what provider you use to connect to the database and hence what's...
June 19, 2017 at 2:19 am
WITH NowandNext AS (
SELECT
H_SystemCustomer_Seq_ID
, RateDate
, Grade
, LAG(RateDate) OVER (ORDER BY RateDate) AS OldDate
, LAG(Grade) OVER (ORDER BY RateDate)...
June 16, 2017 at 9:31 am
Just because, really. You can't restore master unless you're in single user mode. That's how the product works. Probably is something to do with master always being in use, though.
June 16, 2017 at 5:14 am
Vivek
Restoring the master database is one.
John
June 16, 2017 at 4:23 am
Viewing 15 posts - 1,396 through 1,410 (of 7,187 total)