Maximum number of characters in DSN name

N

Nobody

What is the maximum number of characters in DSN name? Seems to be 33 (can't
create longer name in Control Panel) but I can't find any "official"
documentation from Microsoft about it.
 
R

Rick B

This is a Microsoft Access newsgroup. Do you have a question related to
Microsoft Access, the database application that is part of Microsoft Office
Professional?
 
N

Nobody

I am trying to create DSN in control panel to connect to MS Access database.
If this is not considered a question related to MS Access - please accept my
deepest apologies.
 
N

Nobody

[Found on Usenet]

SQL_MAX_DSN_LENGTH is defined in sql.h and, indeed, it is 32. There is no
real way to
change it (except to convince MS). Many ODBC drivers depend on it ... for
instance, they
do things like ...

char dsn[SQL_MAX_DSN_LENGTH + 1];
 

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