Viewing 15 posts - 781 through 795 (of 13,838 total)
One idea is to put your dataset queries into stored procs and call those from your report.
My preference is to keep complex business logic such as this within the database....
October 1, 2023 at 10:12 am
I had to look up "corpuscles", for a moment I thought it was a new drink at starbucks.
Thank you all for taking the time and giving me your take...
September 29, 2023 at 2:55 pm
I would define first week as any days of the month that land on the first week of the month. i.e. if September 1 lands on Friday, then September...
September 28, 2023 at 8:55 pm
If you want a load into a new table, then create the empty table AND create the Clustered Index. Then, forget SSIS... use BULK INSERT with the TABLOCK...
September 27, 2023 at 9:15 am
I don't understand why people continue to use multiple insert statements when a simple table value constructor (TVC) will do the same thing without all of the clutter.
Drew
I agree!...
September 26, 2023 at 2:44 pm
SELECT STRING_AGG(CONCAT('''',td.name,''''),',')
FROM #tbl_db td
September 26, 2023 at 11:04 am
For finding out whether DBs are being used, there is also the (simple, but somewhat brutal) option of taking them offline and waiting for someone to complain.
September 25, 2023 at 12:43 pm
why are you dropping and recreating the indexes? what are you trying to accomplish with it?
(for Phil - OP has DROP_EXISTING = ON so indexes are there already while...
September 24, 2023 at 6:30 pm
Are you saying that this proc runs slower in SSIS than it would if you were running it from SSMS?
Have you determined which statement is the slow one (I imagine...
September 24, 2023 at 9:51 am
If that is the syntax that the app will use, and you cannot change it, won't it fail anyway, because of the 'CALL'?
September 22, 2023 at 10:31 am
Not sure I understand. Best (and possibly only) way in SQL is to use a series of INSERT queries. If that's not the answer you were looking for, please clarify.
September 21, 2023 at 12:57 pm
There is a Postgres forum here. I am sure that there are others. Why not ask questions like this in a forum where the other people use the same...
September 19, 2023 at 3:06 pm
Yeah, that makes sense. But if the code is all in a single DB at the moment, I can't see why a linked server would be needed. Why not a...
September 18, 2023 at 7:08 pm
I can't think of a great way of handling this – sounds like you've considered the possibilities.
Presumably you've discounted the idea of keeping your custom code in a completely separate...
September 18, 2023 at 6:09 pm
Viewing 15 posts - 781 through 795 (of 13,838 total)