Viewing 15 posts - 6,481 through 6,495 (of 15,381 total)
sqlblue (10/17/2013)
October 17, 2013 at 12:39 pm
SQLBill (10/17/2013)
October 17, 2013 at 12:02 pm
sqlblue (10/17/2013)
to...
October 17, 2013 at 12:01 pm
Resender (10/17/2013)
Sean Lange (10/17/2013)
October 17, 2013 at 8:28 am
Let's start with formatting this sql into something legible.
ALTER PROCEDURE [dbo].[SaveBSPOutageInfo] @eventCreatedDate DATETIME
,@eventOrigin VARCHAR(10)
,@eventType VARCHAR(10)
,@alert_Type VARCHAR(10)
,@outageComponent VARCHAR(10)
,@remedyTicket VARCHAR(15)
,@Severity_Cd VARCHAR(2)
,@Status_Cd VARCHAR(2)
,@Planned_Outage_Ind VARCHAR(1)
,@Outage_Start_Time DATETIME
,@Impacted_800_Num VARCHAR(200)
,@Bus_Hrs_Ind VARCHAR(1)
,@Expected_End_Time DATETIME
,@Actual_End_Time DATETIME
,@Addl_Steps VARCHAR(2000)
,@BSP_Name VARCHAR(30)
,@Caller VARCHAR(30)
,@Phone VARCHAR(12)
,@Internal_Comments...
October 17, 2013 at 8:03 am
How about some ddl and sample data? This doesn't sound too bad but without something to work with I have a hard time visualizing it, and it is nearly impossible...
October 17, 2013 at 7:40 am
Junglee_George (10/17/2013)
If you have understood the problem, please write the code for the solution. I am working for almost a week on this. Thank You.
I can't write the code. I...
October 17, 2013 at 7:19 am
ikrami2000 (10/16/2013)
Thanks 🙂 , this is exactly what i want
You are quite welcome. I would caution you that there are a few things in that code that I would recommend...
October 16, 2013 at 3:16 pm
p.s. Sean - that snippet viewer is still saving my life.
😉 Glad to hear it is working for you. I use it pretty frequently myself.
October 16, 2013 at 1:20 pm
Jeff Atherton (10/16/2013)
Sean Lange (10/16/2013)
btw, not sure what the previous poster was complaining about. SQLExpress is free and is a great tool, especially for learning when you don't have access...
October 16, 2013 at 12:47 pm
krypto69 (10/16/2013)
I am using the query below and am getting back four 'Gary' records. Which I understand why that's correct for the way I have it written.
But what I...
October 16, 2013 at 12:43 pm
LutzM (10/16/2013)
Just as a side note:Whenever dealing with a date type in character format, I'd prefer the ISO format 'YYYYMMDD', so '20131015' instead of '10/15/2013'
+10000 to that.
I should have...
October 16, 2013 at 12:20 pm
erikd (10/16/2013)
I did it because I'm reading The Accidental DBA in an effort to branch out beyond the T-SQL stuff I've been kind of limited...
October 16, 2013 at 12:15 pm
Assuming FlightDate is a datetime data type you could use this.
SELECT Month(FlightDate) as Month,
COUNT (PaxNum) as TotalPassengersCount
FROM dbo.FlightDetails
WHERE FlightDate BETWEEN '1/1/2013' and '10/15/2013'
GROUP BY...
October 16, 2013 at 12:06 pm
Guras (10/16/2013)
CREATE Procedure SP1
AS
BEGIN TRAN TRAN1
BEGIN TRY
Update Table1
exec childsp1
END TRY
BEGIN...
October 16, 2013 at 12:03 pm
Viewing 15 posts - 6,481 through 6,495 (of 15,381 total)