Embed ODBC Connection info in Visio document

L

LostBrain

Hi all,

I want to see if there is a way to embed the ODBC connection information
into the visio document instead of using an external dsn file. I have many
users that will need to access the database from different parts of the
network. Groups do not have same network shares, so putting on the network is
not an option.

Can the dsn file be accessed via http or https? This would be a great
solution.
 
A

Al Edlund

consider saving it as a custom property in the document sheet so you can
read it programatically.
al
 
L

LostBrain

Tried. No joy. 'ODBC.Connection' seems to be looking for a DSN file OR I'm
just not forming the string correct for shapesheet usage.

This works:
odbcdatasource=c:\filename.dsn

This does not work:
prop.odbcconn= "driver=sql server|database=test1|server=vm531a"
odbcdatasource=prop.odbcconn
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top