Click here to Skip to main content
15,881,812 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I want to connect SQL server 2005 (server authentication) using VB6 and check for particular data...If data exists then I need to send email to user by copying the records from DB in text format. could you please help me provide the code atleast for the first part (connecting database and retriving data).
Posted

1 solution

See http://msdn.microsoft.com/en-us/library/bb264566(v=sql.90).aspx[^]

If you search (using Google/Bing) for "sql server 2005 vb6" you will get several results.
 
Share this answer
 
v2
Comments
Member 7667718 12-Feb-11 9:46am    
Thanks Smitha. I have checked that already, it didn't worked for me...The Sql server is server authentication..could you help with the code.
Estys 12-Feb-11 9:50am    
Have you tried the info provided on www.connectionstrings.com?
Smitha Nishant 12-Feb-11 9:52am    
You need to use the proper connection string, which should include the username/password.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900