Re: VB Express SQL Express Remote Connection
- From: cleo <cleo@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 23 Aug 2006 07:25:02 -0700
Thanks for the response
I'm sorry but I can't access the link you provided. Can you provide me with
some additional information or a different link.
"Cor Ligthert [MVP]" wrote:
Cleo,.
The server should be reachable by its Server name. Not as by the Jet engine
(access) with its file address.
It is in fact much easier than with Jet.
Why not try this one first, after doing this you can see almost everything
that is hapening.
http://www.vb-tips.com/dbpages.aspx?ID=1139f14a-c236-4ad7-8882-b1ed16424252
I hope this helps,
Cor
"cleo" <cleo@xxxxxxxxxxxxxxxxxxxxxxxxx> schreef in bericht
news:C419FC01-3A37-480C-B624-671FEC553530@xxxxxxxxxxxxxxxx
I am migrating from VB6/Access to Visual Basic and SQL Express. I have
success writing test code on my local machine and am now setting up tests
for
deployment to a server. I have installed SQL Express on a Windows 2003
Server. I can connect and create databases on the Remote Server from my
local machine using SQL Management Express, so I know Remote Access is
working.
However, I am unable to connect using a connection string within my VB
Express program. I am using the SQL Connection String Builder with the
properties
Dim cn as SQLClient.DBConnectionStringBuilder = new
SQLClient.DBConnectionStringBuilder
cn.DataSource = "AppServer02\SQLExpress"
cn.ApplicationName = "VBTest"
cn.AttachDBFilename = "testdb.mdf"
cn.IntegratedSecurity = True
cn.PersistSecurityInfo = False
The error I receive is
When connecting to SQL Server 2005, this failure may be caused by the fact
that under the default settings SQL Server does not allow remote
connections.
I understand that VB Express does not support Remote Connections through
the
Designer, but I thought I could connect to a remote database using a
connection string.
Your help is appreciated
- Follow-Ups:
- Re: VB Express SQL Express Remote Connection
- From: Cor Ligthert [MVP]
- Re: VB Express SQL Express Remote Connection
- References:
- Re: VB Express SQL Express Remote Connection
- From: Cor Ligthert [MVP]
- Re: VB Express SQL Express Remote Connection
- Prev by Date: Re: Currency issue
- Next by Date: Re: Reading specified format text from text file
- Previous by thread: Re: VB Express SQL Express Remote Connection
- Next by thread: Re: VB Express SQL Express Remote Connection
- Index(es):
Relevant Pages
|