Viewing 15 posts - 3,226 through 3,240 (of 13,855 total)
Is it possible to script multiple queries? I need to transfer about 30 queries from one server to another w/o copying the entire database. I was hoping i wouldn't...
October 16, 2019 at 7:41 pm
Are you using SQL Agent job to do this?
If so, it's likely that the SQL Agent user does not have the necessary rights to create the file.
Or, if the file...
October 15, 2019 at 7:50 pm
Note also that it is good practice to
a) Explicitly name the columns you are INSERTing to
b) Avoid SELECT * (unless the number of columns and their names has no effect...
October 14, 2019 at 4:29 pm
You have stated your requirement, but what is your question? What have you tried and what were the results?
October 14, 2019 at 4:25 pm
Hi All,
I was facing same issue but now resolved it , please follow the given link below for this issue in details.
https://stackoverflow.com/a/58361448/11954782
Thanks
Ajeet Verma
You just responded to a six-year-old post...
October 13, 2019 at 8:20 pm
Something like this (untested, because you did not provide DDL etc)?
WITH Sums
AS (SELECT Revenue = SUM([Money In])
,Outgoings...
October 13, 2019 at 8:18 pm
Deleting your post after others have taken the time to respond, and not even thanking them, is rather rude in my opinion.
So here is a copy of the original, as...
October 12, 2019 at 8:01 pm
Here's an in-line version of that image.

October 12, 2019 at 7:58 pm
Jeff,
(and Steve, who's kinda busy this week) and anybody else... for grins, I did a PPT of this so I could see the hierarchy and understand what's going on...
October 11, 2019 at 3:24 pm
Are you able to open the All Executions report & check the logs there?
October 11, 2019 at 12:27 pm
Your approach seems more cumbersome than necessary. There's rarely any need to hard-code environment-specific parameters - just configure them to pick up the values of SSISDB environment variables.
October 10, 2019 at 6:36 pm
WHERE LEFT(AKey, 3) IN ('AAA', 'BBB', 'CCC', 'DDD', 'EEE', 'GGG', 'JJJ') AND LEN(AKey) = 9AFAIK, Scott's solution is the better one, because LIKE 'AAA%' is potentially...
October 9, 2019 at 8:31 pm
thanks, Phil. Can I use random () to rewrite the same query?
Please post the link to the T-SQL random() function that you intend to use.
October 8, 2019 at 9:59 pm
Use NEWID() to force randomness.
SELECT TOP (10) PERCENT
*
FROM sys.columns
ORDER BY NEWID();
October 8, 2019 at 9:24 pm
What is your question?
And if you're looking for a coded solution, please provide some sample data (as insert statements) and desired results based on that sample data.
October 8, 2019 at 6:18 pm
Viewing 15 posts - 3,226 through 3,240 (of 13,855 total)