Viewing 15 posts - 226 through 240 (of 1,048 total)
Koen Verbeeck (8/26/2013)
Regarding the script you posted (while I was typing my previous reply), you don't use the INSERTED or DELETED system tables. Those might come in handy.
Can you please...
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
August 26, 2013 at 7:44 am
Koen Verbeeck (8/26/2013)
You are trying to insert duplicates.Check the source data and your code to make sure you are not duplicating rows somewhere.
even when I am doing any updation in...
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
August 26, 2013 at 7:43 am
For table CLCProcessUnitDetailsCompany which is blank right now..
Create table CLCProcessUnitDetailsCompany
(
ProjectID int NOT NULL,
ProsposalID int NOT NULL,
SolutionID int not null,
UnitID int NOT NULL,
DevDateChanged DATETIME,
QuotDateChanged DATETIME,
ApprovalDateChanged DATETIME,
AddedBy nvarchar(50),
DateAdded datetime,
ChangedBy nvarchar(50),
DateChanged datetime,
CONSTRAINT PK_CLCProcessUnitDetailsCompany...
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
August 26, 2013 at 7:31 am
Koen Verbeeck (8/26/2013)
Regarding the script you posted (while I was typing my previous reply), you don't use the INSERTED or DELETED system tables. Those might come in handy.
is it necessary...
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
August 26, 2013 at 7:26 am
Will this script work to accomplish my scenario?
Create Trigger Trg_DeviationRequestDetails_Ins
ON DeviationRequestDetails
After INSERT AS
BEGIN
MERGE INTO CLCProcessUnitDetailsCompany T
USING (SELECT drd.ProjectID, drd.ProposalID, drd.SolutionID,drd.UnitID
FROM DeviationRequestDetails drd)S
ON S.ProjectID = T.ProjectID AND
S.ProposalID...
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
August 26, 2013 at 7:07 am
Good question to start Monday morning 🙂
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
August 25, 2013 at 10:58 pm
Oracle765 (8/22/2013)
I have just actually posted a query regarding this.
I have just done that but my query seems to return to many rows eg
select count(*) from dbo.newtable
returns...
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
August 23, 2013 at 12:51 am
you are getting so much rows because you are doing CROSS JOIN...
I have modified your query, execute it and lemme know if you still find that issue-
select n.*,d.category
from newtable n
JOIN...
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
August 23, 2013 at 12:30 am
Thanks..
I wil donwlaod it and work on it 😛
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
August 23, 2013 at 12:14 am
Danny Ocean (8/22/2013)
Tough question for me. :blink:
+1
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
August 22, 2013 at 11:31 pm
you can write a stored procedure for this and then call that stored procedure using Execute Sql task component........
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
August 22, 2013 at 4:32 am
Yes, its a bit complicated thing....
I have around 1k procedures and if follow thats steps its going to be like a summer vacation home work 😛
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
August 22, 2013 at 3:47 am
John Mitchell-245523 (8/22/2013)
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
August 22, 2013 at 3:26 am
how are you passing value to the list...
if you pass values to list in this manner list(2,5) then you can create a procedure for this...
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
August 22, 2013 at 1:23 am
I have changed the query as per my understanding of the probleem...
Please let me know if you faced any issue -
;WITH cte AS
(
select * from (SELECT
distinct pehPaydate
,case Datepart(mm,pehPaydate)
--eft(substring(pehPErcontrol,5,len(pehPErcontrol)),2)
...
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
August 21, 2013 at 11:00 pm
Viewing 15 posts - 226 through 240 (of 1,048 total)