Your connection string is not correct. Update it to:
Data Source=SAMIRAN-PC; Initial Catalog = DB2; Integrated Security= SSPI
This connection string specifies the server (data source), database (intial catalog) and mentions that windows authentication should be used (integrated security). In your code, last parameter is not correct.