SQL Server Performance Forum – Threads Archive
Error de SQL desde Visual Basic
Hola, soy novato en SQL y quisiera preguntarles q puedo hacer , para solucionar el sgte. problema: Al abrir el codigo de un programa hecho Visual Basic 6.0 me sale un cuadro con este mensaje: "Error "-2147467259 (80004005)’ en tiempo de ejecucion: Error de inicio de sesion del usuario ‘sa’. Motivo: no está asociado a una conexion de SQL de confianza" e inmediatamente me marca un error en una linea de codigo del Visual Basic , que es la sgte: –> CN.Open "Provider=sqloledb;Data source=(local);initial catalog=Northwind;User id =sa;" que puedo hacer, este problema me sale con todos los programas q ejecuto desde Visual Basic y q requieren de la Conexion ADO q SQL Server provee??? , pues el programa en Visual Basic esta bien hecho y lo he probado en SQL 7.0 y funciona perfectamente pero en SQL Server 2000 no funciona y sale los mensajes q les digo. Sera q el SQL esta mal instalado ???? Si es asi por favor recomiendenme un manual de instalacion de SQL Server 2000, (solo del SQL Server 2000 – Edicion Personal) . Esperaré sus sugerencias, gracias.Por tu conexion, hay formas aqui: <a target="_blank" href=http://www.connectionstrings.com.>http://www.connectionstrings.com.</a> Si quieres usar autentificación de SQL Server, es necesario usar un password. Por ejemplo:<br /><br />Standard Security:<br /><br />"Driver={SQL Server};Server=Aron1;Database=pubs;Uid=sa<img src=’/community/emoticons/emotion-4.gif’ alt=’;P’ />wd=asdasd;" <br /><br /><br />Es mejor si no usas autentificación de SQL Server. Si quieres usar, por favor no usas la cuenta de SA. Por la seguridad de tu servidor, es la cuenta mas importante que necesitas guardar. <br /><br />Lo siento por mi español. [<img src=’/community/emoticons/emotion-1.gif’ alt=’

En cuanto a la seguridad no hay problema, pues el SQL lo tengo en mi propia PC y no esta en red en ningun momento , por el momento la seguridad no es importante , es por eso q el codigo esta como esta…. <br /><br />Espero mas sugerencias …<br /><br /><br /><blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote"><i>Originally posted by derrickleggett</i><br /><br />Por tu conexion, hay formas aqui: <a target="_blank" href=http://www.connectionstrings.com.>http://www.connectionstrings.com.</a> Si quieres usar autentificación de SQL Server, es necesario usar un password. Por ejemplo:<br /><br />Standard Security:<br /><br />"Driver={SQL Server};Server=Aron1;Database=pubs;Uid=sa<img src=’/community/emoticons/emotion-4.gif’ alt=’;P’ />wd=asdasd;" <br /><br /><br />Es mejor si no usas autentificación de SQL Server. Si quieres usar, por favor no usas la cuenta de SA. Por la seguridad de tu servidor, es la cuenta mas importante que necesitas guardar. <br /><br />Lo siento por mi español. [<img src=’/community/emoticons/emotion-1.gif’ alt=’

En tu código no se ve password. El sa, no tiene password?
Luis Martin
Moderator
SQL-Server-Performance.com One of the symptoms of an approaching nervous breakdown is the belief that one’s work is terribly important
Bertrand Russell
All postings are provided “AS IS†with no warranties for accuracy.
No, no tiene password , porque no lo necesita, debido a que solo yo tengo acceso a la Base de Datos, y no hay ninguna red de por medio, aun sigo investigando esto . . .
quote:Originally posted by LuisMartin
En tu código no se ve password. El sa, no tiene password?
Luis Martin
Moderator
SQL-Server-Performance.com One of the symptoms of an approaching nervous breakdown is the belief that one’s work is terribly important
Bertrand Russell
All postings are provided “AS IS†with no warranties for accuracy.
Luis Martin
Moderator
SQL-Server-Performance.com One of the symptoms of an approaching nervous breakdown is the belief that one’s work is terribly important
Bertrand Russell
All postings are provided “AS IS†with no warranties for accuracy.
Es decir, el password es blanco?
Luis Martin
Moderator
SQL-Server-Performance.com One of the symptoms of an approaching nervous breakdown is the belief that one’s work is terribly important
Bertrand Russell
All postings are provided “AS IS†with no warranties for accuracy.
CLARO QUE SI…
quote:Originally posted by LuisMartin
Es decir, el password es blanco?
Luis Martin
Moderator
SQL-Server-Performance.com One of the symptoms of an approaching nervous breakdown is the belief that one’s work is terribly important
Bertrand Russell
All postings are provided “AS IS†with no warranties for accuracy.
Luis Martin
Moderator
SQL-Server-Performance.com One of the symptoms of an approaching nervous breakdown is the belief that one’s work is terribly important
Bertrand Russell
All postings are provided “AS IS†with no warranties for accuracy.
Quizás deberÃas probar especificando que el password es blanco o probar con algún password para descartar si ese es el problema. Luis Martin
Moderator
SQL-Server-Performance.com One of the symptoms of an approaching nervous breakdown is the belief that one’s work is terribly important
Bertrand Russell
All postings are provided “AS IS†with no warranties for accuracy.
Buenas, ese error lo obtenia si el servidor lo tenia configurado como solo conexcion de windows, eso se encuentra en propiedades del servidor, la ficha seguridad y activar Sql Server y Windows, espero sirva el comentario, sino, no sabria a que se debe, y que Sistema Operativo tienes, porque ya me ha sucedido muchos problemas con el Xp, actualmente desarrollo con Windows 2000 y no tengo problemas de permisos. Jesus Aguilar
]]>