Hi every one from My country : good morning .....
Somebody help me ..
How can I connect visual vasic 2005 with Sql server 2005 manually "not with wizard" ,
What is The Correct String for The Connection statement and i need The following statements :
1 - The Command statement.
2 - The Adapter Statement .
3 - The Reader statement
-- When I write the code to connect with data base i face the Runtime error :
"InvalidOperationException"....
Some body help ....
How to connect vb 2005 with SQL Server 2005
Started by Ubuntu_monster, Oct 11 2008 02:59 AM
6 replies to this topic
#1
Posted 11 October 2008 - 02:59 AM
Sorry for bad english
|
|
|
#2
Posted 11 October 2008 - 05:29 AM
It will depend: are you doing an ADO connection, an ODBC connection, or something else?
#4
Posted 11 October 2008 - 01:52 PM
There are at least three ways to connect that I know of: ADO, ODBC, and direct (basically a telnet to the SQL Server port and issue commands based on the API). Each connection type requires different configuration methods.
#5
Posted 13 October 2008 - 05:45 AM
WingedPanther said:
There are at least three ways to connect that I know of: ADO, ODBC, and direct
Dear WingedPanther :
I need to connect it with ADO
Sorry for bad english
#6
Posted 13 October 2008 - 08:46 AM
Your connection string will resemble:
"Driver={SQL Server};Server=MyServer;Database=MyDatabase;Uid=MyLogin;Pwd=MyPassword;"
"Driver={SQL Server};Server=MyServer;Database=MyDatabase;Uid=MyLogin;Pwd=MyPassword;"


Sign In
Create Account

Back to top









