Skip to content
Advertisement

Tag: vb.net

SqlCommand ExecuteNonQuery() not committing changes

I have a function in which i pass through some SQL and attempt to execute it against a database. The function completes fine and a SQL trace shows me that the query is being executed against the database, but when i refresh my select statement, the data has not updated. In this instance, the query is a simple: No errors

SQL counting in table

I’ve got a table that has a name, and a month in. What would the SQL look like to make a table, that counts how many entries there is per month against each name. e.g. Im confident to modify the vb….

Advertisement