{"id":649,"date":"2014-05-23T09:09:39","date_gmt":"2014-05-23T16:09:39","guid":{"rendered":"http:\/\/deepinthecode.com\/?p=649"},"modified":"2022-12-17T22:30:43","modified_gmt":"2022-12-18T04:30:43","slug":"creating-system-admin-login-sql-server-using-command-line","status":"publish","type":"post","link":"https:\/\/deepinthecode.com\/2014\/05\/23\/creating-system-admin-login-sql-server-using-command-line\/","title":{"rendered":"Creating a System Admin Login for SQL Server Using the Command Line"},"content":{"rendered":"\n<p>This past week I installed Microsoft SQL Server 2014 Developer Edition on my dev box, and immediately ran into a problem I had never seen before.<\/p>\n\n\n\n<p>I&#8217;ve installed various versions of SQL Server countless times, and it is usually a painless procedure. Install the server, run the Management Console, it&#8217;s that simple. However, after completing this installation, when I tried to log in to the server using SSMS, I got an error like the one below:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2014\/05\/loginerror.png?ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"525\" height=\"131\" src=\"https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2014\/05\/loginerror.png?resize=525%2C131&#038;ssl=1\" alt=\"SQL Server login error 18456\" class=\"wp-image-650\" srcset=\"https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2014\/05\/loginerror.png?w=611&amp;ssl=1 611w, https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2014\/05\/loginerror.png?resize=300%2C75&amp;ssl=1 300w, https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2014\/05\/loginerror.png?resize=150%2C37&amp;ssl=1 150w\" sizes=\"(max-width: 525px) 100vw, 525px\" \/><\/a><figcaption class=\"wp-element-caption\">&#8220;Login failed for user&#8230; (Microsoft SQL Server, Error: 18456)&#8221;<\/figcaption><\/figure>\n<\/div>\n\n\n<p>I&#8217;m used to seeing this error if I typed the wrong password when logging in &#8211; but that&#8217;s only if I&#8217;m using mixed mode (Windows and SQL Authentication). In this case, the server was set up with Windows Authentication only, and the user account was my own. I&#8217;m still not sure why it didn&#8217;t add my user to the SYSADMIN role during setup; perhaps I missed a step and forgot to add it. At any rate, not all hope was lost.<\/p>\n\n\n\n<p>The way to fix this, if you cannot log on with any other account to SQL Server, is to add your network login through a command line interface. For this to work, you need to be an Administrator on Windows for the PC that you&#8217;re logged onto.<\/p>\n\n\n\n<p>1. Stop the MSSQL service.<\/p>\n\n\n\n<p>2. Open a Command Prompt using Run As Administrator.<\/p>\n\n\n\n<p>3. Change to the folder that holds the SQL Server EXE file; the default for SQL Server 2014 is &#8220;C:\\Program Files\\Microsoft SQL Server\\MSSQL12.MSSQLSERVER\\MSSQL\\Binn&#8221;.<\/p>\n\n\n\n<p>4. Run the following command: &#8220;sqlservr.exe \u2013m&#8221;. This will start SQL Server in single-user mode.<\/p>\n\n\n\n<p>5. While leaving this Command Prompt open, open another one, repeating steps 2 and 3.<\/p>\n\n\n\n<p>6. In the second Command Prompt window, run &#8220;SQLCMD \u2013S Server_Name\\Instance_Name&#8221;<\/p>\n\n\n\n<p>In this window, run the following lines, pressing Enter after each one:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: sql; title: ; notranslate\" title=\"\">\n&gt;CREATE LOGIN &#x5B;domainName\\loginName] FROM WINDOWS \n&gt;GO \n&gt;SP_ADDSRVROLEMEMBER &#039;LOGIN_NAME&#039;,&#039;SYSADMIN&#039; \n&gt;GO\n<\/pre><\/div>\n\n\n<p>7. Use CTRL+C to end both processes in the Command Prompt windows; you will be prompted to press Y to end the SQL Server process.<\/p>\n\n\n\n<p>8. Restart the MSSQL service.<\/p>\n\n\n\n<p>That&#8217;s it! You should now be able to log in using your network login.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This past week I installed Microsoft SQL Server 2014 Developer Edition on my dev box, and immediately ran into a problem I had never seen before. I&#8217;ve installed various versions of SQL Server countless times, and it is usually a painless procedure. Install the server, run the Management Console, it&#8217;s that simple. However, after completing &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/deepinthecode.com\/2014\/05\/23\/creating-system-admin-login-sql-server-using-command-line\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Creating a System Admin Login for SQL Server Using the Command Line&#8221;<\/span><\/a><\/p>\n","protected":false},"author":7,"featured_media":2415,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"Creating a System Admin Login for SQL Server Using the Command Line - #sqlserver #mssql #sql2014","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[12],"tags":[122],"class_list":["post-649","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ms-sql-server","tag-command-line"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Creating a System Admin Login for SQL Server Using the Command Line - Deep in the Code<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/deepinthecode.com\/2014\/05\/23\/creating-system-admin-login-sql-server-using-command-line\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Creating a System Admin Login for SQL Server Using the Command Line - Deep in the Code\" \/>\n<meta property=\"og:description\" content=\"This past week I installed Microsoft SQL Server 2014 Developer Edition on my dev box, and immediately ran into a problem I had never seen before. I&#8217;ve installed various versions of SQL Server countless times, and it is usually a painless procedure. Install the server, run the Management Console, it&#8217;s that simple. However, after completing &hellip; Continue reading &quot;Creating a System Admin Login for SQL Server Using the Command Line&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/deepinthecode.com\/2014\/05\/23\/creating-system-admin-login-sql-server-using-command-line\/\" \/>\n<meta property=\"og:site_name\" content=\"Deep in the Code\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/facebook.com\/deepinthecode\" \/>\n<meta property=\"article:author\" content=\"https:\/\/facebook.com\/deepinthecode\" \/>\n<meta property=\"article:published_time\" content=\"2014-05-23T16:09:39+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-12-18T04:30:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/deepinthecode.com\/wp-content\/uploads\/2020\/09\/microsoft-sql-server-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"735\" \/>\n\t<meta property=\"og:image:height\" content=\"176\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"David Young\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@deepinthecode\" \/>\n<meta name=\"twitter:site\" content=\"@deepinthecode\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"David Young\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/deepinthecode.com\\\/2014\\\/05\\\/23\\\/creating-system-admin-login-sql-server-using-command-line\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/deepinthecode.com\\\/2014\\\/05\\\/23\\\/creating-system-admin-login-sql-server-using-command-line\\\/\"},\"author\":{\"name\":\"David Young\",\"@id\":\"https:\\\/\\\/deepinthecode.com\\\/#\\\/schema\\\/person\\\/2d8883371cb9a0d1d86ad28246d1b514\"},\"headline\":\"Creating a System Admin Login for SQL Server Using the Command Line\",\"datePublished\":\"2014-05-23T16:09:39+00:00\",\"dateModified\":\"2022-12-18T04:30:43+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/deepinthecode.com\\\/2014\\\/05\\\/23\\\/creating-system-admin-login-sql-server-using-command-line\\\/\"},\"wordCount\":366,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/deepinthecode.com\\\/#\\\/schema\\\/person\\\/2d8883371cb9a0d1d86ad28246d1b514\"},\"image\":{\"@id\":\"https:\\\/\\\/deepinthecode.com\\\/2014\\\/05\\\/23\\\/creating-system-admin-login-sql-server-using-command-line\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/deepinthecode.com\\\/wp-content\\\/uploads\\\/2020\\\/09\\\/microsoft-sql-server-1.png?fit=735%2C176&ssl=1\",\"keywords\":[\"command line\"],\"articleSection\":[\"MS SQL Server\"],\"inLanguage\":\"en\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/deepinthecode.com\\\/2014\\\/05\\\/23\\\/creating-system-admin-login-sql-server-using-command-line\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/deepinthecode.com\\\/2014\\\/05\\\/23\\\/creating-system-admin-login-sql-server-using-command-line\\\/\",\"url\":\"https:\\\/\\\/deepinthecode.com\\\/2014\\\/05\\\/23\\\/creating-system-admin-login-sql-server-using-command-line\\\/\",\"name\":\"Creating a System Admin Login for SQL Server Using the Command Line - Deep in the Code\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/deepinthecode.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/deepinthecode.com\\\/2014\\\/05\\\/23\\\/creating-system-admin-login-sql-server-using-command-line\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/deepinthecode.com\\\/2014\\\/05\\\/23\\\/creating-system-admin-login-sql-server-using-command-line\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/deepinthecode.com\\\/wp-content\\\/uploads\\\/2020\\\/09\\\/microsoft-sql-server-1.png?fit=735%2C176&ssl=1\",\"datePublished\":\"2014-05-23T16:09:39+00:00\",\"dateModified\":\"2022-12-18T04:30:43+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/deepinthecode.com\\\/2014\\\/05\\\/23\\\/creating-system-admin-login-sql-server-using-command-line\\\/#breadcrumb\"},\"inLanguage\":\"en\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/deepinthecode.com\\\/2014\\\/05\\\/23\\\/creating-system-admin-login-sql-server-using-command-line\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\\\/\\\/deepinthecode.com\\\/2014\\\/05\\\/23\\\/creating-system-admin-login-sql-server-using-command-line\\\/#primaryimage\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/deepinthecode.com\\\/wp-content\\\/uploads\\\/2020\\\/09\\\/microsoft-sql-server-1.png?fit=735%2C176&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/deepinthecode.com\\\/wp-content\\\/uploads\\\/2020\\\/09\\\/microsoft-sql-server-1.png?fit=735%2C176&ssl=1\",\"width\":735,\"height\":176,\"caption\":\"SQL Server logo\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/deepinthecode.com\\\/2014\\\/05\\\/23\\\/creating-system-admin-login-sql-server-using-command-line\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/deepinthecode.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Creating a System Admin Login for SQL Server Using the Command Line\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/deepinthecode.com\\\/#website\",\"url\":\"https:\\\/\\\/deepinthecode.com\\\/\",\"name\":\"Deep in the Code\",\"description\":\"Adventures in Software Development ... by David Young\",\"publisher\":{\"@id\":\"https:\\\/\\\/deepinthecode.com\\\/#\\\/schema\\\/person\\\/2d8883371cb9a0d1d86ad28246d1b514\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/deepinthecode.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/deepinthecode.com\\\/#\\\/schema\\\/person\\\/2d8883371cb9a0d1d86ad28246d1b514\",\"name\":\"David Young\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\\\/\\\/i0.wp.com\\\/deepinthecode.com\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/monolith2.png?fit=902%2C559&ssl=1\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/deepinthecode.com\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/monolith2.png?fit=902%2C559&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/deepinthecode.com\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/monolith2.png?fit=902%2C559&ssl=1\",\"width\":902,\"height\":559,\"caption\":\"David Young\"},\"logo\":{\"@id\":\"https:\\\/\\\/i0.wp.com\\\/deepinthecode.com\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/monolith2.png?fit=902%2C559&ssl=1\"},\"description\":\"I solve problems. Solutions Architect \\\/ Senior Software Engineer \\\/ Business Analyst \\\/ Full-Stack Developer \\\/ Data Scientist\\\/ IT Generalist\",\"sameAs\":[\"https:\\\/\\\/deepinthecode.com\",\"https:\\\/\\\/facebook.com\\\/deepinthecode\",\"https:\\\/\\\/instagram.com\\\/deepinthecode\",\"https:\\\/\\\/linkedin.com\\\/in\\\/deepinthecode\",\"https:\\\/\\\/x.com\\\/deepinthecode\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Creating a System Admin Login for SQL Server Using the Command Line - Deep in the Code","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/deepinthecode.com\/2014\/05\/23\/creating-system-admin-login-sql-server-using-command-line\/","og_locale":"en_US","og_type":"article","og_title":"Creating a System Admin Login for SQL Server Using the Command Line - Deep in the Code","og_description":"This past week I installed Microsoft SQL Server 2014 Developer Edition on my dev box, and immediately ran into a problem I had never seen before. I&#8217;ve installed various versions of SQL Server countless times, and it is usually a painless procedure. Install the server, run the Management Console, it&#8217;s that simple. However, after completing &hellip; Continue reading \"Creating a System Admin Login for SQL Server Using the Command Line\"","og_url":"https:\/\/deepinthecode.com\/2014\/05\/23\/creating-system-admin-login-sql-server-using-command-line\/","og_site_name":"Deep in the Code","article_publisher":"https:\/\/facebook.com\/deepinthecode","article_author":"https:\/\/facebook.com\/deepinthecode","article_published_time":"2014-05-23T16:09:39+00:00","article_modified_time":"2022-12-18T04:30:43+00:00","og_image":[{"width":735,"height":176,"url":"https:\/\/deepinthecode.com\/wp-content\/uploads\/2020\/09\/microsoft-sql-server-1.png","type":"image\/png"}],"author":"David Young","twitter_card":"summary_large_image","twitter_creator":"@deepinthecode","twitter_site":"@deepinthecode","twitter_misc":{"Written by":"David Young","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/deepinthecode.com\/2014\/05\/23\/creating-system-admin-login-sql-server-using-command-line\/#article","isPartOf":{"@id":"https:\/\/deepinthecode.com\/2014\/05\/23\/creating-system-admin-login-sql-server-using-command-line\/"},"author":{"name":"David Young","@id":"https:\/\/deepinthecode.com\/#\/schema\/person\/2d8883371cb9a0d1d86ad28246d1b514"},"headline":"Creating a System Admin Login for SQL Server Using the Command Line","datePublished":"2014-05-23T16:09:39+00:00","dateModified":"2022-12-18T04:30:43+00:00","mainEntityOfPage":{"@id":"https:\/\/deepinthecode.com\/2014\/05\/23\/creating-system-admin-login-sql-server-using-command-line\/"},"wordCount":366,"commentCount":0,"publisher":{"@id":"https:\/\/deepinthecode.com\/#\/schema\/person\/2d8883371cb9a0d1d86ad28246d1b514"},"image":{"@id":"https:\/\/deepinthecode.com\/2014\/05\/23\/creating-system-admin-login-sql-server-using-command-line\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2020\/09\/microsoft-sql-server-1.png?fit=735%2C176&ssl=1","keywords":["command line"],"articleSection":["MS SQL Server"],"inLanguage":"en","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/deepinthecode.com\/2014\/05\/23\/creating-system-admin-login-sql-server-using-command-line\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/deepinthecode.com\/2014\/05\/23\/creating-system-admin-login-sql-server-using-command-line\/","url":"https:\/\/deepinthecode.com\/2014\/05\/23\/creating-system-admin-login-sql-server-using-command-line\/","name":"Creating a System Admin Login for SQL Server Using the Command Line - Deep in the Code","isPartOf":{"@id":"https:\/\/deepinthecode.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/deepinthecode.com\/2014\/05\/23\/creating-system-admin-login-sql-server-using-command-line\/#primaryimage"},"image":{"@id":"https:\/\/deepinthecode.com\/2014\/05\/23\/creating-system-admin-login-sql-server-using-command-line\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2020\/09\/microsoft-sql-server-1.png?fit=735%2C176&ssl=1","datePublished":"2014-05-23T16:09:39+00:00","dateModified":"2022-12-18T04:30:43+00:00","breadcrumb":{"@id":"https:\/\/deepinthecode.com\/2014\/05\/23\/creating-system-admin-login-sql-server-using-command-line\/#breadcrumb"},"inLanguage":"en","potentialAction":[{"@type":"ReadAction","target":["https:\/\/deepinthecode.com\/2014\/05\/23\/creating-system-admin-login-sql-server-using-command-line\/"]}]},{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/deepinthecode.com\/2014\/05\/23\/creating-system-admin-login-sql-server-using-command-line\/#primaryimage","url":"https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2020\/09\/microsoft-sql-server-1.png?fit=735%2C176&ssl=1","contentUrl":"https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2020\/09\/microsoft-sql-server-1.png?fit=735%2C176&ssl=1","width":735,"height":176,"caption":"SQL Server logo"},{"@type":"BreadcrumbList","@id":"https:\/\/deepinthecode.com\/2014\/05\/23\/creating-system-admin-login-sql-server-using-command-line\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/deepinthecode.com\/"},{"@type":"ListItem","position":2,"name":"Creating a System Admin Login for SQL Server Using the Command Line"}]},{"@type":"WebSite","@id":"https:\/\/deepinthecode.com\/#website","url":"https:\/\/deepinthecode.com\/","name":"Deep in the Code","description":"Adventures in Software Development ... by David Young","publisher":{"@id":"https:\/\/deepinthecode.com\/#\/schema\/person\/2d8883371cb9a0d1d86ad28246d1b514"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/deepinthecode.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en"},{"@type":["Person","Organization"],"@id":"https:\/\/deepinthecode.com\/#\/schema\/person\/2d8883371cb9a0d1d86ad28246d1b514","name":"David Young","image":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2022\/07\/monolith2.png?fit=902%2C559&ssl=1","url":"https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2022\/07\/monolith2.png?fit=902%2C559&ssl=1","contentUrl":"https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2022\/07\/monolith2.png?fit=902%2C559&ssl=1","width":902,"height":559,"caption":"David Young"},"logo":{"@id":"https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2022\/07\/monolith2.png?fit=902%2C559&ssl=1"},"description":"I solve problems. Solutions Architect \/ Senior Software Engineer \/ Business Analyst \/ Full-Stack Developer \/ Data Scientist\/ IT Generalist","sameAs":["https:\/\/deepinthecode.com","https:\/\/facebook.com\/deepinthecode","https:\/\/instagram.com\/deepinthecode","https:\/\/linkedin.com\/in\/deepinthecode","https:\/\/x.com\/deepinthecode"]}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2020\/09\/microsoft-sql-server-1.png?fit=735%2C176&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3J1Ni-at","jetpack-related-posts":[{"id":112,"url":"https:\/\/deepinthecode.com\/2012\/06\/29\/ssrs-reports-from-lotus-notes-databases\/","url_meta":{"origin":649,"position":0},"title":"Running SSRS Reports with Lotus Notes Databases as the Original Data Source","author":"David Young","date":"2012.06.29","format":"standard","excerpt":"I had a need to be able to report on data inside a set of Lotus Notes 7.0 databases, and I wanted to use SQL Server Reporting Services (SSRS) to do this. There is no direct interface between SSRS and Notes, but I found that IBM provided an ODBC connection\u2026","rel":"","context":"In &quot;MS SQL Server&quot;","block_context":{"text":"MS SQL Server","link":"https:\/\/deepinthecode.com\/category\/ms-sql-server\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2184,"url":"https:\/\/deepinthecode.com\/2019\/01\/31\/use-is-null-rather-than-null-when-upgrading-to-newer-versions-of-sql-server\/","url_meta":{"origin":649,"position":1},"title":"Use &#8220;IS NULL&#8221; Rather Than &#8220;= NULL&#8221; When Upgrading to Newer Versions of SQL Server","author":"David Young","date":"2019.01.31","format":false,"excerpt":"I've been upgrading an old Sybase PowerBuilder 6.5\u00a0app to a much newer version, SAP PowerBuilder 12.6. During this little adventure, I've had to update much of the hard-coded SQL code that was originally written for SQL Server 4.2, and was later upgraded to SQL Server 2000. This application's database had\u2026","rel":"","context":"In &quot;MS SQL Server&quot;","block_context":{"text":"MS SQL Server","link":"https:\/\/deepinthecode.com\/category\/ms-sql-server\/"},"img":{"alt_text":"Microsoft SQL Server logo","src":"https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2019\/01\/sqlserverlogo.png?fit=1200%2C306&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2019\/01\/sqlserverlogo.png?fit=1200%2C306&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2019\/01\/sqlserverlogo.png?fit=1200%2C306&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2019\/01\/sqlserverlogo.png?fit=1200%2C306&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2019\/01\/sqlserverlogo.png?fit=1200%2C306&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":213,"url":"https:\/\/deepinthecode.com\/2013\/02\/22\/storing-session-state-for-an-asp-net-site-in-a-sql-server-database\/","url_meta":{"origin":649,"position":2},"title":"Storing Session State for an ASP.NET Site in a SQL Server Database","author":"David Young","date":"2013.02.22","format":false,"excerpt":"When using session state in an ASP.NET Web application, you have several options. If you want to store it in your application database, as opposed to the ASPstate database (created at the command line with \"aspnet_regsql -S [server] -E -ssadd -sstype c -d ASPstate\"), I have scripted the database objects\u2026","rel":"","context":"In &quot;ASP.NET&quot;","block_context":{"text":"ASP.NET","link":"https:\/\/deepinthecode.com\/category\/asp-net\/"},"img":{"alt_text":"ASP.NET and related technologies","src":"https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2013\/02\/kisspng-website-development-net-framework-asp-net-mvc-act-web-designing-company-in-vijayawada-flywings-gr-5b7197e9e52849.8572881115341711139386.png?fit=1000%2C500&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2013\/02\/kisspng-website-development-net-framework-asp-net-mvc-act-web-designing-company-in-vijayawada-flywings-gr-5b7197e9e52849.8572881115341711139386.png?fit=1000%2C500&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2013\/02\/kisspng-website-development-net-framework-asp-net-mvc-act-web-designing-company-in-vijayawada-flywings-gr-5b7197e9e52849.8572881115341711139386.png?fit=1000%2C500&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2013\/02\/kisspng-website-development-net-framework-asp-net-mvc-act-web-designing-company-in-vijayawada-flywings-gr-5b7197e9e52849.8572881115341711139386.png?fit=1000%2C500&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":175,"url":"https:\/\/deepinthecode.com\/2012\/12\/03\/troubleshooting-an-ssrs-error\/","url_meta":{"origin":649,"position":3},"title":"Troubleshooting an SSRS Error","author":"David Young","date":"2012.12.03","format":false,"excerpt":"SQL Server Reporting Services is a great tool that comes with SQL Server, and it is the tool I prefer to use when a report is needed. I have built and continue to maintain many such reports, and once the reports are built, they don't often need updating, unless the\u2026","rel":"","context":"In &quot;MS SQL Server&quot;","block_context":{"text":"MS SQL Server","link":"https:\/\/deepinthecode.com\/category\/ms-sql-server\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":229,"url":"https:\/\/deepinthecode.com\/2013\/04\/03\/moving-data-from-the-image-datatype-to-varbinarymax-from-a-sql-server-2000-instance\/","url_meta":{"origin":649,"position":4},"title":"Moving Data from the IMAGE Datatype to VARBINARY(MAX) from a SQL Server 2000 Instance","author":"David Young","date":"2013.04.03","format":false,"excerpt":"I am in the process of writing scripts to move data from a SQL 2000 database into a different database running on SQL 2008. I had set up a linked server from the SQL 2k server to begin this process, and about 90% of the data could be moved. \u00a0One\u2026","rel":"","context":"In &quot;MS SQL Server&quot;","block_context":{"text":"MS SQL Server","link":"https:\/\/deepinthecode.com\/category\/ms-sql-server\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1438,"url":"https:\/\/deepinthecode.com\/2017\/01\/26\/solving-the-row-00060-error-when-using-ssis-with-oracle\/","url_meta":{"origin":649,"position":5},"title":"Solving the ROW-00060 Error When Using SSIS with Oracle","author":"David Young","date":"2017.01.26","format":false,"excerpt":"I have built SSIS packages to load data from one Oracle database to another before, but never had I come across this error until recently: \"ROW-00060: Internal error: [dainsert,16] Source: Oracle Destination: Oracle Error Occurred @ after 403k records.\" Initially, I thought that some constraint had been violated on the\u2026","rel":"","context":"In &quot;MS SQL Server&quot;","block_context":{"text":"MS SQL Server","link":"https:\/\/deepinthecode.com\/category\/ms-sql-server\/"},"img":{"alt_text":"SSIS logo","src":"https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2015\/04\/ssis.png?fit=738%2C253&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2015\/04\/ssis.png?fit=738%2C253&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2015\/04\/ssis.png?fit=738%2C253&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2015\/04\/ssis.png?fit=738%2C253&ssl=1&resize=700%2C400 2x"},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/deepinthecode.com\/wp-json\/wp\/v2\/posts\/649","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/deepinthecode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/deepinthecode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/deepinthecode.com\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/deepinthecode.com\/wp-json\/wp\/v2\/comments?post=649"}],"version-history":[{"count":7,"href":"https:\/\/deepinthecode.com\/wp-json\/wp\/v2\/posts\/649\/revisions"}],"predecessor-version":[{"id":3000,"href":"https:\/\/deepinthecode.com\/wp-json\/wp\/v2\/posts\/649\/revisions\/3000"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/deepinthecode.com\/wp-json\/wp\/v2\/media\/2415"}],"wp:attachment":[{"href":"https:\/\/deepinthecode.com\/wp-json\/wp\/v2\/media?parent=649"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/deepinthecode.com\/wp-json\/wp\/v2\/categories?post=649"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/deepinthecode.com\/wp-json\/wp\/v2\/tags?post=649"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}