Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error - Data source name too long

Status
Not open for further replies.

MadJock

Programmer
May 25, 2001
318
GB
I get the above error with this code -

<%
set conn = server.createobject(&quot;ADODB.Connection&quot;)
conn.open(&quot;Driver=Microsoft.Jet.OLEDB.3.51; Data Source=l:\qm2000\iqms\tables\iqmstables.mdb&quot;)
%>

Does anyone know of a way round this? I can't move the database as it is used by several applications.

Thanks in advance,
Graeme website:
 
Looks like you may have just fogotten your first &quot; in the location specs there.

So that:

set conn = server.createobject(&quot;ADODB.Connection&quot;)
conn.open(&quot;Driver=Microsoft.Jet.OLEDB.3.51; Data Source=&quot;l:\qm2000\iqms\tables\iqmstables.mdb&quot;)

:)
paul
penny1.gif
penny1.gif
 
True. Try this syntax:

dim con, strCon
set con = server.createObject(&quot;ADODB.Connection&quot;)
strCon = &quot;Provider=Microsoft.Jet.OLEDB.4.0;Data Source=l:\qm2000\iqms\tables\iqmstables.mdb;Persist Security Info=False&quot;
con.open strCon

Just got it from the udl builder in win2k, so hope it works for you.

paul
penny1.gif
penny1.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top