Latest Articles
-
JQuery Language Selector
Using the lang attribute to our HTML element, here I am using a div [js] <div lang="en"> <div lang="en-us"> [/js] Using the JQury Selector ... -
Find a string contains a particular string in JQuery
[js] var myVar="sibeesh passion"); if (myVar.toString().indexOf(‘passion’) > 0) { } else { } [/js] The above code helps you to find whether a string ... -
Split method with a string value in c#
As you know a normal split method is accepting only a character . It will throw an error when we give a string to ... -
Find Out the Missing Indexes in SQL
This code helps you to find out the missing Indexes in SQL [sql] SELECT d.[object_id], s = OBJECT_SCHEMA_NAME(d.[object_id]), o = OBJECT_NAME(d.[object_id]), d.equality_columns, d.inequality_columns, d.included_columns, ... -
Find the Relationship Difference Between Two DB
Find the relationship difference between two DB. [sql] SELECT f.name AS ForeignKey FROM sys.foreign_keys AS f where f.name not in (SELECT f.name AS ForeignKey ... -
Find Relationships Between Tables in SQL Server 2008
find the relationships between tables in SQL Server 2008 [sql] SELECT f.name AS ForeignKey, SCHEMA_NAME(f.SCHEMA_ID) SchemaName, OBJECT_NAME(f.parent_object_id) AS TableName, COL_NAME(fc.parent_object_id,fc.parent_column_id) AS ColumnName, SCHEMA_NAME(o.SCHEMA_ID) ReferenceSchemaName, ... -
Creating Linked Server in SQL
Creating Linked Server: [sql] EXEC sp_addlinkedserver @server=N’IIC82′, @srvproduct=N”, @provider=N’SQLNCLI’, @datasrc=N’IIC82\SQL2008R2′; [/sql] Here you need to replace with your server name. -
Find Which Are All Table has Set Identity
Find which are all table has set identity. [sql] select COLUMN_NAME, TABLE_NAME from INFORMATION_SCHEMA.COLUMNS where TABLE_SCHEMA = ‘dbo’ and COLUMNPROPERTY(object_id(TABLE_NAME), COLUMN_NAME, ‘IsIdentity’) = 1 ... -
Get the Count of Entries in Each Table in a DB in SQL
Hi All, This code will helps you to get the count of entries in each table in a DB in SQL: [sql] SELECT sysobjects.Name ... -
Get the Table Count in a DB in SQL
Get the table count in a DB in SQL. [sql] select * from sys.tables where is_ms_shipped=’0′ [/sql]