{"action":"created","issue":{"url":"https://api.github.com/repos/mkleehammer/pyodbc/issues/413","repository_url":"https://api.github.com/repos/mkleehammer/pyodbc","labels_url":"https://api.github.com/repos/mkleehammer/pyodbc/issues/413/labels{/name}","comments_url":"https://api.github.com/repos/mkleehammer/pyodbc/issues/413/comments","events_url":"https://api.github.com/repos/mkleehammer/pyodbc/issues/413/events","html_url":"https://github.com/mkleehammer/pyodbc/issues/413","id":335063929,"node_id":"MDU6SXNzdWUzMzUwNjM5Mjk=","number":413,"title":"Having to use full qualified names for querys.","user":{"login":"stylneo","id":7190768,"node_id":"MDQ6VXNlcjcxOTA3Njg=","avatar_url":"https://avatars3.githubusercontent.com/u/7190768?v=4","gravatar_id":"","url":"https://api.github.com/users/stylneo","html_url":"https://github.com/stylneo","followers_url":"https://api.github.com/users/stylneo/followers","following_url":"https://api.github.com/users/stylneo/following{/other_user}","gists_url":"https://api.github.com/users/stylneo/gists{/gist_id}","starred_url":"https://api.github.com/users/stylneo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stylneo/subscriptions","organizations_url":"https://api.github.com/users/stylneo/orgs","repos_url":"https://api.github.com/users/stylneo/repos","events_url":"https://api.github.com/users/stylneo/events{/privacy}","received_events_url":"https://api.github.com/users/stylneo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-06-23T03:30:04Z","updated_at":"2018-06-26T14:17:49Z","closed_at":"2018-06-26T14:17:49Z","author_association":"NONE","body":"### Environment\r\n\r\nTo diagnose, we usually need to know the following, including version numbers.  On Windows, be\r\nsure to specify 32-bit Python or 64-bit:\r\n\r\n- Python: 3.6.1 (Anaconda 4.4.0) 64-bit\r\n- pyodbc: 4.016\r\n- OS: Win10 64bit\r\n- DB: SQL Server 14\r\n- driver: SQL Server 2017 14.0.1 (express)\r\n\r\n### Issue\r\nNot sure if this is or not intended behavior but despite specifying the database I want to work with in the connection string it seems I still have to use full qualified object names in my queries (e.g: [database].[dbo].[table_name] for selects). I can get around this by executing an \"USE database\" command but it seems weird to have to do it since I set the target database on connect.\r\n"},"comment":{"url":"https://api.github.com/repos/mkleehammer/pyodbc/issues/comments/400325632","html_url":"https://github.com/mkleehammer/pyodbc/issues/413#issuecomment-400325632","issue_url":"https://api.github.com/repos/mkleehammer/pyodbc/issues/413","id":400325632,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDMyNTYzMg==","user":{"login":"stylneo","id":7190768,"node_id":"MDQ6VXNlcjcxOTA3Njg=","avatar_url":"https://avatars3.githubusercontent.com/u/7190768?v=4","gravatar_id":"","url":"https://api.github.com/users/stylneo","html_url":"https://github.com/stylneo","followers_url":"https://api.github.com/users/stylneo/followers","following_url":"https://api.github.com/users/stylneo/following{/other_user}","gists_url":"https://api.github.com/users/stylneo/gists{/gist_id}","starred_url":"https://api.github.com/users/stylneo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stylneo/subscriptions","organizations_url":"https://api.github.com/users/stylneo/orgs","repos_url":"https://api.github.com/users/stylneo/repos","events_url":"https://api.github.com/users/stylneo/events{/privacy}","received_events_url":"https://api.github.com/users/stylneo/received_events","type":"User","site_admin":false},"created_at":"2018-06-26T14:17:49Z","updated_at":"2018-06-26T14:17:49Z","author_association":"NONE","body":"Using `Database` instead of `Initial Catalog` did the trick. Many thanks!"}}
{"actor":{"display_login":"stylneo"}}