Viewing 15 posts - 1,816 through 1,830 (of 2,007 total)
Jeff Moden (8/2/2010)
Gianluca Sartori (8/2/2010)
What exactly are you americans doing at work that makes you worth all that money?
Heh... we don't get to keep all that. Most of us...
August 2, 2010 at 7:16 am
Pretty sure I haven't understood your requirements, but this should help you to create a solution.
DECLARE @TABLE AS TABLE(
tID INT,
descriptionPoste INT,
domain INT,
subDomain INT,
priority INT
)
INSERT INTO @TABLE
SELECT 12, 2412, 12, -1,...
August 2, 2010 at 4:41 am
DECLARE @STRING AS VARCHAR(8000)
SET @STRING = '00000001/01'
SET @STRING = REPLACE(@STRING, '/', '')
PRINT @STRING
??
August 2, 2010 at 4:19 am
WayneS (8/1/2010)
$500/hr. 10hr/month minimum. 6month minimum. Paid in advance. Interested?
How reasonable!
August 2, 2010 at 3:54 am
--Start by making some test data
DECLARE @TABLE AS TABLE(
PROJECTID INT,
USERID INT)
INSERT INTO @TABLE(PROJECTID,USERID)
SELECT 11111, 1111
UNION ALL SELECT 11111, 1112
UNION ALL SELECT 11111, 1113
UNION ALL SELECT 11112, 1111
UNION ALL SELECT 11112,...
August 2, 2010 at 3:26 am
Not really sure what the purpose of something like this is. . . but this should give you what you want.
DECLARE @createdDate DATETIME
DECLARE @months INTEGER
DECLARE @weeks INTEGER
SET @createdDate ='2009-06-20'
SET @months=...
July 30, 2010 at 3:14 am
DECLARE @TABLE AS TABLE(
Linedate VARCHAR(40),
Date VARCHAR(40))
INSERT INTO @TABLE
SELECT '4/15/2005', '4/29/2005 12:00:00 PM'
SELECT CONVERT(DATETIME, linedate, 101),
CONVERT(DATETIME, DATE, 101)
FROM @TABLE
July 29, 2010 at 10:00 am
You cheated Chris! You changed his sample data 😛
I'm sure that what you posted is what he meant
July 29, 2010 at 9:25 am
whitlander (7/29/2010)
Does that help?
I'm feeling generous. . .
This is what you were asked to produce
SET DATEFORMAT dmy
GO
DECLARE @TABLE AS TABLE(
datasource_id VARCHAR(2),
EventType_ID VARCHAR(2),
User_ID VARCHAR(1),
period DATETIME,
Notes VARCHAR(255),
Success...
July 29, 2010 at 9:18 am
Paul White NZ (7/29/2010)
Jeff Moden (7/29/2010)
Heh... I AM curious why you'd show someone how to shoot themselves in the face once they've told you that they have a loaded gun.
Um,...
July 29, 2010 at 7:26 am
61563shanti (7/29/2010)
Really appreciate your reply. I was advise to use cursors but really do not know how to use it for calculations in a Stored Procedure.
For this sort of...
July 29, 2010 at 7:24 am
I'm not massively happy with this, but it works for how I understand your requirements.
--Sample Data
DECLARE @TABLE AS TABLE(
[adrs] NVARCHAR(43))
INSERT INTO @TABLE
SELECT ' ?4 one ST ...
July 29, 2010 at 6:39 am
WHERE TEN.[term-reason]IN ('EVAS','EVAB','EVRE')
AND TENPER.[ON-TNCY] = 'yes'
)alias
WHERE [Tenant Order]...
July 29, 2010 at 4:37 am
Why use a cursor? Why not just do this?
DECLARE @ORDERS AS TABLE(
Seq INT,
Units INT,
Agent CHAR(1))
INSERT INTO @ORDERS
SELECT 1, 200, 'A'
UNION ALL SELECT 2, 200, 'A'
UNION ALL SELECT 3, 200, 'C'
SELECT...
July 29, 2010 at 3:49 am
varunfilim (7/29/2010)
I have a scenario where the table values are
ID First Second
162
142
122
261
241
221
From this table I want to generate a combination where Next ID...
July 29, 2010 at 3:11 am
Viewing 15 posts - 1,816 through 1,830 (of 2,007 total)