IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

MS SQL Server Discussion :

se connecter a sql server


Sujet :

MS SQL Server

  1. #1
    Membre averti
    Inscrit en
    Juillet 2006
    Messages
    49
    Détails du profil
    Informations forums :
    Inscription : Juillet 2006
    Messages : 49
    Par défaut se connecter a sql server
    comment se connecter a un serveur sql server 2005 express edition appartir d un autre poste (client) ds un reseau??
    est ce qu on doit installer des logiciels sur le poste client ou bien change simplement le chemin??????????

  2. #2
    Membre éclairé
    Profil pro
    Inscrit en
    Avril 2004
    Messages
    114
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2004
    Messages : 114
    Par défaut
    je ne sais pas si c'est possible avec une version express mais essaye toujours de lancer enterprise manager puis de faire "ajouter/enregistrer un nouveau server".
    Apres soit tu utilises la fonction parcourrir, soit tu tappes toi le meme le nom de ton server.

    Mais il faudrai une confirmation que la version express n'est pas juste monoposte

  3. #3
    Membre Expert
    Avatar de rudib
    Homme Profil pro
    Fakir SQL Server & NoSQL
    Inscrit en
    Mai 2006
    Messages
    2 573
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Fakir SQL Server & NoSQL

    Informations forums :
    Inscription : Mai 2006
    Messages : 2 573
    Par défaut
    Bonjour,

    C'est de loin une des questions les plus posées du forum. En faisant une recherche tu trouveras des threads comme celui-ci : http://www.developpez.net/forums/sho...d.php?t=179623

  4. #4
    Membre averti
    Inscrit en
    Juillet 2006
    Messages
    49
    Détails du profil
    Informations forums :
    Inscription : Juillet 2006
    Messages : 49
    Par défaut
    mon pbl c comment modifier les deux chaines de connection ds le fichier .config
    par le serveur sql se trouve ds un poste s appelle "maitre" et le client ds un poste "esclave"
    je modifie la chaine de connection au serveur comme ca:
    ".\maitre\SQLEXPRESS"
    et la chaine de base de donnees :
    ".\maitre\c:\progrmfiles\.........."
    ca suffit sans installer rien sur le poste client (ni sql managementni d autre)????

  5. #5
    Membre éclairé
    Profil pro
    Inscrit en
    Avril 2004
    Messages
    114
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2004
    Messages : 114
    Par défaut
    bha essaye et dis nous si ca fonctionne ou pas

  6. #6
    Membre averti
    Inscrit en
    Juillet 2006
    Messages
    49
    Détails du profil
    Informations forums :
    Inscription : Juillet 2006
    Messages : 49
    Par défaut
    j ai rendu le fichier Data de sql server partage et j ai fait c deux chaines de connections :
    \\maitre\sqlexpress
    \\maitre\Data\mabasedonnee

    mais ca marche pas

  7. #7
    Membre Expert
    Avatar de rudib
    Homme Profil pro
    Fakir SQL Server & NoSQL
    Inscrit en
    Mai 2006
    Messages
    2 573
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Fakir SQL Server & NoSQL

    Informations forums :
    Inscription : Mai 2006
    Messages : 2 573
    Par défaut
    Bonjour,

    J'ai l'impression qu'il y a confusion entre serveur de bases de données et serveur de fichiers. On dirait que tes chaînes de connexion référencent des fichiers sur un partage. Si tu devais faire ça, à quoi te servirait SQL Server ?
    Tu dois référencer le nom du serveur \ l'instance :
    maitre\sqlexpress
    et non pas
    \\maitre\sqlexpress

    et la base, simplement par son nom. C'est SQL Server qui s'occupe de la trouver.

  8. #8
    Membre averti
    Inscrit en
    Juillet 2006
    Messages
    49
    Détails du profil
    Informations forums :
    Inscription : Juillet 2006
    Messages : 49
    Par défaut
    j ai fait ca aussi c-a-d
    maitre\sqlexpress
    et j ai laisse la chaine du chemin de la base donnees comme elle est :
    C:\programFiles..................
    mais encore pas de connexion a distance
    je signale que j ai active le protocole tcp\ip et les cannaux et sqlserver.exe ds le par-feu et mon application marche bien en locale!!!!!!!!!!!!!!!!!!

  9. #9
    Membre averti
    Inscrit en
    Juillet 2006
    Messages
    49
    Détails du profil
    Informations forums :
    Inscription : Juillet 2006
    Messages : 49
    Par défaut
    voila les details d erreur qu il me donne:
    See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.

    ************** Exception Text **************
    System.Data.SqlClient.SqlException: Échec de l'ouverture de session de l'utilisateur 'YASSINE\Invité'.
    at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
    at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
    at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
    at System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK)
    at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance)
    at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance)
    at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection)
    at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options)
    at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject)
    at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject)
    at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)
    at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
    at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
    at System.Data.SqlClient.SqlConnection.Open()
    at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
    at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior)
    at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable)
    at projet2.meteoDataSetTableAdapters.authentificationTableAdapter.Fill(authentificationDataTable dataTable, String username, String password) in C:\Documents and Settings\JET7YASSINE\Bureau\projet2\projet2\meteoDataSet.Designer.cs:line 19715
    at projet2.Form10.button1_Click(Object sender, EventArgs e) in C:\Documents and Settings\JET7YASSINE\Bureau\projet2\projet2\Form10.cs:line 43
    at System.Windows.Forms.Control.OnClick(EventArgs e)
    at System.Windows.Forms.Button.OnClick(EventArgs e)
    at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
    at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.ButtonBase.WndProc(Message& m)
    at System.Windows.Forms.Button.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


    ************** Loaded Assemblies **************
    mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
    ----------------------------------------
    projet2
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Documents%20and%20Settings/moh/Bureau/projet2/projet2/bin/Debug/projet2.exe
    ----------------------------------------
    System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    ----------------------------------------
    System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    System.Data
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
    ----------------------------------------
    System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
    ----------------------------------------
    System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    ----------------------------------------
    System.Transactions
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
    ----------------------------------------
    System.EnterpriseServices
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
    ----------------------------------------

    ************** JIT Debugging **************
    To enable just-in-time (JIT) debugging, the .config file for this
    application or computer (machine.config) must have the
    jitDebugging value set in the system.windows.forms section.
    The application must also be compiled with debugging
    enabled.

    For example:

    <configuration>
    <system.windows.forms jitDebugging="true" />
    </configuration>

    When JIT debugging is enabled, any unhandled exception
    will be sent to the JIT debugger registered on the computer
    rather than be handled by this dialog box.

Discussions similaires

  1. [VS] Remote connection avec SQL Server 2005 Express
    Par Invité dans le forum MS SQL Server
    Réponses: 4
    Dernier message: 28/05/2006, 22h28
  2. [VB6] Comment se connecter a SQL Server
    Par Vesta dans le forum VB 6 et antérieur
    Réponses: 4
    Dernier message: 07/04/2006, 11h09
  3. connection à ms sql server
    Par korchimustapha dans le forum MS SQL Server
    Réponses: 2
    Dernier message: 20/03/2006, 08h31
  4. Connection de SQL SERVER 2005 EXPRESS avec HIBERNATE
    Par jerome giraud dans le forum MS SQL Server
    Réponses: 1
    Dernier message: 27/02/2006, 09h07
  5. Réponses: 7
    Dernier message: 18/07/2005, 13h42

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo