Viewing 15 posts - 1,801 through 1,815 (of 6,679 total)
I guess I am confused - if you are going to be using SSIS then why would you need to use OPENROWSET to load the data into a table? SSIS...
June 5, 2020 at 4:21 pm
You need to specify the admin account that will be used - one that has sysadmin access to that instance of SQL Server.
June 4, 2020 at 8:47 pm
There is an article that I link to about posting - please review that link. It shows how to provide sample data that we can utilize to build a working...
June 4, 2020 at 8:46 pm
I cannot say whether or not those other instances should be removed - it really depends on what they are used for (if they are used) and how you want...
June 4, 2020 at 7:33 pm
Can you provide sample data and tables that we can use?
BTW - you are not comparing dates. These are not dates they are strings that may represent some type of...
June 4, 2020 at 7:27 pm
It appears that someone attempted to perform an upgrade - of some sort. This could be an version, edition or service pack upgrade that failed.
Since this is a 'backup' server...
June 4, 2020 at 6:53 pm
If this is a regular requirement - you may want to consider upgrading to SQL Server 2016 (or higher) where you have the new option of using DBCC CLONEDATABASE.
But -...
June 4, 2020 at 6:01 pm
I am not sure what you are expecting - as these code snippets cannot be optimized, but they can be shortened:
DECLARE @yesterday DATE = dateadd(day, -1, getdate());
EXECUTE...
June 4, 2020 at 5:57 pm
If the user that owns the agent job is a member of sysadmin - the job will run under the context of the agent service account. If the job is...
June 4, 2020 at 5:45 pm
You can wrap the calculation in a CAST or CONVERT:
CAST(SUM(CASE WHEN JobNo = 'Parts' THEN Time1 ELSE 0 END) / SUM(CASE WHEN JobNo NOT IN ('Holiday', 'PTO')... June 2, 2020 at 9:58 pm
I would take a step back - and try executing the code in a command/powershell window to test and validate it first. Then, once you have it working you should...
May 28, 2020 at 9:04 pm
That would probably work - you need to test it to be sure though. I prefer not using BETWEEN for date/times - but in this case it might be the...
May 28, 2020 at 7:09 pm
No hide.
I need the user to be able to make a right click at a db object (table/view), press "Select top 1000 rows" and the SSMS query editor to...
May 28, 2020 at 6:34 pm
I would not recommend even trying to perform an in-place upgrade. If it is even possible to upgrade the OS in a cluster - it is going to be an...
May 28, 2020 at 6:15 pm
The solution will depend on a few different factors.
An example check...
May 28, 2020 at 6:07 pm
Viewing 15 posts - 1,801 through 1,815 (of 6,679 total)