send data from arduino to a local database in my Pc

PaulS:

how can I connect my arduino with a local database in my Pc

You probably can't. You need some application on the PC that reads the serial port and deals with the database.

exactly , as I have already mentioned , i will use c# to ensure the serial communication between arduino and the Pc