Entradas

Mostrando entradas de julio, 2016

(localdb)\MSSQLLocalDB error: unrecognized escape sequence

Problema: al poner esta expresión nos da error en \ SqlConnection con = new SqlConnection("Server = (localdb)\MSSQLLocalDB'; Integrated Security = true"); Solución: Poner doble barra \\ o @ SqlConnection con = new SqlConnection("Server = (localdb)\\MSSQLLocalDB'; Integrated Security = true"); SqlConnection con = new SqlConnection(@"Server = (localdb)\MSSQLLocalDB'; Integrated Security = true");