Click here to Skip to main content
11,581,210 members (63,573 online)
Rate this: bad
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 3: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 at 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 at 12-Feb-11 9:50am
Have you tried the info provided on
Smitha Vijayan at 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
0 OriginalGriff 260
1 Frankie-C 145
2 Sergey Alexandrovich Kryukov 135
3 RyanDev 84
4 F-ES Sitecore 80
0 OriginalGriff 1,183
1 Sergey Alexandrovich Kryukov 825
2 Abhinav S 597
3 F-ES Sitecore 500
4 Suvendu Shekhar Giri 433

Advertise | Privacy | Mobile
Web03 | 2.8.150603.1 | Last Updated 12 Feb 2011
Copyright © CodeProject, 1999-2015
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