Click here to Skip to main content
12,754,455 members (36,479 online)
Rate this:
Please Sign up or sign in to vote.
See more: VB6 VB
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 12-Feb-11 4:36am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1


If you search (using Google/Bing) for "sql server 2005 vb6" you will get several results.
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
Smitha Vijayan 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)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170217.1 | Last Updated 12 Feb 2011
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100