SELECT distinct OBJECT_NAME (id)
FROM syscomments
WHERE text LIKE '%GLMCU%'
GO
This is my Technical area of troubleshooting and learning new Programming skills and many more. Here you will find answers for many new technologies like asp.net 2.0/3.5,4.0 C# access, mysql, Amazon Webservice ,Sql-server, JD Edwards, SAS, Salesforce, APIs, MVC and many more. please visit & discuss.
SELECT distinct OBJECT_NAME (id)
FROM syscomments
WHERE text LIKE '%GLMCU%'
GO
DROP INDEX SQL Server if exists
DROP INDEX IF EXISTS IDX_tbl_XXXData_RR ON tbl_XXXData_RR;
Sometimes we need to load SQL code in a sql table and run that code in any application. you can load long SQL code using following:-
1. make your query in one line.
2.Open an excel and add a column name in excel, paste that query in a excel cell.
3. Load this excel in SQL server using sql import wizard.
4. Create an insert statement to load in your main table with all the fields.
INSERT INTO table_sql(sqlname,sqldesc,date,user,sqlcode)
Select sqlname,sqldesc,date,user, Column01 sqlcode from YourUpoadedTable