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??????????
Version imprimable
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??????????
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
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
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)????
bha essaye et dis nous si ca fonctionne ou pas :)
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 :cry:
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.
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!!!!!!!!!!!!!!!!!!
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.