My operatting ststem is WinXP, VB 6.0, SQL Server Professional 2000. when i trying to access data on vb from SQL Server Pro 2000 i get error can't connect to SQL Server. can you tell me answer and send sample program for it.
main_connection.Open "Provider=SQLOLEDB.1;User ID=user_id;Persist Security Info=False;Password=user_password;Intial Catalog=table_name;Data Source=server_name"
Set main_catalog= New ADOx.Catalog
main_catalog.ActiveConnection= main_connection
-----------------------------
And, check if your SQL SERVER is running....