Viewing 15 posts - 5,476 through 5,490 (of 15,381 total)
Seggerman-675349 (3/13/2014)
no, this stored procedure is running as part of a larger job run as part of a batch at night
OK. So do you still need help? If so, what...
March 13, 2014 at 12:49 pm
gfoulks (3/13/2014)
Does the ANI = "6141112222' or...
March 13, 2014 at 12:48 pm
gfoulks (3/13/2014)
changed the or to andthat did the trick! Sorry for the newb question but I'm new to this and trying to learn.
Glad that worked for you. Do you...
March 13, 2014 at 9:37 am
gfoulks (3/13/2014)
CREATE TRIGGER TR_SomeTableInsteadOfFilter ON SomeTable
INSTEAD OF INSERT
AS
BEGIN
SET NOCOUNT ON;
INSERT INTO SomeTable([DateTime],Acct_Number,SSN,Script_Code,Div_indicator,first_name,last_name,ani,terminate_area,transfer_area)
SELECT [DateTime],Acct_Number,SSN,Script_Code,Div_indicator,first_name,last_name,ani,terminate_area,transfer_area
FROM INSERTED WHERE ani <>...
March 13, 2014 at 9:23 am
Seggerman-675349 (3/13/2014)
March 13, 2014 at 9:16 am
SQLRNNR (3/13/2014)
Greg Edwards-268690 (3/13/2014)
The Dixie Flatline (3/13/2014)
andrew gothard (3/13/2014)
The Dixie Flatline (3/12/2014)
SQLRNNR (3/12/2014)
The Dixie Flatline (3/12/2014)
Thanks in advance.
P.S. Please...
March 13, 2014 at 8:40 am
Nice job posting ddl and consumable sample data. That goes a long way towards getting an answer. I don't see anything in your code or your desired that makes this...
March 13, 2014 at 8:38 am
Unless I am missing something it seems that you already wrote the query.
TotalWeightedCost = sum(SWeightingFactor * (SPartRetailPricePerService + LabourCost))
Just put a SELECT in front and a FROM
Select TotalWeightedCost = sum(SWeightingFactor...
March 13, 2014 at 8:27 am
Glad you got it figured out and thanks for letting me know.
March 13, 2014 at 7:58 am
We are getting close to an understanding. We now have the two tables (AVAILATS and ORDER_ITEMS_STAGE).
Can you explain what should happen here. I think that what you want for Item_No...
March 13, 2014 at 7:57 am
raghu.sudheer (3/12/2014)
How do i create a role in 2008R2? I am new to this roles topic.
This is a good place to start.
http://technet.microsoft.com/en-us/library/ms189121.aspx
You will notice that there is a built-in role...
March 12, 2014 at 2:52 pm
raghu.sudheer (3/12/2014)
How to give READ permissions automatically to USERS when new DATABASE is added.Is there way that i can create read access to users on ServerLevel to all databases.
You shouldn't...
March 12, 2014 at 2:43 pm
Seggerman-675349 (3/12/2014)
here's what the procedure does:
it takes a file of Available to Ship
with ItemNo CUSTNO and qty
...
March 12, 2014 at 1:27 pm
Luis Cazares (3/12/2014)
March 12, 2014 at 12:39 pm
Let's start with formatting this so we can read it.
ALTER PROCEDURE SlowStoredProcedure @FirstCUSTNO CHAR(6) = '000000'
,@LastCUSTNO CHAR(6) = '099999'
,@LowItem VARCHAR(30) = '0'
,@HighItem VARCHAR(30) = 'ZZZZZ'
AS
BEGIN
SET NOCOUNT ON
DECLARE @RightNow DATETIME
DECLARE @sum_shipqty...
March 12, 2014 at 12:36 pm
Viewing 15 posts - 5,476 through 5,490 (of 15,381 total)