Advantage .NET Data Provider
Standard remote connection
Data Source=\\myserver\myvolume\mypat\mydd.add;User ID=myUsername;Password=myPassword;ServerType=REMOTE;
Local connection
Data Source=\\myserver\myvolume\mypat\mydd.add;User ID=myUsername;Password=myPassword;ServerType=LOCAL;
AIS connection
Data Source=\\myserver\myvolume\mypat\mydd.add;User ID=myUsername;Password=myPassword;ServerType=AIS;
Separating the path and catalog parameters
Data Source=\\myserver\myvolume\mypat;Initial Catalog=mydd.add;User ID=myUsername;Password=myPassword;ServerType=REMOTE;
Specifying port
Data Source=\\myserver:9999\myvolume\mypat\mydd.add;User ID=myUsername;Password=myPassword;ServerType=REMOTE;
Read only connection
Data Source=\\myserver\myvolume\mypat\mydd.add;User ID=myUsername;Password=myPassword;ServerType=REMOTE;ReadOnly=TRUE;
Trim spaces from string data
Fields of type String will have trailing white spaced trimmed on retrieval.
Data Source=\\myserver\myvolume\mypat\mydd.add;User ID=myUsername;Password=myPassword;ServerType=REMOTE;TrimTrailingSpaces=TRUE;
Network protocol
Data Source=\\myserver\myvolume\mypat\mydd.add;User ID=myUsername;Password=myPassword;ServerType=REMOTE;CommType=UDP_IP;
Compression
Data Source=\\myserver\myvolume\mypat\mydd.add;User ID=myUsername;Password=myPassword;ServerType=REMOTE;Compression=ALWAYS;
User count per connection disregarding client computer
Default behaviour for counting number of users on the server is per computer connecting. This connection string overrides that behaviour making each connection count as a user even if made from the same computer.
Data Source=\\myserver\myvolume\mypat\mydd.add;User ID=myUsername;Password=myPassword;ServerType=REMOTE;IncrementUserCount=True;
Share DBF tables to other applications
This is used to share DBF tables in a writable mode with other (non-Advantage) database applications.
Data Source=\\myserver\myvolume\mypat\mydd.add;User ID=myUsername;Password=myPassword;ServerType=REMOTE;LockMode=COMPATIBLE;
Show deleted records
Data Source=\\myserver\myvolume\mypat\mydd.add;User ID=myUsername;Password=myPassword;ServerType=REMOTE;ShowDeleted=True;
Dont increment user count for stored procedure
Data Source=\\myserver\myvolume\mypat\mydd.add;User ID=myUsername;Password=myPassword;ServerType=REMOTE;StoredProcedureConnection=True;
Disable connection pooling
Data Source=\\myserver\myvolume\mypat\mydd.add;User ID=myUsername;Password=myPassword;ServerType=REMOTE;Pooling=False;
The value 2 can also be used instead of REMOTE