Question : SQL Server 2008 & Visual Basic 6.0

How do I connect to a SQL Server 2008 database with Visual Basic 6?

Answer : SQL Server 2008 & Visual Basic 6.0

if you use windows authentication you probably done need to specify a login as it will use the currently logged in user to authenticate.  But if you did want to use a specific user then put the user after UID= and the password after PWD= i.e.

DRIVER={SQL SERVER};SERVER=servername;UID=jblogs;PWD=test1234;DATABASE=dbname

no you dont need to include dbf just the name of the database
Random Solutions  
 
programming4us programming4us