Viewing 15 posts - 1,186 through 1,200 (of 6,678 total)
Also - don't sort the data in SQL Server, and depending on the report(s) you want you may consider just returning detail data from the stored procedure without any grouping...
March 29, 2021 at 6:58 pm
You should convert your 'script' to a stored procedure with parameters. Then in Report Builder you will use the stored procedure as the source for your data and build report...
March 29, 2021 at 6:55 pm
There is no default sa username/password - and if the vendor did not enable SQL logins when they installed, then it wouldn't be available anyways.
By default SQL Express enables only...
March 29, 2021 at 6:48 pm
Happy to help - glad to see you have something that is working now.
I know this won't be extremely fast but it is workable. To get something much faster you...
March 29, 2021 at 5:06 pm
Back in the old days, we attend lookup tables for this kind of stuff. Since SQL is designed for looking up data in tables, instead of doing recursive loops...
March 29, 2021 at 4:17 pm
Hi Jeffrey, thanks a lot. But the problem is that the data for the previous months exists. But I don't need them. I need data from the beginning of...
March 29, 2021 at 3:31 pm
You don't need dynamic SQL to do this - you can build the table reference using FOR XML and if there are no values for specified months they won't be...
March 29, 2021 at 12:49 am
I am confused by the requirement - it appears you want to be able to grant a user the ability to change the database schema, but that same user who...
March 27, 2021 at 4:48 pm
If you are interested - SQL generates the following code for Jason's original version:
[Expr1056] = Scalar Operator(CASE WHEN [@npy]<=(12) THEN dateadd(month,CONVERT_IMPLICIT(int,CONVERT_IMPLICIT(bigint,(12)/[@npy],0)*([Expr1050]-(1)),0),[@beg_dt]) ELSE CASE WHEN [@npy]=(26) THEN dateadd(week,CONVERT_IMPLICIT(int,(2)*([Expr1050]-(1)),0),[@beg_dt])...
March 26, 2021 at 6:38 pm
I do the same thing - either way works and probably won't see any differences in performance.
I found from personal experience that function performs better than CTE.
Probably,...
March 26, 2021 at 1:42 pm
HI Jeff,
I apricate your wanting to know I did not want to bother you with it, but I would like to get the SSIS to work. As I said...
March 26, 2021 at 1:38 pm
It really isn't clear what problem you are having - but I am assuming the issue is that you are getting duplicates. If that is the case it is because...
March 25, 2021 at 9:24 pm
Just one thought - you can simplify the calculations. I used 'generic' names - which you probably want to change to what they actually represent...but something like this:
And...
March 25, 2021 at 8:41 pm
Just one thought - you can simplify the calculations. I used 'generic' names - which you probably want to change to what they actually represent...but something like this:
March 25, 2021 at 8:08 pm
I believe you'll find that and INSERT/SELECT from an OPENQUERY across a linked server will work with some pretty good performance.
As long as you are careful in how much...
March 25, 2021 at 6:31 pm
Viewing 15 posts - 1,186 through 1,200 (of 6,678 total)