Technical Stack
Interesting technical stuff ...
Popular Posts
-
Facebook Chat Emoticons (Smileys) shortcuts Here is the list of all smiley keyboard shortcuts for Facebook chat. Enjoy!
-
make the DLL COM Visible and register the dll in Windows, otherwise it won't appear in Tools/References. Here are some references htt...
-
to register all dlls in a folder go to the folder and execute the following command: for %i in (*.dll) do regsvr32 %i replac...
-
This is the frustrating error we get: Microsoft Excel cannot access the file D:\mypath\myexcelfile.xlsx. There are several possible reas...
-
Create the stored procedure sp_generate_insert_script (You could you any other name you think you could remember easily. I prefer "zin...
-
Recently I'd observed an issue where the outlook would take forever to download new mails and just kept saying "Updating this folde...
-
Create the following stored procedure in your database: ---------------------- CREATE PROC sp_SelectFromTable @tbl VARCHAR (128) AS E...
-
The Clone() method returns a new array (a shallow copy) object containing all the elements in the original array. The CopyTo() method copies...
-
This link lists down all the SQL Server Management Studio Keyboard Shortcuts SQL Server Management Studio Keyboard Shortcuts http://msdn.m...
-
SELECT TOP (100) PERCENT OBJECT_NAME(d.object_id) AS SP_Or_Function, OBJECT_NAME(d.referenced_major_id) AS TableReferenced FROM sys.sql_depe...
Tuesday, July 21, 2015
Android soft keys unresponsive/dead/not-working
Friday, March 20, 2015
Uber - Double Referral Coupon/Promotion Code - dw3ax
Uber - Double Referral Coupon/Promotion Code - dw3ax
Use the code dw3ax to get double the referral amount.
Wednesday, August 14, 2013
To Avoid exponential notation for long numbers in excel
Wednesday, July 31, 2013
To register multiple dlls or ocx in a folder ... (regsvr32)
Thursday, May 2, 2013
Solution: Terrible lags/delays when dialing a number on Android phones
Friday, October 5, 2012
Outlook 2010 taking forever to download emails from exchange server.
Monday, September 17, 2012
SQL SERVER 2008 :: Quick search / Shortcut to search Objects in the database (Tables, Views, Stored Procedures Etc.)
CREATE PROCEDURE [dbo].[usp_Search]
(
@spname varchar(50)
)
AS
BEGIN
/************************************************************
AUTHOR: Viral Patel
DESC: Quick search for all objects with specified string in
their names
USAGE: Exec usp_Search 'string to search'
************************************************************/
declare @QUERY varchar(500);
-- views
SET @QUERY = 'select * from sys.all_objects where type = ''v'' and name like ''%' + @spname +'%''';
print @QUERY
EXEC SYS.SP_SQLEXEC @QUERY ;
-- user tables
SET @QUERY = 'select * from sys.all_objects where type = ''u'' and name like ''%' + @spname +'%''';
print @QUERY
EXEC SYS.SP_SQLEXEC @QUERY ;
-- stored procedures
SET @QUERY = 'select * from sys.all_objects where type = ''p'' and name like ''%' + @spname +'%''';
print @QUERY
EXEC SYS.SP_SQLEXEC @QUERY ;
-- you can also add other objects type as per your requirement in the stored proc.
-- Following are the types for various objects
--FN SQL_SCALAR_FUNCTION
--IF SQL_INLINE_TABLE_VALUED_FUNCTION
--F FOREIGN_KEY_CONSTRAINT
--U USER_TABLE
--FS CLR_SCALAR_FUNCTION
--UQ UNIQUE_CONSTRAINT
--SQ SERVICE_QUEUE
--D DEFAULT_CONSTRAINT
--S SYSTEM_TABLE
--AF AGGREGATE_FUNCTION
--P SQL_STORED_PROCEDURE
--PK PRIMARY_KEY_CONSTRAINT
--V VIEW
--IT INTERNAL_TABLE
--X EXTENDED_STORED_PROCEDURE
--PC CLR_STORED_PROCEDURE
--TF SQL_TABLE_VALUED_FUNCTION
END



