RENAME TABLE ssis_execution_log TO SQLtoMYSQL_execution_log;COMMIT;
Translate
Tuesday, 18 April 2017
Thursday, 13 April 2017
Wednesday, 22 March 2017
mysql get current process
SELECT* FROM INFORMATION_SCHEMA.PROCESSLIST;
#or
SHOW FULL PROCESSLIST;
#after that kill the id by this query;
KILL 6718;COMMIT;
#or
SHOW FULL PROCESSLIST;
#after that kill the id by this query;
KILL 6718;COMMIT;
Monday, 20 February 2017
retrieve the view definition from a SQL Server using query
select definition
from sys.objects o
join sys.sql_modules m on m.object_id = o.object_id
where o.object_id = object_id( 'dbo.vw_demo')
and o.type = 'V'
from sys.objects o
join sys.sql_modules m on m.object_id = o.object_id
where o.object_id = object_id( 'dbo.vw_demo')
and o.type = 'V'
Wednesday, 15 February 2017
Serial no in sql query
select ROW_NUMBER() OVER (ORDER BY customer_id) AS 'SL No', * from MstCustomer
Friday, 29 July 2016
c# - delete image from folder after deleting the record containing image
Use Name Space : using System.IO;
C# code
----------------
string filePhisicalPath = Server.MapPath("~/Images/MyFileName.pdf");
FileInfo objFile = new FileInfo(filePhisicalPath);
if (objFile.Exists)
{
objFile.Delete();
}
C# code
----------------
string filePhisicalPath = Server.MapPath("~/Images/MyFileName.pdf");
FileInfo objFile = new FileInfo(filePhisicalPath);
if (objFile.Exists)
{
objFile.Delete();
}
Thursday, 26 May 2016
Subscribe to:
Posts (Atom)
