Viewing 15 posts - 316 through 330 (of 686 total)
any way to make it all done in SP without having to invoke SSIS or Powershell? Dump 3 files based upon the CASE above?
January 31, 2022 at 8:23 pm
Thats very fast retrieval... thank you!!! Now that this query shows me how much data is being written to the table per day could it be altered to get 8 hr...
January 31, 2022 at 3:36 pm
Thanks for updates: I ran 2nd example and received:
cast(dt.dt_stamp As date);
Msg 529, Level 16, State 2, Line 14
Explicit conversion from data type bigint to date is not allowed.
January 31, 2022 at 12:37 am
This is getting 1-day of information, can be it done more efficient?
SELECT count(*)
, dt_stamp = convert(date,DATEADD(SECOND, CAST( (t_stamp / 1000) AS int ), CONVERT(datetime, '1970-01-01...
January 30, 2022 at 2:23 pm
What if it has to be retro-fitted to SQL 2012 is datediff_big available?
Thanks for your help.
January 29, 2022 at 7:31 pm
I'm a little confused by:
Declare @current_date datetime = '2022-01-12 10:22:21.183';
Declare @ts_startbigint = datediff_big(ms, '1970-01-01 00:00:00.000', cast(@current_date - 1 As date))
, @ts_endbigint = datediff_big(ms, '1970-01-01 00:00:00.000', cast(@current_date As date))
Select @ts_start, @ts_end;
--
Msg...
January 29, 2022 at 7:19 pm
I was getting and idea of how many records are accumulating for a week, and trying to figure out how to read the data.
Now the request has shifted to pull...
January 29, 2022 at 3:00 pm
I like to use a parm to pass in like @date then the query dumps the data from the table to a (csv) file that is pipe delimited.
Can this be...
January 28, 2022 at 8:22 pm
Thanks the above query worked great. If I wanted to do a daily extract of records saying start at 00:00 to 11:59 how would that query look?
Thx.
January 28, 2022 at 4:50 pm
I have it displaying datetime now, how can I get it grouped by week? and a COunt.
SELECT *, CONCAT
(
CAST(DATEADD(SECOND, t_stamp/1000 ,'1970/1/1')...
January 28, 2022 at 3:21 pm
Thats my problem not sure how to make it work along with the grouping
Thx.
January 28, 2022 at 2:55 pm
Using the 5 9gig files the Restore worked on the SQL2017 STD box.
Thanks.
December 15, 2021 at 6:27 pm
I currently have it busted out to 5 9-gig files.
December 13, 2021 at 7:56 pm
I took a smaller db backup from the STD2012, and was able to restore to my SQL2017 instance. I can't move the backup to the sql2017 Box as it would...
December 13, 2021 at 6:59 pm
I was asking the question of a stripped backup because maybe Transferring the 45gig caused a problem. I thought maybe smaller files
could be moved quickly and eliminate file moving issue....
December 10, 2021 at 2:55 pm
Viewing 15 posts - 316 through 330 (of 686 total)