Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trying to open local SQL Server database
Message
 
À
16/01/2006 15:44:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01087065
Message ID:
01087317
Vues:
12
>>Just a SWAG, but in the Data Source isn't the ".\" syntax referring to the local machine? Is the SQL server you're trying to attach to on the local machine, or a remote one? If remote you might need something like
Data Source=\\MachineName\InstanceName
>
>It is local.
>
>I also tried:
>
>
>lcSQLString=[Driver={SQL Server};Server=./SQLEXPRESS;Database=test;Trusted_Connection=yes;]
>lcSQLString=[Driver=SQL Server;Server=./SQLEXPRESS;Database=test;Trusted_Connection=yes;]
>lcSQLString=[Driver={SQL Server};Server=./SQLEXPRESS;Database=test;Integrated Security=SSPI;User Instance=yes;]
>lcSQLString=[Driver=SQL Server;Server=./SQLEXPRESS;Database=test;Integrated Security=SSPI;User Instance=yes;]
>
>
>I always get SQL Server does not exist or access denied.

Here the connection string I used on my Home computer for SQL Server 2005:
m1 = SQLSTRINGCONNECT("DRIVER=SQL Native Client;SERVER=BORIS1\SQLEXPRESS;Trusted_Connection=Yes;APP=Microsoft Visual FoxPro;WSID=BORIS1;")
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform