Oppital
asked on
VB Error connecting to MS SQL Server 2005 Express
I'm Having Trouble
I installed MS SQL 2005 Express
and created the program in vb, the code is attached
When I click "connect" or connect
appears two errors
I Do Not Know Where I'm wrong
Other programs successfully connect in sql
But my mistakes Have
someone help me?
thanks
Form1.frm.txt
Testar.vbp.txt
Testar.vbw.txt
I installed MS SQL 2005 Express
and created the program in vb, the code is attached
When I click "connect" or connect
appears two errors
I Do Not Know Where I'm wrong
Other programs successfully connect in sql
But my mistakes Have
someone help me?
thanks
Form1.frm.txt
Testar.vbp.txt
Testar.vbw.txt
I'd check to make sure that the SQL Server 2005 Express Edition has been configured for network connectivity. The default install does NOT enable network connection.
Take a look at the following (about 1/2 way down)
http://msdn.microsoft.com/en-US/library/ms345154(v=SQL.90).aspx
Take a look at the following (about 1/2 way down)
http://msdn.microsoft.com/en-US/library/ms345154(v=SQL.90).aspx
ASKER
the problem is software
I am not able to do it communicate with the database
but using other programs can
I am not able to do it communicate with the database
but using other programs can
Take a look at these example connection strings... The express edition typically has an "instance name" of SQLEXPRESS
http://www.connectionstrings.com/sql-server-2005
http://www.connectionstrings.com/sql-server-2005
ASKER
I tried the forms on this site, the ideal would be to try to find something in the code
thanks
thanks
Well, we don't really have much to go on, since we can't see what values are being used to build the connection string.
Here is what I'd guess would be the correct connection string:
SQL = "Provider=SQLNCLI;Data Source=" & Servidor.Text & "\SQLEXPRESS; Initial Catalog=" & BancoDados.Text & ";Password=" & Senha.Text & ";User ID=" & Login.Text & ";"
Here is what I'd guess would be the correct connection string:
SQL = "Provider=SQLNCLI;Data Source=" & Servidor.Text & "\SQLEXPRESS; Initial Catalog=" & BancoDados.Text & ";Password=" & Senha.Text & ";User ID=" & Login.Text & ";"
ASKER
I found the solution
ip: xxxx \ SQLEXPRESS
and found new problem
how to make a vb6 program that connects to a database
ms sql server 2005 express
that runs on x84
run on computers with x64 windows 7?
ip: xxxx \ SQLEXPRESS
and found new problem
how to make a vb6 program that connects to a database
ms sql server 2005 express
that runs on x84
run on computers with x64 windows 7?
What kind of errors are you getting?
ASKER
Run-time error '3706'
i'm use win 7 x64
i'm use win 7 x64
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
the problem is in software that is not working on x64, no with the database
Error 3706 is all about the database provider... did you try it?
ASKER
good
ASKER