none
Erro em Connection String RRS feed

  • Pergunta

  • Ola pessoal, estou desenvolvendo uma aplicacão, so que quando passar a Connection String

    o Visual Studio me da o seguinte erro:

    A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified);

    minha Conexao:

    System.Data.SqlClient.

    SqlConnection ObjConexao = new System.Data.SqlClient.SqlConnection

     

    @"Data Source=.\SQLEXPRESS2008; Initial Catalog=FichaCadastral; User Id=sa; Password=sql@senac"

    ;

     

    ObjConexao.Open();

    Aguardo respostas Pessoal. 

    Obrigado.

    ();

    ObjConexao.ConnectionString =

     

    • Movido Rogerio Jerez quinta-feira, 1 de setembro de 2011 16:16 Movido para o forum correto (De:Onde devo postar minha dúvida?)
    sábado, 27 de agosto de 2011 13:27

Todas as Respostas