Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Visual Basic Forum for Visual Basic Programmers VB Forum Index » Database & Reporting

Post new topic   Reply to topic
Microsoft SQL Server
View previous topic :: View next topic  
Author Message
Xicana
Newbie


Joined: 15 Jan 2004
Posts: 3

PostPosted: Jan 15th, 2004 01:09 PM    Post subject: Microsoft SQL Server Reply with quote

Ok everyone - please be patient!

My employer has asked me to to create a database on Microsoft SQL server and use VB as the front end. I have worked with VB before and used Access (jet engine 4.0) as my database.

Can someone let me know how to connect to SQL server?
Back to top
View user's profile Send private message
Avis
Junior Poster


Joined: 07 Oct 2003
Posts: 510
Location: India

PostPosted: Jan 16th, 2004 07:59 AM    Post subject: Reply with quote

Hi!

Better check out this:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ado270/htm/mdaexamples_vb01_16.asp

Thanks!
_________________
Code Snippets, Tutorials, Utilities, Controls

Low cost Web Hosting
Hosting starts at as low as $4 per year!


Always follow posting guidelines
Put your VB code in [vb ] your code [ /vb] tags!
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger ICQ Number
Xicana
Newbie


Joined: 15 Jan 2004
Posts: 3

PostPosted: Jan 16th, 2004 05:39 PM    Post subject: thanks Reply with quote

Thanks...I'll check it out.
Back to top
View user's profile Send private message
Andir
Centurion


Joined: 21 Dec 2003
Posts: 184
Location: Chicago Area

PostPosted: Jan 20th, 2004 03:29 AM    Post subject: Reply with quote

how do you normally connect to the access database? do you use ADO? (ADODB.Connection / Recordset) If so, it's a matter of just changing your connection string.

I like to make DSN files in the ODBC Administrator and make the connectionstring = "fileDSN=" & filepath

That way I can change the DSN file and make it point to an SQL server instead of Access, DB2, Oracle or whatever else ODBC will connect to. This makes the program dynamic enough to run on almost any database.
_________________
If you happen to see little people sitting on your desk...don't tell anyone or they might think your crazy too.
Back to top
View user's profile Send private message
Xicana
Newbie


Joined: 15 Jan 2004
Posts: 3

PostPosted: Jan 20th, 2004 11:12 AM    Post subject: That was my first thought... Reply with quote

Thanks! I did use connection string before...I'm a little tied up with a few other projects right now - we've decided to put this database on the backburner for now...but when I get to it, I'll try out ya'lls suggestions.

=D
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Visual Basic Forum for Visual Basic Programmers VB Forum Index » Database & Reporting All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Visual Basic Forum runs phpBB | Forum Template © iOptional
VB Resources | SSL | Visual Basic