Pregunta de entrevista de Tata Consultancy Services

how to connect to a database using automation script?