Viewing 15 posts - 16 through 30 (of 686 total)
thank you both .. yes xp_cmdshell is allowed
January 6, 2025 at 1:39 am
Had to change initial query to this.
SELECT distinct substring(ImageName,1,8) as HitName from Image_Measurement_Data(nolock) where ImageName like '202405%' order by hitname OPTION (MAXDOP 0).
Now 2nd qry needs to use HitName against...
January 5, 2025 at 4:15 pm
# Define your SQL Server instance and database
$ServerInstance = '(local)'
$Database = 'cb_compare'
# Define your query to read data from your source table
$Query = "SELECT distinct ImageName from...
January 5, 2025 at 4:06 pm
since its using the like instead of = to for hit dates would that still work?
Thanks.
January 3, 2025 at 9:12 pm
Thanks for response, would you be able to mock up an example of how that can be achieve? I just need an easy way to crank out files based off...
January 3, 2025 at 5:13 am
Jeffery and thoughts based on how the query gets data to the file to break it by day?
THanks.
January 3, 2025 at 1:21 am
Was there an issue with creating solution locally before deploy?
January 2, 2025 at 3:14 pm
Yes,
$Server = "(local)"
January 2, 2025 at 12:59 am
On my physical laptop ... just testing the process before using Network share.
January 2, 2025 at 12:31 am
I was able to use CAST(textDate AS DATE) into a #temp table and do the date logic from there.
Thanks for all responses.
January 1, 2025 at 10:43 am
thanks, what I mean by hit would be each time a NEW date is found then create a new output file. If I ran this query against table this is...
January 1, 2025 at 12:58 am
okay thanks... I think problem is when I try to do a where clause against the CAST(textDate AS DATE) .
where CAST(textDate AS DATE) > mm/dd/yy
I get this
Msg 206, Level 16,...
January 1, 2025 at 12:45 am
error
Msg 206, Level 16, State 2, Line 1
Operand type clash: date is incompatible with int
December 31, 2024 at 6:21 pm
I started backup right after a server down\up ...
The backup for the past month was working fine... just started this issue a few days ago.
I'm going to try a local...
December 18, 2024 at 2:51 pm
Viewing 15 posts - 16 through 30 (of 686 total)