Viewing 15 posts - 151 through 165 (of 193 total)
Or, have an NMR Number, plus an Identity column.
From moving over to the new system, NMR = the Identity column for all new values with the Identity column providing the...
September 22, 2008 at 9:24 am
Ross McMicken (9/17/2008)an important consideration given the cryptic names that ERP providers like to use for tables and columns.
Hey - what's cryptic about ttdsls045400? 😛
September 22, 2008 at 2:24 am
If you're going to build it - then you can simply make an addition to your CRUD procs to insert into an audit table;
spTableInsert ( ... params)
INSERT table fields ......
September 19, 2008 at 6:22 am
Is this a third party app, an in house app using sp's for updates inserts and deletes or a scary inhouse app using all kinds of passthrough and general nastyness?
September 19, 2008 at 4:14 am
What exactly is it you're being asked to monitor?
September 19, 2008 at 3:40 am
Build the DOS copy command string and assign it to a variable such as @Cmd, then use xp_cmdshell
eg
DECLARE @Cmd VARCHAR(4000)
... build DOS command and assign to @Cmd
EXEC master..xp_cmdshell @Cmd
September 18, 2008 at 7:20 am
Glad to have been of assistance
September 18, 2008 at 7:11 am
SUBSTRING(RTRIM(WhateverColumn), 1, LEN(RTRIM(WhateverColumn)) -1)
AND
WHERE
RIGHT(RTRIM(WhateverColumn), 1) = 'L'
should get you sorted Matt
September 18, 2008 at 7:00 am
Aye - just bung in an RTRIM()
September 18, 2008 at 6:15 am
Or better, come to think of it ....
UPDATE tblWhatever
SET whateverColumn =
CASE Surname
WHEN 'Gothard' THEN
CAST(
600 +
CAST
(
SUBSTRING(WhateverColumn, 1, LEN(WhateverColumn) -1) As INT
)
As VARCHAR(10)
)
+ 'L'
ELSE
CAST(
60 +
CAST
(
SUBSTRING(WhateverColumn, 1, LEN(WhateverColumn) -1)...
September 18, 2008 at 6:09 am
Well - roughly, something like this would do it;
UPDATE tblWhatever
SET whateverColumn =
CAST(
60 +
CAST
(
SUBSTRING(WhateverColumn, 1, LEN(WhateverColumn) -1) As INT
)
As VARCHAR(10)
)
+ 'L'
WHERE
RIGHT(WhateverColumn, 1) = 'L'
BUT - if you were...
September 18, 2008 at 5:56 am
CREATE FUNCTION [dbo].[TRUNC]
(
@datInDATETIME
)
RETURNS DATETIME
AS
BEGIN
RETURN CAST(FLOOR(CAST( @datIn AS float))AS datetime)
END
CREATE PROCEDURE spMyProc
(
@datStartDATETIME= NULL
)
AS
DECLARE @datEndDATETIME
SELECT @datStart = COALESCE(@datStart, dbo.TRUNC(GETDATE()))
SELECT @datEnd = DATEADD(Day, -7, @datStart)
etc...
September 17, 2008 at 9:30 am
Also some decent stuff on http://www.sqlis.com/
September 17, 2008 at 7:31 am
Ross McMicken (9/17/2008)
September 17, 2008 at 7:29 am
Have you set up the Oracle drivers, TNSNAMES and SQL.ORA files on the report server?
September 16, 2008 at 4:12 am
Viewing 15 posts - 151 through 165 (of 193 total)