Viewing 15 posts - 121 through 135 (of 623 total)
This is one way.
DECLARE @TicketStartDate datetime
DECLARE @TicketEndDate datetime
SET @TicketEndDate = DATEADD(DAY, DATEDIFF(DAY, -1, GETDATE()) / 7 * 7, -1)
SET @TicketStartDate = DATEADD(DAY, -8, @TicketEndDate)
PRINT @TicketStartDate
PRINT @TicketEndDate
Also search this...
December 24, 2013 at 12:57 pm
This sounds familiar to me but I forget the specific issue.
I ended up scripting out the linked server created by the wizard and then modifying that script.
November 20, 2013 at 3:57 pm
I guess this is why you guys say show us what you have tried. This demonstrates the results I am looking for. I'd like to get this in one select...
November 8, 2013 at 2:57 pm
Sorry for being unclear. Let me add to the narrative now and then see if I can work out the desired results.
If I exclude record 1 then my total is...
November 8, 2013 at 2:49 pm
I agreed with Gabe because I have the distinct advantage of seeing the actual data which would result in duplicate data. Since this is more of a reporting/data warehouse I...
October 31, 2013 at 4:47 pm
Gabe T. (10/31/2013)
I should point out that #NewThings is itself not normalized (Metric1 and Metric2 should really be distinct rows in a separate table).
Agreed and thanks for the correction.
October 31, 2013 at 2:00 pm
I would look at exporting using OPENROWSET.
You could probably use SSIS to call a single package multiple times. Pass the state as a package variable. Use the variable to create...
October 30, 2013 at 11:18 am
Thanks for the insights everyone. I will take me a bit of time to review/understand the methods. I'll post back if I have any questions.
October 15, 2013 at 8:10 am
Last fleeting thought. I might explore replication. My initial and brief research indicates that filtered replication may be possible. If this is correct it may be easier than writing the...
October 10, 2013 at 6:04 pm
Sorry I responded too quickly and my suggestion won't help since you need to purge the primary.
I have seen commercial applications that archive data into a separate but identically structured...
October 10, 2013 at 10:57 am
Can you restore a backup to your reporting server?
October 10, 2013 at 10:46 am
pietlinden (9/25/2013)
September 25, 2013 at 3:43 pm
http://sqlmag.com/sql-server-reporting-services/ssrs-how-create-reports-user-protect-sensitive-data
There seems to be some important security considerations here.
I would attempt to pass the userid as a parameter to a stored procedure and NULL the column there rather...
September 19, 2013 at 12:43 pm
Try this and let us know if you run into any issues.
September 18, 2013 at 2:21 pm
Viewing 15 posts - 121 through 135 (of 623 total)