{"id":31726,"date":"2021-02-19T15:01:52","date_gmt":"2021-02-19T07:01:52","guid":{"rendered":"https:\/\/web.mwwsb.com.my\/guide\/?post_type=kb&p=31726"},"modified":"2022-09-08T19:13:21","modified_gmt":"2022-09-08T11:13:21","slug":"connection-strings-for-sql-server-2","status":"publish","type":"kb","link":"https:\/\/www.casbay.com\/guide\/kb\/connection-strings-for-sql-server-2","title":{"rendered":"Connection strings for SQL Server"},"content":{"rendered":"\t\t
\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t

Connection strings for SQL Server<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t

Connection string with standard security:<\/strong>
Data Source=SQL_SERVER_IP,MSSQL_PORT;
Initial Catalog=DATABASE_NAME;
User Id=DATABASE_USER;
Password=DATABASE_USER_PASSWORD;<\/p>

Alternative syntax 1:<\/strong>
Server=SQL_SERVER_IP,MSSQL_PORT;Database=DATABASE_NAME;
User id=DATABASE_USER;
Password=DATABASE_USER_PASSWORD;
Trusted_Connection=False;<\/p>

Alternative syntax 2:<\/strong>
Server=SQL_SERVER_IP,MSSQL_PORT;
Database=DATABASE_NAME;
User id=DATABASE_USER;
pwd=DATABASE_USER_PASSWORD;<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t

\n\t\t\t\t
\n\t\t\t\t\t\t\t

Check out next article on How to access MS SQL 2000?<\/a><\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"

Connection strings for SQL Server Connection string with standard security: Data Source=SQL_SERVER_IP,MSSQL_PORT; Initial Catalog=DATABASE_NAME; User Id=DATABASE_USER; Password=DATABASE_USER_PASSWORD; Alternative syntax 1: Server=SQL_SERVER_IP,MSSQL_PORT;Database=DATABASE_NAME; User id=DATABASE_USER; Password=DATABASE_USER_PASSWORD; Trusted_Connection=False; Alternative syntax 2: Server=SQL_SERVER_IP,MSSQL_PORT; Database=DATABASE_NAME; User id=DATABASE_USER; pwd=DATABASE_USER_PASSWORD; Check out next article on How to access MS SQL 2000?<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"no-sidebar","site-content-layout":"page-builder","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"disabled","ast-breadcrumbs-content":"","ast-featured-img":"disabled","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"default","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}}},"kbtopic":[60],"kbtag":[106],"mkb_version":[],"_links":{"self":[{"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kb\/31726"}],"collection":[{"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/types\/kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/comments?post=31726"}],"version-history":[{"count":5,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kb\/31726\/revisions"}],"predecessor-version":[{"id":31731,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kb\/31726\/revisions\/31731"}],"wp:attachment":[{"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/media?parent=31726"}],"wp:term":[{"taxonomy":"kbtopic","embeddable":true,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kbtopic?post=31726"},{"taxonomy":"kbtag","embeddable":true,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kbtag?post=31726"},{"taxonomy":"mkb_version","embeddable":true,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/mkb_version?post=31726"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}