Réponse proposée conexão sql server

  • vendredi 4 mai 2012 20:25
     
     

    pessoal estou rodando um arquivo .bat que conecta no nas instancias e gera alguns relatorios.

    rodei este mesmo arquivo em um servidor normal e foi numa boa.

    fui rodar este mesmo arquivo em um nó de um cluster e recebo a seguinte mensagem:

    Sqlcmd: Error: Microsoft SQL Native Client : Login timeout expired.
    Sqlcmd: Error: Microsoft SQL Native Client : An error has occurred while establishing a connection to the server.
    When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.

    - já verifiquei e a instancia está habilitada a receber conexão remota.

    - o sql server browser tb está habilitado para as instancias.

    - também informo que o script está no próprio servidor, ou seja não precisa de conexão remota ao meu entender.

    alguem tem alguma dica do que posso fazer pra conseguir aplicar este script, este script já vem todo formatado pra conectar, apenas tenho que executar o arquivo .bat e ele faz o resto de acordo com alguns parametros e configurações em alguns arquivos que acompanham o mesmo.

    obrigado..

Toutes les réponses

  • vendredi 4 mai 2012 22:22
     
     Réponse proposée

    In a cluster, use the cluster names, not the machine names.


    Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se
  • samedi 5 mai 2012 19:23
     
     

    hello 2010eferreira,

    if you post your question in english in this forum you'll probably get more answers.

    I think Erland had given the answer already.


    Please use Mark as Answer if my post solved your problem and use Vote As Helpful if a post was useful.

  • lundi 7 mai 2012 13:52
     
     

    I did not understand as well put the name of the cluster?
    There is no parameter to step, just run the file that came configured with environment variables

    Everaldo Ferreira

  • lundi 7 mai 2012 13:53
     
     

    I did not understand as well put the name of the cluster?
    There is no parameter to step, just run the file that came configured with environment variables

    Everaldo Ferreira

  • lundi 7 mai 2012 16:59
     
     

    the script is running locally.

    Everaldo Ferreira

  • lundi 7 mai 2012 21:45
     
     

    Locally? Encora, deve uzar o nom de cluster, creo.

    But I might have misunderstood come não sabe portugues muite bem.

    What does your command line look like?


    Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se
  • mercredi 9 mai 2012 13:38
     
     
    Thanks, I found.
    the cluster is divided into two servers:

    A, two instances
    B, three instances


    Everaldo Ferreira

  • mercredi 9 mai 2012 21:36
     
     

    And how do you connect?


    Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se
  • dimanche 20 mai 2012 09:59
     
     

    Please check this may help you.

    http://www.macoratti.net/sql_cod.htm