Computing.Net > Forums > Programming > SQL Server Connecting String

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

SQL Server Connecting String

Reply to Message Icon

Name: henry_joshua
Date: April 4, 2004 at 22:56:35 Pacific
OS: Win 98
CPU/Ram: P-4/128
Comment:

Dear Friends,
I have been using MS Access as the backend and presently I have planned to use SQL Server as the back end. The connecting string to MS ACCESS is

cmd = "Driver={Microsoft Access Driver (*.mdb)};Dbq=" & CurDir & "\Data\mr_data6.mdb;Uid=Admin; Pwd=abc"
Set cn = New ADODB.Connection
cn.ConnectionString = cmd1
cn.Open

In the case of SQL SERVER how do i connect. Can you help me.

Thanx in advance.

Regards
Malini



Sponsored Link
Ads by Google

Response Number 1
Name: secrets
Date: April 5, 2004 at 13:23:54 Pacific
Reply:

Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=yourdatabasename;Data Source=yourdataservername


0

Response Number 2
Name: MarkM
Date: April 6, 2004 at 10:59:03 Pacific
Reply:

If we're talking about ADO? then I find this website excellent for example connection strings.

It shows different ways including DSN based strings, one's that include username and password rather that Intergrated Security.

It also covers all major database formats:

http://www.able-consulting.com/ADO_Conn.htm


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: SQL Server Connecting String

how to check sql server on loading www.computing.net/answers/programming/how-to-check-sql-server-on-loading/8932.html

VB6 & Sql Server 2000 connection www.computing.net/answers/programming/vb6-amp-sql-server-2000-connection/12488.html

Sql connection string VB6 www.computing.net/answers/programming/sql-connection-string-vb6/12336.html