The C-sharp database program tried to execute DROP LOGIN with Sqlcommand, but failed.

I want to use the Sqlcommand of C-sharp to execute DROP LOGIN (user) to delete the login account of SQL Server, but it seems that Sqlcommand cannot execute this statement.
I can successfully execute it under SQL Server management studio and console. Is there any way to achieve this function?

Mar.23,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-49ba491-10be3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-49ba491-10be3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?