Viewing 15 posts - 2,161 through 2,175 (of 59,082 total)
I've been researching this for over 3 hours and none of the syntax I've found works.ย I have a column with data that's been merged from various other...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 6, 2023 at 3:27 pm
Heh... and still have everything run single threaded because of the way people wrote the code. ๐
--Jeff Moden
Change is inevitable... Change for the better is not.
January 5, 2023 at 10:23 pm
Very simple example:
sqlcmd -S <ComputerName>\<InstanceName> -i <MyScript.sql> -o <MyOutput.rpt>
Just use a sqlcmd SQL script with the function below using a windows scheduled task in a batch file:
Ifย datepart(dw,getdate()) =...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 5, 2023 at 10:12 pm
Some old tech that I wish would come back is people that actually know how to ask a question and then read the answer and act upon it...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 5, 2023 at 10:04 pm
I would ask an "sqlguru". ๐
--Jeff Moden
Change is inevitable... Change for the better is not.
January 5, 2023 at 2:18 pm
As a bit of a sidebar, we disable the SQL Server Browser as part of the security setup because it also kills some of the auto-discovery of machines.
--Jeff Moden
Change is inevitable... Change for the better is not.
January 5, 2023 at 2:14 pm
Yes I changed the process to extract from remote machine firstย ..
Thanks for all comments and suggestions.
You're still using the linked server?
--Jeff Moden
Change is inevitable... Change for the better is not.
January 5, 2023 at 1:57 pm
Thanks for the CR LF note, I am trying to bcp out from mssql and load to mysql.
Does that mean you're all set now?
--Jeff Moden
Change is inevitable... Change for the better is not.
January 5, 2023 at 1:53 pm
Some old tech that I wish would come back is people that actually know how to ask a question and then read the answer and act upon it correctly. ๐
And......
--Jeff Moden
Change is inevitable... Change for the better is not.
January 5, 2023 at 1:25 am
p.s.ย If there are millions of rows each day, this is the slow method.ย It would be better to have the remote machine export the data in the "native" format...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 5, 2023 at 1:23 am
Since there are millions of records for each day..
On Local server: Won't I have to find the max(t_stamp) for date ย 2/10/2022 and then Min(t_stamp) for 2/17/2022 then pass that...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 5, 2023 at 1:22 am
I ended up with this as my query...
Would there be any way to get the range of t_stamp values for 01-21-2022 thru 01-25-2022 and send that into query string...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 4, 2023 at 9:43 pm
Jonathan AC Roberts wrote:It will even answer Jeff's primary interview question correctly:
Actually, that's just the first part of the answer that I expect. ๐
But...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 4, 2023 at 6:32 pm
Jonathan AC Roberts wrote:It will even answer Jeff's primary interview question correctly:
Actually, that's just the first part of the answer that I expect. ๐
But I'm sure it got further than...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 4, 2023 at 5:47 pm
It will even answer Jeff's primary interview question correctly:
Actually, that's just the first part of the answer that I expect. ๐
--Jeff Moden
Change is inevitable... Change for the better is not.
January 4, 2023 at 5:42 pm
Viewing 15 posts - 2,161 through 2,175 (of 59,082 total)