Viewing 15 posts - 9,361 through 9,375 (of 15,381 total)
Hi and welcome to SSC! It is really hard to figure out what you are trying to do here based on your description. Can you please try to reword what...
February 7, 2013 at 12:04 pm
igloo21 (2/7/2013)
This worked wonderfully! The only thing I had to chenge was switching it from less than to greater than. A big thanks for your assistance!
You're welcome. Glad that worked...
February 7, 2013 at 12:00 pm
Lynn Pettis (2/7/2013)
Sean Lange (2/7/2013)
Lynn Pettis (2/7/2013)
February 7, 2013 at 10:12 am
wafw1971 (2/7/2013)
Hi SeanWould it be possible to add a 0 in front of the first 9 numbers, would this make it easier?
Thanks
Wayne
Of course it is possible, but it would be...
February 7, 2013 at 10:09 am
Lynn Pettis (2/7/2013)
February 7, 2013 at 10:00 am
wafw1971 (2/7/2013)
I wonder if you can help me, I have created a table but when I query the data I don't get the results in the right order:
Period 1
Period...
February 7, 2013 at 9:35 am
wafw1971 (2/7/2013)
February 7, 2013 at 9:27 am
ChrisM@Work (2/7/2013)
Sean Lange (2/7/2013)
ChrisM@Work (2/7/2013)
Actually I misread your post Sean - thought you had used the "aggregate in a derived table" trick, or I wouldn't have posted this!
I am not...
February 7, 2013 at 9:22 am
ChrisM@Work (2/7/2013)
Actually I misread your post Sean - thought you had used the "aggregate in a derived table" trick, or I wouldn't have posted this!
I am not sure if I...
February 7, 2013 at 9:02 am
Jason-299789 (2/7/2013)
Unfortunately hes been told to use the While loop by his boss. ...
February 7, 2013 at 9:00 am
wendy elizabeth (2/6/2013)
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TRIGGER [dbo].[update_trigger]ON [dbo].[Transaction_Tracking]
AFTER UPDATE
AS
BEGIN
INSERT
INTO [dbo].[eRPT_Transaction_Audit]
( Package_ID, Received_Date, Start_Date,Operation, TriggerTable)
SELECT i.Package_ID, i.Received_Date, i.Start_Date,'U', 'I'
FROM inserted i
INNER...
February 7, 2013 at 8:55 am
Just to demonstrate how incredibly inefficient cursors can be. Take a look at this insert. It uses the tally table which can be found here. http://www.sqlservercentral.com/articles/T-SQL/62867/%5B/url%5D
This code will insert...
February 7, 2013 at 8:44 am
And also since you say you are learning. You need to avoid using reserved words for object names. Tables named Time and columns named Date will cause you untold pain...
February 7, 2013 at 8:31 am
wafw1971 (2/7/2013)
I have just started training on SQL and was wondering if you could help with a problem I have encountered.
I have populated a column...
February 7, 2013 at 8:30 am
SELECT Datepart(YEAR, '@StartDate') AS CalendarYear)
The issue there is you have passed a string as the datetime because you wrapped your variable with tick marks.
Try this instead.
SELECT Datepart(YEAR, @StartDate) AS CalendarYear)
February 7, 2013 at 8:21 am
Viewing 15 posts - 9,361 through 9,375 (of 15,381 total)