Viewing 15 posts - 4,516 through 4,530 (of 7,610 total)
Something like this might (or might not) perform better, if you need to calc time diff for just those two steps:
SELECT lst.SNum, lst.SOpDesc, lst.STime,
CASE WHEN...
December 28, 2015 at 11:32 am
Jeff Moden (12/25/2015)
ScottPletcher (12/25/2015)
Jeff Moden (12/24/2015)
December 25, 2015 at 1:49 pm
SELECT c.Cust#, c.Name, c.Address, --c....
STUFF(
CASE WHEN cd.Monday = 1 THEN ',Mo' ELSE '' END +
CASE WHEN cd.Tuesday =...
December 25, 2015 at 12:55 pm
baiju krishnan (12/25/2015)
when i tried to execute your code following error shownMsg 8117, Level 16, State 1, Procedure Sp_Login, Line 19
Operand data type bit is invalid for max operator.
Then we'll...
December 25, 2015 at 12:35 pm
Jeff Moden (12/24/2015)
December 25, 2015 at 12:29 pm
Since Transaction_Date contains the time, a query coded like this:
Activity.Transaction_Date BETWEEN '20151130' and '20151201'
Would return rows from 12/01/2015 at exactly midnight (if there were any). But that wouldn't really...
December 25, 2015 at 11:56 am
select Name.ID, Name.FULL_NAME, Name.FULL_ADDRESS, Name.EMAIL, Activity.ID, Activity.ACTIVITY_TYPE, activity.SOURCE_CODE, activity.TRANSACTION_DATE, Activity.DESCRIPTION
from Name
INNER JOIN Activity
ON Name.ID=Activity.ID
where Activity.Activity_Type = 'CALL' and SOURCE_CODE = 'BWILSON' and
Activity.Transaction_Date >= '20151130' and
Activity.Transaction_Date < '20151201'
order by Name.ID,...
December 24, 2015 at 12:10 pm
WHERE Transaction_Date >= '20150101' AND Transaction_Date < '20160101'
December 24, 2015 at 11:38 am
Your code doesn't match your description. Here's code that matches your description.
For efficiency, I've limited it to a single SELECT from the login table.
CREATE PROCEDURE [dbo].[Sp_Login]
@uname nvarchar(20),
...
December 24, 2015 at 10:09 am
Jeff Moden (12/23/2015)
ScottPletcher (12/23/2015)
Jeff Moden (12/22/2015)
WhiteLotus (12/21/2015)
Sounds good ..I also notice that all databases autogrowth option are 10% . Should I change all of them ?
If the initial size was...
December 23, 2015 at 11:33 pm
The internal format of date (or datetime or other temporal data type) is not the same as the character format we humans use. In fact, it's just an integer....
December 23, 2015 at 11:28 am
Not sure why the "last row" wasn't affected, since that trigger's going to update every row, which you don't want. You need to join to the inserted pseudo-table to...
December 23, 2015 at 11:22 am
CREATE TRIGGER dbo.tr_Question_Details_Update
ON dbo.tbl_RF_Questions
AFTER UPDATE
AS
--if no rows affected, exit.
IF @@ROWCOUNT = 0
RETURN;
SET NOCOUNT ON;
UPDATE CS
SET [ProgramID] = M.ProgramID,
...
December 23, 2015 at 11:19 am
Jeff Moden (12/22/2015)
WhiteLotus (12/21/2015)
Sounds good ..I also notice that all databases autogrowth option are 10% . Should I change all of them ?
If the initial size was 1MB, it takes...
December 23, 2015 at 9:39 am
Sergiy (12/22/2015)
ScottPletcher (12/22/2015)
December 22, 2015 at 3:56 pm
Viewing 15 posts - 4,516 through 4,530 (of 7,610 total)