Viewing 15 posts - 571 through 585 (of 6,678 total)
The account is able to access only what has been granted to the login in SQL Server and the user in each database. If this account has higher level of...
May 6, 2022 at 4:29 pm
Let's start with 3-part naming - and schema-qualifying objects.
This structure dbname..table1 tells SQL Server to look for the object in the default schema and the dbo schema. If I created...
May 6, 2022 at 4:13 pm
First things - the cursor declaration is almost certainly a dynamic cursor since that is the default. It is a good practice to always specify how you want the cursor...
May 6, 2022 at 3:05 pm
I haven't found that the SSRS matrix is any slower or faster than doing the work in SQL Server. In fact, I have found that performing the pivot in SSRS...
May 6, 2022 at 2:42 pm
I think the real problem here is that you have a cursor - and you need to debug that cursor to figure out why it is doing something you don't...
May 5, 2022 at 9:52 pm
Good thought. Yes, but none of the groups he is in have access to the same DB's as he does. (bangs head on wall)
This doesn't make sense to me...
May 5, 2022 at 9:45 pm
Just so you are aware - if you have decided to use the 'many' suggestions of adding multiple PIVOT statements to your query, you are going to find out (quite...
May 5, 2022 at 9:36 pm
The best practice would be to create and use a proxy account - then assign the job step running the SSIS package to use that proxy account. If you don't...
May 3, 2022 at 8:43 pm
If your memory hasn't increased up to the limit of 32GB - then either SQL Server doesn't need that much memory or the instance is being restarted so it has...
May 2, 2022 at 1:35 pm
Database files don't auto shrink, and we don't want them to do that. As you add data the file will grow.
When you shrink a database file it can cause your...
May 1, 2022 at 9:39 pm
First - using the truncate only option isn't going to do anything for a transaction log. You need to specify a size - but that isn't going to help either...
May 1, 2022 at 4:51 pm
Here is an article you should review: https://www.sqlservercentral.com/articles/managing-transaction-logs (also linked to in my signature).
If your database is in full recovery model - you *must* perform frequent log backups (at least...
May 1, 2022 at 4:06 pm
Here is the Microsoft documentation on the subject: https://docs.microsoft.com/en-us/sql/relational-databases/reading-pages?view=sql-server-ver15
April 28, 2022 at 12:35 pm
I get less concerned over the formatting of code. These days we have products like SQL Prompt and other tools that can reformat things as we need them. I...
April 25, 2022 at 4:57 pm
Here is a previous discussion that give you some ideas on how to accomplish this task:
https://www.sqlservercentral.com/forums/topic/create-total-record-in-html-email/page/2
https://www.sqlservercentral.com/forums/topic/create-html-email
April 24, 2022 at 3:23 pm
Viewing 15 posts - 571 through 585 (of 6,678 total)