Viewing 15 posts - 5,776 through 5,790 (of 39,754 total)
Not that I think this is a good idea, but once you have the db, or db files, you would use a PoSh command to execute dbcc shrinkdatabase or dbccshrinkfile.
January 30, 2018 at 9:10 am
As Jeff noted, it could be because of hardware or poor code. If you benchmark the disk, is it slower than others?
Are there certain days/times/functions that cause...
January 30, 2018 at 9:07 am
If you want to see if it's being used, you'd need an Extended Events session to monitor for it. This would only show you when it's used, but not if...
January 30, 2018 at 9:04 am
No, Please don't ask if there's some other method. There isn't.
If you have a dacpac of the previous state of the db, you can use sqlpackage.exe to apply...
January 30, 2018 at 9:03 am
January 30, 2018 at 9:00 am
I assume you mean that you want to UNION these two queries. The columns need to be the same number and data types must be compatible: https://docs.microsoft.com/en-us/sql/t-sql/language-elements/set-operators-union-transact-sql
January 30, 2018 at 8:58 am
I don't know if there's a best way. Bob has one way here: http://www.sqlservercentral.com/articles/calendar/145206/
Some people create a dimension table, and use an int as a PK...
January 30, 2018 at 8:56 am
Views aren't run. views are essentially a query definition that a user can use in place of a table and the optimizer will then run the query as though it...
January 30, 2018 at 8:54 am
That's interesting. Hadn't seen it, but I see the same thing. I'm guessing this is a basic default, but since guest is not enabled by default, it shouldn't be an...
January 29, 2018 at 12:38 pm
Many of us get lazy with SET options, relying on defaults or assumptions.
There's a reason why SSMS shows these when they script objects. We want to be sure...
January 29, 2018 at 12:11 pm
Closing. If the OP wants to start a new one, please give more details.
January 29, 2018 at 11:32 am
The VSS technology pauses the db so that a consistent, PIT copy can be made. This should give you useable files, though it is possible a restore will have inflight...
January 29, 2018 at 11:31 am
I saw that. A very unexpected consequence, and certainly a reason why we need better data understanding and controls.
January 29, 2018 at 8:41 am
January 26, 2018 at 12:08 pm
Viewing 15 posts - 5,776 through 5,790 (of 39,754 total)