Note that there are some explanatory texts on larger screens.

plurals
  1. POIs my code correct? Connect to SQL Server. Using VB6 / Access2003
    primarykey
    data
    text
    <p>Connect to SQL Server via (ODBC System DSN?) (No WinNT Auth) using VB6 / Access2003.</p> <p>I don't know if my code** is correct. Could someone give me an example that do the following:</p> <ul> <li>Connect to SQLServer 2005/2008 (Normal and Express)</li> <li>Connect via ODBC (or would it work without ODBC?)</li> <li>Using SQL Authentification instead of NT Authentification</li> <li>No Trusted Connection available (Username / Password needed)</li> </ul> <p>Background info. We wrote a program which connects to a SQL Server via ODBC - System DSN. It works quietly good IF the connection is trusted OR IF the user is in the same domain. (Using Windows NT Authorisation instead of SQL-Authorisation).</p> <p><strong>Now to my problem</strong>: When someone's got no Windows NT Authorisation, you must choose SQL Authorisation, set up Username and Password (created inside the SQL Server). (For example. The master machine is running SQL Server on Win XP, Vista or Win 7. Without being in a Domain).</p> <p>Now this happens when I try to connect my piece of code with the new ODBC Connection. (Which is using SQL Auth --> User/Pass). Everytime I open the program, I must enter the password for the Connection once to connect my Tables with my Access Database.</p> <p>ConnectionStrings.com didn't helped me.</p> <p><em>My connectionstrings for a SQL Authentificated Connection looks like</em>:</p> <p>**<code>ODBC;DATABASE=MyDatabase;DESCRIPTION=Connection to my Database;DSN=ODBCConnection;OPTION=0;PWD=MyPass;PORT=1433;SERVER=MyNormalMachine\SQLEXPRESS;UID=MyUser</code></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload