|
-
October 5th, 1999, 02:54 AM
#1
DSN-less connection
Hi
I know that DSN-less connections can improve the speed of applications. I've tried using this but I always get error like this:
DataSource Name not found and no default driver specified.
Anyone knows what went wrong?
-
October 5th, 1999, 03:17 AM
#2
Re: DSN-less connection
post your connection string, please.
Does it look similar to the one below?
"Driver={SQL Server};Server=yourserver;UID=;PWD=;database=yourdatabase"?
-
October 5th, 1999, 03:35 AM
#3
Re: DSN-less connection
Hi, my connection string is as follows:
("", rdDriverNoPrompt, False,server=orc0;Driver=MSDASQL;uid=system;pwd=manager")
-
January 27th, 2000, 01:20 PM
#4
Re: DSN-less connection
Hi, i have arround the same problem wuth my connection TO Access, the following lines doesn't go
// m_strConnection = _T("Provider=MSQASQL.1;Data Source=access");
m_strConnection = _T("Provider=Microsoft.Jet.OLEDB.3.51.1;Data Source=access");
m_strCmdText = _T("select * from newbd");
m_pRs->Open((LPCTSTR)m_strCmdText, (LPCTSTR)m_strConnection, adOpenStatic,
adLockReadOnly, adCmdTableDirect);
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|