Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trying to open local SQL Server database
Message
From
16/01/2006 13:18:58
 
 
To
16/01/2006 09:50:07
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01087065
Message ID:
01087253
Views:
10
>Michel,
>Include "driver=SQL server;" with SQLConnectstring and change true to yes (didn't try with true before maybe it'd work too).
>In VS2005 it'd work as is because it uses SQL native client and doesn't need driver specified.
>For SQL2005 you can also use (if ODBC driver is installed):
>Driver = {SQL Native client}
>
>
>
>lnHandle = SQLStringConnect('Driver=SQL server;'+;
> 'Data Source = .\SQLEXPRESS;'+;
> 'AttachDbFilename="D:\Visual Studio Projects\Test\Test.mdf";'+;
> 'Integrated Security=SSPI;User Instance=yes')
>
I think the problem relies with the server name. I put the computer name but this doesn't work.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform