Warning: session_start() expects parameter 1 to be array, string given in /home/sqlthoug/public_html/blog/wp-includes/class-wp-hook.php on line 341

Warning: Cannot modify header information - headers already sent by (output started at /home/sqlthoug/public_html/blog/wp-includes/class-wp-hook.php:341) in /home/sqlthoug/public_html/blog/wp-includes/feed-rss2-comments.php on line 8
Comments for SQL Thoughts https://blog.sqlthoughts.com sqlthoughts.com Fri, 27 Sep 2019 07:34:09 +0000 hourly 1 https://wordpress.org/?v=6.9.4 Comment on Compare database objects by elrusdi https://blog.sqlthoughts.com/2013/09/20/compare-database-objects/#comment-24555 Fri, 27 Sep 2019 07:34:09 +0000 http://blog.sqlthoughts.com/?p=283#comment-24555 I hope it add with compare stored procedure either

]]>
Comment on xp_fixeddrives ignores SAN mount points by Tim Bissonette https://blog.sqlthoughts.com/2013/12/27/xp_fixeddrives-ignores-san-mount-points/#comment-23686 Mon, 29 Jul 2019 15:09:11 +0000 http://blog.sqlthoughts.com/?p=329#comment-23686 Thanks for the Write up!
“EXEC xp_cmdshell ‘Powershell.exe “Get-WMIObject Win32_LogicalDisk -filter “DriveType=3″| Format-Table DeviceID, FreeSpace, Size”‘ ;”
The particular code will not get your Mount points… You would need to use EXEC xp_cmdshell ‘Powershell.exe “Get-WMIObject Win32_VOLUME | Format-Table NAME, Label, Freespace, Capacity”‘ ;

]]>
Comment on Compare database objects by Earl https://blog.sqlthoughts.com/2013/09/20/compare-database-objects/#comment-23466 Wed, 17 Jul 2019 05:46:51 +0000 http://blog.sqlthoughts.com/?p=283#comment-23466 Thanks!

]]>
Comment on Compare database objects by Krishna Uppalapati https://blog.sqlthoughts.com/2013/09/20/compare-database-objects/#comment-877 Wed, 16 Nov 2016 20:05:26 +0000 http://blog.sqlthoughts.com/?p=283#comment-877 Satheesh,
This looks like cool script.Do you or some have have similar script to use for DB2 LUW databases ?

]]>
Comment on Compare database objects by Guillermo https://blog.sqlthoughts.com/2013/09/20/compare-database-objects/#comment-143 Thu, 19 Feb 2015 19:41:12 +0000 http://blog.sqlthoughts.com/?p=283#comment-143 best website solutions

The error you are getting is because you have some tables with foreign keys pointing to a non-existent table or a table that does not have a match on the target DB. To avoid this add this where clause in the dynamic string (line 304 more or less) :

where object_name(FK.referenced_object_id,db_id(”’+@TargetDB+”’)) is not null

]]>
Comment on Ranking Funtions – Explained by Stephen https://blog.sqlthoughts.com/2014/03/22/ranking-funtions-explained/#comment-103 Wed, 12 Nov 2014 18:46:44 +0000 http://blog.sqlthoughts.com/?p=655#comment-103 good.

]]>
Comment on Deterministic Functions in SQL by SQL Thoughts | SQL Server, T-SQL, Performance Tuning, Optimization https://blog.sqlthoughts.com/2014/04/12/deterministic-functions-in-sql/#comment-99 Fri, 25 Jul 2014 13:31:13 +0000 http://blog.sqlthoughts.com/?p=851#comment-99 […] GetDate() and GetUTCDate() are non-deterministic functions and there are limitation around indexing the columns using there functions. Have a look at BOL as […]

]]>
Comment on Ranking Funtions – Explained by best website solutions https://blog.sqlthoughts.com/2014/03/22/ranking-funtions-explained/#comment-97 Wed, 07 May 2014 06:21:21 +0000 http://blog.sqlthoughts.com/?p=655#comment-97 very good and detailed post

]]>
Comment on Compare database objects by Satheesh https://blog.sqlthoughts.com/2013/09/20/compare-database-objects/#comment-96 Mon, 05 May 2014 17:38:41 +0000 http://blog.sqlthoughts.com/?p=283#comment-96 In reply to best website solutions.

Are are getting this error for all the databases? I tried to reproduce the issue, but I couldn’t really do it. Could you send me the reproduction steps then I can have a look at it

]]>
Comment on Compare database objects by best website solutions https://blog.sqlthoughts.com/2013/09/20/compare-database-objects/#comment-95 Mon, 05 May 2014 05:28:17 +0000 http://blog.sqlthoughts.com/?p=283#comment-95 i am getting this error

Msg 515, Level 16, State 2, Procedure sp_CompareDb, Line 275
Cannot insert the value NULL into column ‘FK_TABLE’, table ‘tempdb.dbo.#FKLIST_SOURCE

]]>