Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Updating SQL Files from VFP
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01204946
Message ID:
01205043
Views:
21
Hi Woodie.
How would I put that intoi a SqlExec string ?

Also, I am getting 'The user is not associated with a trusted SQL server connection' with my Connection string as if I dont have rights, althouh I can see the table fine if I go in vai Sql Management Studio ?

Regards,

Gerard


>ZAP will not work with SQL Server Express, you must use a SQL Statement such as:
>
>
>
>DELETE FROM <TableName> WHERE 1=1
>
>
>
>This is compact syntax for clearing all records from a table. SQL Server handles tables quite differently than VFP so you dont have to worry about PACK or DELETED. Once a record is deleted in SQL Server it is gone for good. There are several wor arounds if this is not the behavior you want such as adding a deleted flag column to your table and adding a WHERE clause to your SELECT statement to only return record where for example :
>
>
>
>SELECT * FROM TableName WHERE TableName.IsDeleted = 0  && False with SQL Server
>
>
>
>Remember when using SQL Server that the Boolean 0 = .f. in VFP and Boolean 1 = .t.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform