Viewing 15 posts - 3,676 through 3,690 (of 4,820 total)
djj (6/11/2015)
Does the entity that is running the job have rights to where the Excel file is being created?
Yep, this is another possibility, especially if someone recently changed the permissions...
June 11, 2015 at 10:51 am
As written, your code's UPDATE does the same thing as the following:
UPDATE CDI
SET type = 'Active'
FROM Customer_D_Info AS CDI
WHERE @C_O_id > 0
AND NOT EXISTS (
SELECT 1
FROM M_Order WITH (NOLOCK)
INNER JOIN...
June 11, 2015 at 10:44 am
A couple of things right off the bat:
1.) You have no table structure defined for #tempM, nor any sample data for us to work with.
2.) You are declaring variables within...
June 11, 2015 at 9:51 am
Any chance it's now returning more than 65536 rows? Also, check the destination spreadsheet and see if it's getting any partial data.
June 11, 2015 at 9:27 am
jay-125866 (6/10/2015)
The issue remaining is that the Product Pencil is also shown in the result. It's not supposed to be there since...
June 10, 2015 at 7:34 pm
Take the following OUT of your GROUP BY clause:
a.person_ref, b.ref_number,
That should solve it. Dang, I didn't notice this earlier...
June 10, 2015 at 8:00 am
KGJ-Dev (6/9/2015)
thanks for your response. once condition is missed on your query. If the offer is not available at company level then we need to check on client level...
June 10, 2015 at 7:56 am
jay-125866 (6/10/2015)
Some products we sold were returned by customers, and we'd refurbish them and put...
June 10, 2015 at 7:40 am
Actually, that query appears to fit your stated understanding quite well. However, saying that what you got out of it was "gobbledegook" doesn't actually help us determine what...
June 10, 2015 at 7:22 am
Jacob Wilkins (6/9/2015)
It basically leverages an odd behavior of SET when used...
June 10, 2015 at 7:11 am
madan.preeti2005 (6/9/2015)
Oh yes i forgot to mention that, once data is populated, indexes will be recreated. Do you think that will tune query to some extent?
Jeff Moden asks a good...
June 9, 2015 at 8:25 pm
Try this:
declare @client table(clientid int primary key,clientname varchar(30));
declare @company table(compid int primary key,clientid int,compname varchar(30));
declare @compoffer table(id int identity(1,1),compid int,startdate datetime, endadate datetime, compoffermessage varchar(500));
declare @clientoffer table(id int identity(1,1),clientid int,startdate...
June 9, 2015 at 3:17 pm
Alvin Ramard (6/9/2015)
Why should 10 be selected? Its status is paid, but that status has not changed.
How are you determining whether or not the status value has changed? ...
June 9, 2015 at 3:03 pm
You'll need to substitute in the field names from the HST_MASTER.Control table that are relevant to the field values being inserted, as follows:
INSERT INTO HST_MASTER.[Control] ([field name that corresponds to...
June 9, 2015 at 2:57 pm
It also appears you have other non "period related" similarities, so you may need to strip out all white space, periods, and possibly even commas, in order to have a...
June 9, 2015 at 2:26 pm
Viewing 15 posts - 3,676 through 3,690 (of 4,820 total)