IF EXISTS(select * FROM sys.views where name = 'v_NoteDetail')
BEGIN
	DROP VIEW v_NoteDetail
END