Home Page
Articoli
Tips & Tricks
News
Forum
Archivio Forum
Blogs
Sondaggi
Rss
Video
Utenti
Chi Siamo
Contattaci
Username:
Password:
Login
Registrati ora!
Recupera Password
Home Page
Stanze Forum
SQL Server 2000/2005/2008, Express, Access, MySQL, Oracle
Cllegamento a Sql Server 2005 utilizzando DSN su file
venerdì 27 maggio 2011 - 10.58
Elenco Threads
Stanze Forum
Aggiungi ai Preferiti
Cerca nel forum
danieleq
Profilo
| Newbie
3
messaggi | Data Invio:
ven 27 mag 2011 - 10:58
Buon giorno a tutti,
ho un problema di collegamento ad un db Sql Server 2005.
lo scenario in cui mi trovo ad operare è il seguente:
Sistema operativo: Windows Server 2008 64 bit
Gestore DB: SQL Express 2005 32 bit
L'applicazione che utilizzo è realizzata con VB6 ed è installata direttamente sul server.
Tutti gli utenti si collegano al server utilizzando desktop remoto, quindi tutti i collegamenti
al db avvengono esclusivamente nell'ambito del server, non ho collegamenti di rete.
Per accedere al db utilizzo origine dei odbc -> dsn su file.
Stringa di connesione:
"DRIVER=SQL Server;UID=utente;PWD="";DATABASE=generico;SERVER=ASSISTENZA\SQLEXPRESS;NETWORK=DBMSSOCN;Persist Security Info=True;"
Il file dsn è stato creato utilizzando l'apposita utility a 32 bit \SYSwow64\odbcad32.exe
L'applicazione è stata installata con i diritti dell'utente Administrator.
Vengo al nocciolo del problema.
Se avvio da un client una sessione in desktop remoto utilizzando l'utente Administrator
il tutto funziona senza problemi.
Quando eseguo la stessa operazione con un'utente generico, che non appartiene al
gruppo degli Amministratori ricevo il messagio di errore seguente:
"Errroe di connessione al DSN.
Errore -2147467259
Desc:[Microsoft][ODBC SQL SERVER DRIVER][SQL SERVER Impossibile aprire il
database "generico" richiesto dall'account di accesso. Accesso non riuscito"
Visto che il problema si presenta solo con gli utenti generici sarei portato
a pensare che possa essere in relazione in qualche modo con le policy di
gruppo. Purtroppo non posso accedere alla configurazione del server 2008
perchè è amministrato da un'altra azienda.
Qualcuno mi può aiutare ?
Grazie in anticipo.
Daniele
jenga
Profilo
| Newbie
44
messaggi | Data Invio:
ven 27 mag 2011 - 11:12
hai già verificato i permessi sulla cartella dove sta il file DSN?
e i permessi per l'utente "normale" di effettuare una connessione al database?
puoi fare un test facendo logon interattivo al server con un utente che ha problemi e usando l'odbcad32
--
Igor Brusetti
http://jenga.wordpress.com
danieleq
Profilo
| Newbie
3
messaggi | Data Invio:
ven 27 mag 2011 - 14:17
Ciao Igor,
il logon interattivo sul server per gli utenti non amministratori è disabilitato.
Per gli altri suggerimenti devo attendere Lunedi per verificare.
Ti faccio sapere.
Grazie
Daniele
jenga
Profilo
| Newbie
44
messaggi | Data Invio:
ven 27 mag 2011 - 15:24
>Ciao Igor,
>il logon interattivo sul server per gli utenti non amministratori
>è disabilitato.
e come fai la sessione in collegamento remoto? viene pubblicato solo l'applicativo?
>Per gli altri suggerimenti devo attendere Lunedi per verificare.
>Ti faccio sapere.
>Grazie
di nulla!
--
Igor Brusetti
http://jenga.wordpress.com
danieleq
Profilo
| Newbie
3
messaggi | Data Invio:
ven 27 mag 2011 - 16:18
Ciao Igor
il logon al server avviene utilizzando XPunlimited, si tratta di un prodotto
alternativo al Terminal Server di Microsoft (www.xpunlimited.it)
Ho qualche notizia in più questo è il log di sqlserver:
Express Edition on Windows NT 6.1 (Build 7601: Service Pack 1)
2011-05-27 15:06:00.99 Server (c) 2005 Microsoft Corporation.
2011-05-27 15:06:00.99 Server All rights reserved.
2011-05-27 15:06:00.99 Server Server process ID is 3176.
2011-05-27 15:06:00.99 Server Authentication mode is MIXED.
2011-05-27 15:06:00.99 Server Logging SQL Server messages in file 'C:\Program Files (x86)\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\ERRORLOG'.
2011-05-27 15:06:00.99 Server This instance of SQL Server last reported using a process ID of 6268 at 27/05/2011 15:05:53 (local) 27/05/2011 13:05:53 (UTC). This is an informational message only; no user action is required.
2011-05-27 15:06:00.99 Server Registry startup parameters:
2011-05-27 15:06:00.99 Server -d C:\Program Files (x86)\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\master.mdf
2011-05-27 15:06:00.99 Server -e C:\Program Files (x86)\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\ERRORLOG
2011-05-27 15:06:00.99 Server -l C:\Program Files (x86)\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\mastlog.ldf
2011-05-27 15:06:01.00 Server SQL Server is starting at normal priority base (=7). This is an informational message only. No user action is required.
2011-05-27 15:06:01.00 Server Detected 8 CPUs. This is an informational message; no user action is required.
2011-05-27 15:06:01.16 Server Using dynamic lock allocation. Initial allocation of 2500 Lock blocks and 5000 Lock Owner blocks per node. This is an informational message only. No user action is required.
2011-05-27 15:06:01.17 Server Database mirroring has been enabled on this instance of SQL Server.
2011-05-27 15:06:01.17 spid5s Starting up database 'master'.
2011-05-27 15:06:01.27 spid5s Recovery is writing a checkpoint in database 'master' (1). This is an informational message only. No user action is required.
2011-05-27 15:06:01.38 spid5s SQL Trace ID 1 was started by login "sa".
2011-05-27 15:06:01.40 spid5s Starting up database 'mssqlsystemresource'.
2011-05-27 15:06:01.41 spid5s The resource database build version is 9.00.4035. This is an informational message only. No user action is required.
2011-05-27 15:06:01.54 spid8s Starting up database 'model'.
2011-05-27 15:06:01.54 spid5s Server name is 'SRV01\SQLEXPRESS'. This is an informational message only. No user action is required.
2011-05-27 15:06:01.56 spid5s Starting up database 'msdb'.
2011-05-27 15:06:01.75 spid8s Clearing tempdb database.
2011-05-27 15:06:01.83 Server A self-generated certificate was successfully loaded for encryption.
2011-05-27 15:06:01.83 Server Server is listening on [ 'any' <ipv6> 55194].
2011-05-27 15:06:01.83 Server Server is listening on [ 'any' <ipv4> 55194].
2011-05-27 15:06:01.83 Server Server local connection provider is ready to accept connection on [ \\.\pipe\SQLLocal\SQLEXPRESS ].
2011-05-27 15:06:01.83 Server Server named pipe provider is ready to accept connection on [ \\.\pipe\MSSQL$SQLEXPRESS\sql\query ].
2011-05-27 15:06:01.83 Server Dedicated administrator connection support was not started because it is not available on this edition of SQL Server. This is an informational message only. No user action is required.
2011-05-27 15:06:01.90 Server SQL Server is now ready for client connections. This is an informational message; no user action is required.
2011-05-27 15:06:02.55 spid8s Starting up database 'tempdb'.
2011-05-27 15:06:02.71 spid11s The Service Broker protocol transport is disabled or not configured.
2011-05-27 15:06:02.71 spid5s Recovery is complete. This is an informational message only. No user action is required.
2011-05-27 15:06:02.71 spid11s The Database Mirroring protocol transport is disabled or not configured.
2011-05-27 15:06:02.77 spid11s Service Broker manager has started.
2011-05-27 15:06:32.39 spid51 Starting up database 'GESTIONE'.
2011-05-27 15:06:51.08 Accesso Errore: 18456, gravità: 14, stato: 16.
2011-05-27 15:06:51.08 Accesso Login failed for user 'SRV01\silvia'. [CLIENT: <named pipe>]
2011-05-27 15:06:57.24 Accesso Errore: 18456, gravità: 14, stato: 16.
2011-05-27 15:06:57.24 Accesso Login failed for user 'SRV01\silvia'. [CLIENT: <named pipe>]
2011-05-27 15:11:09.81 spid51 Starting up database 'GESTIONE'.
2011-05-27 15:11:10.27 spid17s SQL Server has encountered 2 occurrence(s) of cachestore flush for the 'Object Plans' cachestore (part of plan cache) due to some database maintenance or reconfigure operations.
2011-05-27 15:11:10.27 spid17s SQL Server has encountered 2 occurrence(s) of cachestore flush for the 'SQL Plans' cachestore (part of plan cache) due to some database maintenance or reconfigure operations.
2011-05-27 15:11:10.27 spid17s SQL Server has encountered 2 occurrence(s) of cachestore flush for the 'Bound Trees' cachestore (part of plan cache) due to some database maintenance or reconfigure operations.
2011-05-27 15:11:16.62 spid52 Using 'xpstar90.dll' version '2005.90.4035' to execute extended stored procedure 'xp_instance_regread'. This is an informational message only; no user action is required.
2011-05-27 15:11:16.96 spid52 Starting up database 'GESTIONE'.
2011-05-27 15:11:27.13 spid53 Using 'xplog70.dll' version '2005.90.4035' to execute extended stored procedure 'xp_msver'. This is an informational message only; no user action is required.
2011-05-27 15:21:17.13 spid16s SQL Server has encountered 1 occurrence(s) of cachestore flush for the 'Object Plans' cachestore (part of plan cache) due to some database maintenance or reconfigure operations.
2011-05-27 15:21:17.14 spid16s SQL Server has encountered 1 occurrence(s) of cachestore flush for the 'SQL Plans' cachestore (part of plan cache) due to some database maintenance or reconfigure operations.
2011-05-27 15:21:17.14 spid16s SQL Server has encountered 1 occurrence(s) of cachestore flush for the 'Bound Trees' cachestore (part of plan cache) due to some database maintenance or reconfigure operations.
2011-05-27 15:35:11.10 spid51 Starting up database 'GESTIONE'.
2011-05-27 15:50:56.59 Accesso Errore: 18456, gravità: 14, stato: 5.
2011-05-27 15:50:56.59 Accesso Login failed for user 'silvia'. [CLIENT: <local machine>]
Sembra proprio un problema legato all'utente.
Aggiungo, perche se tento di fare la connessione da codice specificando l'utente sa nella stringa di connessione
"DRIVER=SQL Server;UID=sa;PWD="";DATABASE=GESTIONE;SERVER=ASSISTENZA\SQLEXPRESS;NETWORK=DBMSSOCN;Persist Security Info=True;"
il log segnala il problema a carico dell'utente windows ?
2011-05-27 15:50:56.59 Accesso Errore: 18456, gravità: 14, stato: 5.
2011-05-27 15:50:56.59 Accesso Login failed for user 'silvia'. [CLIENT: <local machine>]
Grazie
Daniele
Torna su
Stanze Forum
Elenco Threads
Partecipa anche tu! Registrati!
Hai bisogno di aiuto ?
Perchè non ti registri subito?
Dopo esserti registrato potrai chiedere
aiuto sul nostro
Forum
oppure aiutare gli altri
Consulta le
Stanze
disponibili.
Registrati ora !