Count the Number of Tables in a SQL Server Database [duplicate]

You can use INFORMATION_SCHEMA.TABLES to retrieve information about your database tables. As mentioned in the Microsoft Tables Documentation: INFORMATION_SCHEMA.TABLES returns one row for each table in the current database for which the current user has permissions. The following query, therefore, will return the number of tables in the specified database: USE MyDatabase SELECT COUNT(*) FROM … Read more

How to count items in JSON data

import json json_data = json.dumps({ “result”:[ { “run”:[ { “action”:”stop” }, { “action”:”start” }, { “action”:”start” } ], “find”: “true” } ] }) item_dict = json.loads(json_data) print len(item_dict[‘result’][0][‘run’]) Convert it in dict.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)