Viewing 15 posts - 3,826 through 3,840 (of 8,761 total)
Found this sample in my collection, probably posted it somewhere before, feel free to play around with it.
π
USE TEEST;
GO
SET NOCOUNT ON;
/* DDL Audit table
--TRUNCATE TABLE dbo.TBL_TEST_DDL_AUDIT
*/
IF OBJECT_ID(N'dbo.TBL_TEST_DDL_AUDIT') IS NULL
BEGIN
CREATE...
March 17, 2016 at 8:27 am
Use DBCC PAGE to get the object I'd, then it is easy to find the table
π
March 16, 2016 at 8:40 am
Eirikur Eiriksson (3/15/2016)
hoseam (3/15/2016)
DECLARE @TheDate DATE
IF @TheDate IS NULL
SET @TheDate = GETDATE()
SET @FileName = 'DailyAgentSales' + CONVERT(CHAR(8) ,@TheDate -1 ,112) + '.csv'
SET @Subject = 'Agent Sales -...
March 16, 2016 at 12:26 am
hoseam (3/15/2016)
DECLARE @TheDate DATE
IF @TheDate IS NULL
SET @TheDate = GETDATE()
SET @FileName = 'DailyAgentSales' + CONVERT(CHAR(8) ,@TheDate -1 ,112) + '.csv'
SET @Subject = 'Agent Sales - ' +...
March 15, 2016 at 12:58 am
Brandie Tarvin (3/14/2016)
Eirikur Eiriksson (3/12/2016)
Brandie Tarvin (3/11/2016)
What a wonderful day in the upgrade-hood...Sigh.
So many SSIS packages to upgrade. So. Many. PACKAGES! :crazy:
Baggages?
π
π
Still not sure if I like Data Tools...
March 14, 2016 at 11:48 pm
I think you are missing the Calculated Table. If you go to the Data View, Modeling, New Table and enter
DIM_DATE = CALENDAR(DATE(2016,1,1),DATE(2016,12,31)) it will produce a date table for the...
March 14, 2016 at 12:26 am
Are you using it as a measure/calculate table?
π
March 13, 2016 at 1:39 pm
This should work, I have models using this so I wonder why it doesn't work in your case, your version certainly supports it.
π
BTW: I normally use a similar function as...
March 13, 2016 at 7:58 am
Ed Wagner (3/12/2016)
Eirikur Eiriksson (3/11/2016)
TheSQLGuru (3/11/2016)
Someone needs to benchmark the STRING_SPLIT() function coming out in SQL Server 2016 and update the main article!
Very quick on Azure, only caveat...
March 13, 2016 at 1:00 am
Brandie Tarvin (3/11/2016)
What a wonderful day in the upgrade-hood...Sigh.
So many SSIS packages to upgrade. So. Many. PACKAGES! :crazy:
Baggages?
π
March 12, 2016 at 11:27 am
Can you please post the DDL (create script for the tables), sample data as insert script and the expected results?
π
March 12, 2016 at 6:16 am
TheSQLGuru (3/11/2016)
Someone needs to benchmark the STRING_SPLIT() function coming out in SQL Server 2016 and update the main article!
Very quick on Azure, only caveat is that it simply...
March 11, 2016 at 11:46 pm
TomThomson (3/10/2016)
Steve Jones - SSC Editor (3/10/2016)
Data Driven going on now: https://www.microsoft.com/en-us/server-cloud/data-driven.aspx
Quite interesting. Some of it extremely expressive. Certainly backs up what Gartner recently said...
March 10, 2016 at 12:42 pm
SQL!$@w$0ME (3/9/2016)
March 9, 2016 at 9:36 am
SQL!$@w$0ME (3/9/2016)
Users are still able to insert an invalid date/user in the Audit columns with default constraints. What is the best way to avoid this.Thanks!
Trigger
π
March 9, 2016 at 8:59 am
Viewing 15 posts - 3,826 through 3,840 (of 8,761 total)