Click here to Skip to main content
Rate this: bad
good
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 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 www.connectionstrings.com?
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 6,656
1 Sergey Alexandrovich Kryukov 6,400
2 CPallini 5,240
3 George Jonsson 3,584
4 Gihan Liyanage 2,625


Advertise | Privacy | Mobile
Web01 | 2.8.140921.1 | Last Updated 12 Feb 2011
Copyright © CodeProject, 1999-2014
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