Viewing 15 posts - 136 through 150 (of 1,192 total)
Visual Studio (even just the shell) can do this too. Think it might need SSDT (SQL Server Data Tools) installed.
September 8, 2015 at 5:41 am
I can't see 'Great' on the list? 😛
But seriously, pretty much all of them, depending on what day of the week it is!
September 7, 2015 at 10:30 am
Likely the string isn't directly castable to datetime or date (like the others I'm guessing because we can't see the data).
Think it'll be based on your OS localisation.
The convert function...
September 3, 2015 at 12:26 pm
Glad to see I'm not the only one with Morecambe's fingers (all the right notes...)!
I often use #transient for temp results
forgot these too:
SET STATISTICS TIME ON & OFF
SET STATISTICS IO...
August 28, 2015 at 5:11 am
DBCC SQLPERF (LOGSPACE)
select * from sys.dm_exec_requests r cross apply sys.dm_exec_sql_text (r.sql_handle) st
select * from sys.sql_modules where definition like '%thing of interest%'
select * from sys.dm_exec_procedure_stats
Increasingly, ForEach... Invoke-SqlCmd... or gci SQLSERVER:\SQL\... 😉
But...
August 26, 2015 at 5:27 am
MWise (8/17/2015)
nor permissions
Great point, missed that one.
August 17, 2015 at 7:46 am
Not sure about this...
If there's less than 10% free on the disk is there even space for a new 13GB datafile?
No business disruption is specified, but then the solution is...
August 17, 2015 at 7:01 am
SQLRNNR (8/12/2015)
1. Linked Servers to pull data from A to C, and...
August 12, 2015 at 10:02 am
This will give you some info on the triggers & aggregated execution stats.
If you need individual executions then I think you'll need to look at using extended events/server side trace/profiler...
August 12, 2015 at 9:02 am
jasona.work (8/12/2015)
RG support guy sees e-mail hollers across the room "Hey Steve! Unplug the coffee maker and plug the forum server back in, people've noticed!":hehe:
FIFY 😉
August 12, 2015 at 8:17 am
Yeah, powershell's full of useful little things like that 🙂
You can actually combine your two loops into one with another foreach:
$ScriptPath = "File2", "File1"
$ServerList = ("ServerB", "ServerC")
$DB = ("DB1", "DB2")
$ScriptItems...
August 12, 2015 at 7:24 am
Just this I think:
$ScriptItems | select Scriptfile -Unique
August 12, 2015 at 6:48 am
You can't use go in a sproc. Anything after the first go won't be included in the sproc code.
It's not a SQL keyword as such, but a batch separator.
August 6, 2015 at 12:33 pm
Starting at the top you can not merge the 'second' level to the other client because there is the constraint with the third level. So the second level can not...
August 4, 2015 at 6:39 am
To elaborate on above - this will remove all data, query plans etc from RAM, so your SQL server will have to reload data from disk into RAM, calculate new...
August 4, 2015 at 4:15 am
Viewing 15 posts - 136 through 150 (of 1,192 total)