Viewing 15 posts - 4,066 through 4,080 (of 8,753 total)
ChrisM@Work (1/7/2016)
Grumpy DBA (1/7/2016)
Ed Wagner (1/7/2016)
Stuart Davies (1/7/2016)
Belated?Late
Pregnant
paws
Rescue
January 7, 2016 at 6:08 am
neomerdien (1/7/2016)
looks really good, thanks!
so just to make sure, i need to replace TBL_TEST_AUDIT with my table and my columns and i cant audit the deletes in question, correct?
also, im...
January 7, 2016 at 3:23 am
Quick suggestion, just make certain that the right indices are in place.
😎
/* SELECT GIVING THE DESIRED OUTPUT */
SELECT
AC.ID
,AC.AcctID
,MAX(TT.tpyModifiedDate) AS tpyModifiedDate
FROM...
January 7, 2016 at 1:55 am
lsalih (1/6/2016)
January 7, 2016 at 1:15 am
Quick solution in line with Jason's suggestion
😎
USE tempdb;
GO
SET NOCOUNT ON;
;WITH SAMPLE_DATA(SD_ID,SD_DATE) AS
( SELECT SD_ID,CONVERT(DATE,SD_DATE,120) FROM
( VALUES
...
January 6, 2016 at 11:23 pm
Jeff Moden (1/5/2016)
Raastarr (1/4/2016)
Thanks for all of the responses.I've gone with the first solution from Eirikur as [font="Arial Black"]it did exactly what was required [/font]:-).
Careful now... Does it? With...
January 6, 2016 at 10:38 pm
neomerdien (1/6/2016)
lets say this is my table, so you can use that as a reference:
TABLE [test1]
ID [int] NOT NULL,
ExpDate [datetime] NOT NULL
i want to log all the deletes from...
January 6, 2016 at 10:20 pm
ChrisM@Work (1/6/2016)
Eirikur Eiriksson (1/5/2016)
For a laugh, I'm just going to post a query I wrote yesterday based on some work I did years ago
Very fast code! It wouldn't take much...
January 6, 2016 at 1:11 pm
Alan.B (1/6/2016)
Jeff Moden (1/6/2016)
Alan.B (1/5/2016)
SQLBill (1/5/2016)
Lynn Pettis (1/4/2016)
SQLBill (1/4/2016)
Lynn Pettis (1/4/2016)
SQLBill (1/4/2016)
January 6, 2016 at 12:43 pm
Jeff Moden (1/6/2016)
SQLRNNR (1/6/2016)
Jeff Moden (12/29/2015)
Grant Fritchey (12/29/2015)
That picture has always struck me... it's either a picture of Grant's back yard when he's BBQ'ing or a picture of Detroit on...
January 6, 2016 at 12:20 pm
SQLRNNR (1/6/2016)
Eirikur Eiriksson (12/22/2015)
Michael L John (12/22/2015)
Eirikur Eiriksson (12/22/2015)
GilaMonster (12/22/2015)
Eirikur Eiriksson (12/22/2015)
January 6, 2016 at 11:53 am
Jeff Moden (1/6/2016)
Alan.B (1/5/2016)
SQLBill (1/5/2016)
Lynn Pettis (1/4/2016)
SQLBill (1/4/2016)
Lynn Pettis (1/4/2016)
SQLBill (1/4/2016)
January 6, 2016 at 9:46 am
Just makes answering easier, otherwise one has to make it up.
😎
There are few patterns for doing this, what information do you need to capture in the audit?
January 6, 2016 at 9:30 am
Can you post the DDL for the table?
😎
January 6, 2016 at 9:08 am
Quick solution
😎
USE tempdb;
GO
SET NOCOUNT ON;
IF OBJECT_ID(N'dbo.testRN') IS NOT NULL DROP TABLE dbo.testRN
CREATE TABLE dbo.testRN
(
[id] [int] NOT NULL identity,
[rowdata] [nvarchar](10) NULL
)
INSERT INTO dbo.testRN...
January 5, 2016 at 10:34 pm
Viewing 15 posts - 4,066 through 4,080 (of 8,753 total)