Click here to Skip to main content
12,251,889 members (61,836 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 3:36am

1 solution

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

Solution 1

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.
  Permalink  
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 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.160426.1 | Last Updated 12 Feb 2011
Copyright © CodeProject, 1999-2016
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