{"id":10775,"date":"2015-07-01T10:31:45","date_gmt":"2015-07-01T15:31:45","guid":{"rendered":"http:\/\/jianmingli.com\/wp\/?p=10775"},"modified":"2018-04-23T09:15:08","modified_gmt":"2018-04-23T14:15:08","slug":"test-database-connection-sql-query","status":"publish","type":"post","link":"https:\/\/jianmingli.com\/wp\/?p=10775","title":{"rendered":"Test Database Connection SQL Query"},"content":{"rendered":"<div class='toc wptoc'>\n<h2>Contents<\/h2>\n<ol class='toc-odd level-1'>\n\t<li>\n\t\t<a href=\"#Oracle\">Oracle<\/a>\n\t<\/li>\n\t<li>\n\t\t<a href=\"#DB2\">DB2<\/a>\n\t<\/li>\n\t<li>\n\t\t<a href=\"#SQL_Server\">SQL Server<\/a>\n\t<\/li>\n\t<li>\n\t\t<a href=\"#Test_with_UDL_File\">Test with UDL File<\/a>\n\t<\/li>\n<\/ol>\n<\/ol>\n<\/div>\n<div class='wptoc-end'>&nbsp;<\/div>\n<span id=\"Oracle\"><h2>Oracle<\/h2><\/span>\n<pre lang=\"sql\">\r\nselect sysdate from DUAL;\r\n<\/pre>\n<span id=\"DB2\"><h2>DB2<\/h2><\/span>\n<pre lang=\"sql\">\r\nselect current date from SYSIBM.SYSDUMMY1;\r\n<\/pre>\n<span id=\"SQL_Server\"><h2>SQL Server<\/h2><\/span>\n<pre lang=\"sql\">\r\nSELECT GETDATE() AS [CurrentDateTime];\r\n<\/pre>\n<span id=\"Test_with_UDL_File\"><h2>Test with UDL File<\/h2><\/span>\n<p>* Create an empty file with extension type of .udl<br \/>\n* Double click UDL file<br \/>\n* Enter SQL server connection info<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Oracle select sysdate from DUAL; DB2 select current date from SYSIBM.SYSDUMMY1; SQL Server SELECT GETDATE() AS [CurrentDateTime]; Test with UDL File * Create an empty file with extension type of .udl * Double click UDL file * Enter SQL server &hellip; <a href=\"https:\/\/jianmingli.com\/wp\/?p=10775\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":true,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[24],"tags":[542],"class_list":["post-10775","post","type-post","status-publish","format-standard","hentry","category-database","tag-test"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8cRUO-2NN","_links":{"self":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/10775","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10775"}],"version-history":[{"count":4,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/10775\/revisions"}],"predecessor-version":[{"id":12178,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/10775\/revisions\/12178"}],"wp:attachment":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10775"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10775"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10775"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}