{"id":731,"date":"2020-09-23T18:34:20","date_gmt":"2020-09-23T18:34:20","guid":{"rendered":"https:\/\/serkanseker.com\/?p=731"},"modified":"2020-12-09T18:25:27","modified_gmt":"2020-12-09T18:25:27","slug":"sql-server-manually-database-operations","status":"publish","type":"post","link":"https:\/\/serkanseker.com\/tr\/sql-server-manually-database-operations\/","title":{"rendered":"SQL Server Manually Database Operations"},"content":{"rendered":"\n<p>In the previous post, I showed how to create a database with <a href=\"https:\/\/docs.microsoft.com\/en-us\/sql\/ssms\/download-sql-server-management-studio-ssms?view=sql-server-ver15\" target=\"_blank\" rel=\"noreferrer noopener\">Microsoft SQL Server Management Studio <\/a>and how to add tables to this database. Now I will explain with examples how to add data to the tables we have created and how to add or delete this data etc manually. If you are new to database, I recommend you to review <a href=\"https:\/\/serkanseker.com\/creating-microsoft-sql-server-database\/\" target=\"_blank\" rel=\"noreferrer noopener\">Creating Microsoft SQL Server Database<\/a> article.<\/p>\n\n\n\n<p>First, let&#8217;s look at what is SQL.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is SQL<\/h2>\n\n\n\n<p>It is a sub-language that allows you to access and manipulate the SQL database. It stands for Structured Query Language. SQL became a standard of ANSI in 1986 and ISO in 1987. Many database operations such as insert, update, delete, alter can be performed with SQL.<\/p>\n\n\n\n<p>After briefly touching on its definition, we can now start the process. First, open the Management Studio and connect to the server.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/serkanseker.com\/wp-content\/uploads\/2020\/09\/Connect-to-Server.jpg\" alt=\"Connect-to-Server\" class=\"wp-image-686\" width=\"470\" height=\"310\"\/><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Manually Data Entry<\/h2>\n\n\n\n<p>In the tree in the Object Explorer window, follow the path <strong>Databases -&gt; [Your Database Name] -&gt; Tables<\/strong>. Here you will see the tables you have created. Right-click on your table and click <strong>Edit Top 200 Rows<\/strong>.<\/p>\n\n\n\n<div class=\"wp-block-image has-lightbox\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/serkanseker.com\/wp-content\/uploads\/2020\/09\/Edit-Top-200-Rows.jpg\" alt=\"Edit Top 200 Rows\" class=\"wp-image-732\" width=\"683\" height=\"363\"\/><\/figure><\/div>\n\n\n\n<p>Let&#8217;s enter data for this table now. As you can see, there are two columns named <strong>TagID <\/strong>and <strong>Tag <\/strong>in the table named <strong>Tags<\/strong>. TagID column is an int value primary key and automatically increases; Tag is a nvarchar type variable.<\/p>\n\n\n\n<p>When entering data into such a table, the value of the primary key (Is Identity) is set to Yes, so we do not write anything in this column. We can write the tag we want on the tag column. Let&#8217;s enter some data.<\/p>\n\n\n\n<div class=\"wp-block-image is-style-default has-lightbox\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/serkanseker.com\/wp-content\/uploads\/2020\/09\/Manuel-Data-Entry-1.jpg\" alt=\"Manuel Data Entry\" class=\"wp-image-734\" width=\"683\" height=\"364\"\/><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Update Data Manually<\/h2>\n\n\n\n<p>As you can see, we entered our data manually without typing any SQL commands. If you want to change any data, you can change the value of the column and save it here. Very simple!<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/serkanseker.com\/wp-content\/uploads\/2020\/09\/Update-Data-Manually.jpg\" alt=\"Update Data Manually\" class=\"wp-image-735\" width=\"683\" height=\"363\"\/><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Manually Delete Data<\/h2>\n\n\n\n<p>If you want to delete a recorded data, it is possible to do this easily. Select the data you want to delete and press the Delete key on the keyboard and select Yes in the warning that appears. Or you can do the same by right clicking on the data and selecting the <strong>Delete <\/strong>option.<\/p>\n\n\n\n<div class=\"wp-block-image has-lightbox\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/serkanseker.com\/wp-content\/uploads\/2020\/09\/Manually-Delete-Data.jpg\" alt=\"Manually Delete Data\" class=\"wp-image-736\" width=\"683\" height=\"363\"\/><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>In this post, I showed you how to add data to our database table, update and delete it. I did not use SQL queries while doing these operations. I will mention these in my next articles. Goodbye.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Related Posts<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/serkanseker.com\/creating-microsoft-sql-server-database\/\">Creating Microsoft SQL Server Database<\/a><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>I will explain with examples how to add data to the tables we have created and how to add or delete this data, etc manually. <\/p>\n","protected":false},"author":1,"featured_media":200,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","footnotes":""},"categories":[46],"tags":[48,47],"class_list":["post-731","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-sql","tag-mssql","tag-sql"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>SQL Server Manually Database Operations - Serkan Seker TR<\/title>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SQL Server Manually Database Operations - Serkan Seker TR\" \/>\n<meta property=\"og:description\" content=\"I will explain with examples how to add data to the tables we have created and how to add or delete this data, etc manually.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/serkanseker.com\/tr\/sql-server-manually-database-operations\/\" \/>\n<meta property=\"og:site_name\" content=\"Serkan Seker TR\" \/>\n<meta property=\"article:published_time\" content=\"2020-09-23T18:34:20+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-12-09T18:25:27+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/serkanseker.com\/tr\/wp-content\/uploads\/2020\/12\/Microsoft-SQL-Server-Database.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1\" \/>\n\t<meta property=\"og:image:height\" content=\"1\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"serkanadmin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"serkanadmin\" \/>\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:\/\/serkanseker.com\/tr\/sql-server-manually-database-operations\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/serkanseker.com\/tr\/sql-server-manually-database-operations\/\"},\"author\":{\"name\":\"serkanadmin\",\"@id\":\"https:\/\/serkanseker.com\/tr\/#\/schema\/person\/841fcc69b248e08e52c4190963caeaf5\"},\"headline\":\"SQL Server Manually Database Operations\",\"datePublished\":\"2020-09-23T18:34:20+00:00\",\"dateModified\":\"2020-12-09T18:25:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/serkanseker.com\/tr\/sql-server-manually-database-operations\/\"},\"wordCount\":418,\"commentCount\":2,\"image\":{\"@id\":\"https:\/\/serkanseker.com\/tr\/sql-server-manually-database-operations\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/serkanseker.com\/tr\/wp-content\/uploads\/2020\/12\/Microsoft-SQL-Server-Database.jpg\",\"keywords\":[\"mssql\",\"sql\"],\"articleSection\":[\"SQL\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/serkanseker.com\/tr\/sql-server-manually-database-operations\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/serkanseker.com\/tr\/sql-server-manually-database-operations\/\",\"url\":\"https:\/\/serkanseker.com\/tr\/sql-server-manually-database-operations\/\",\"name\":\"SQL Server Manually Database Operations - Serkan Seker TR\",\"isPartOf\":{\"@id\":\"https:\/\/serkanseker.com\/tr\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/serkanseker.com\/tr\/sql-server-manually-database-operations\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/serkanseker.com\/tr\/sql-server-manually-database-operations\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/serkanseker.com\/tr\/wp-content\/uploads\/2020\/12\/Microsoft-SQL-Server-Database.jpg\",\"datePublished\":\"2020-09-23T18:34:20+00:00\",\"dateModified\":\"2020-12-09T18:25:27+00:00\",\"author\":{\"@id\":\"https:\/\/serkanseker.com\/tr\/#\/schema\/person\/841fcc69b248e08e52c4190963caeaf5\"},\"breadcrumb\":{\"@id\":\"https:\/\/serkanseker.com\/tr\/sql-server-manually-database-operations\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/serkanseker.com\/tr\/sql-server-manually-database-operations\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/serkanseker.com\/tr\/sql-server-manually-database-operations\/#primaryimage\",\"url\":\"https:\/\/serkanseker.com\/tr\/wp-content\/uploads\/2020\/12\/Microsoft-SQL-Server-Database.jpg\",\"contentUrl\":\"https:\/\/serkanseker.com\/tr\/wp-content\/uploads\/2020\/12\/Microsoft-SQL-Server-Database.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/serkanseker.com\/tr\/sql-server-manually-database-operations\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/serkanseker.com\/tr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SQL Server Manually Database Operations\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/serkanseker.com\/tr\/#website\",\"url\":\"https:\/\/serkanseker.com\/tr\/\",\"name\":\"Serkan Seker TR\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/serkanseker.com\/tr\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/serkanseker.com\/tr\/#\/schema\/person\/841fcc69b248e08e52c4190963caeaf5\",\"name\":\"serkanadmin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/serkanseker.com\/tr\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/93ddc1f96117bf468976afe93a077eda77de96bcdb48dc749903598a546786a3?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/93ddc1f96117bf468976afe93a077eda77de96bcdb48dc749903598a546786a3?s=96&d=mm&r=g\",\"caption\":\"serkanadmin\"},\"sameAs\":[\"https:\/\/serkanseker.com\"],\"url\":\"https:\/\/serkanseker.com\/tr\/author\/serkanadmin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"SQL Server Manually Database Operations - Serkan Seker TR","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"en_US","og_type":"article","og_title":"SQL Server Manually Database Operations - Serkan Seker TR","og_description":"I will explain with examples how to add data to the tables we have created and how to add or delete this data, etc manually.","og_url":"https:\/\/serkanseker.com\/tr\/sql-server-manually-database-operations\/","og_site_name":"Serkan Seker TR","article_published_time":"2020-09-23T18:34:20+00:00","article_modified_time":"2020-12-09T18:25:27+00:00","og_image":[{"url":"https:\/\/serkanseker.com\/tr\/wp-content\/uploads\/2020\/12\/Microsoft-SQL-Server-Database.jpg","width":1,"height":1,"type":"image\/jpeg"}],"author":"serkanadmin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"serkanadmin","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/serkanseker.com\/tr\/sql-server-manually-database-operations\/#article","isPartOf":{"@id":"https:\/\/serkanseker.com\/tr\/sql-server-manually-database-operations\/"},"author":{"name":"serkanadmin","@id":"https:\/\/serkanseker.com\/tr\/#\/schema\/person\/841fcc69b248e08e52c4190963caeaf5"},"headline":"SQL Server Manually Database Operations","datePublished":"2020-09-23T18:34:20+00:00","dateModified":"2020-12-09T18:25:27+00:00","mainEntityOfPage":{"@id":"https:\/\/serkanseker.com\/tr\/sql-server-manually-database-operations\/"},"wordCount":418,"commentCount":2,"image":{"@id":"https:\/\/serkanseker.com\/tr\/sql-server-manually-database-operations\/#primaryimage"},"thumbnailUrl":"https:\/\/serkanseker.com\/tr\/wp-content\/uploads\/2020\/12\/Microsoft-SQL-Server-Database.jpg","keywords":["mssql","sql"],"articleSection":["SQL"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/serkanseker.com\/tr\/sql-server-manually-database-operations\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/serkanseker.com\/tr\/sql-server-manually-database-operations\/","url":"https:\/\/serkanseker.com\/tr\/sql-server-manually-database-operations\/","name":"SQL Server Manually Database Operations - Serkan Seker TR","isPartOf":{"@id":"https:\/\/serkanseker.com\/tr\/#website"},"primaryImageOfPage":{"@id":"https:\/\/serkanseker.com\/tr\/sql-server-manually-database-operations\/#primaryimage"},"image":{"@id":"https:\/\/serkanseker.com\/tr\/sql-server-manually-database-operations\/#primaryimage"},"thumbnailUrl":"https:\/\/serkanseker.com\/tr\/wp-content\/uploads\/2020\/12\/Microsoft-SQL-Server-Database.jpg","datePublished":"2020-09-23T18:34:20+00:00","dateModified":"2020-12-09T18:25:27+00:00","author":{"@id":"https:\/\/serkanseker.com\/tr\/#\/schema\/person\/841fcc69b248e08e52c4190963caeaf5"},"breadcrumb":{"@id":"https:\/\/serkanseker.com\/tr\/sql-server-manually-database-operations\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/serkanseker.com\/tr\/sql-server-manually-database-operations\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/serkanseker.com\/tr\/sql-server-manually-database-operations\/#primaryimage","url":"https:\/\/serkanseker.com\/tr\/wp-content\/uploads\/2020\/12\/Microsoft-SQL-Server-Database.jpg","contentUrl":"https:\/\/serkanseker.com\/tr\/wp-content\/uploads\/2020\/12\/Microsoft-SQL-Server-Database.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/serkanseker.com\/tr\/sql-server-manually-database-operations\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/serkanseker.com\/tr\/"},{"@type":"ListItem","position":2,"name":"SQL Server Manually Database Operations"}]},{"@type":"WebSite","@id":"https:\/\/serkanseker.com\/tr\/#website","url":"https:\/\/serkanseker.com\/tr\/","name":"Serkan Seker TR","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/serkanseker.com\/tr\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/serkanseker.com\/tr\/#\/schema\/person\/841fcc69b248e08e52c4190963caeaf5","name":"serkanadmin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/serkanseker.com\/tr\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/93ddc1f96117bf468976afe93a077eda77de96bcdb48dc749903598a546786a3?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/93ddc1f96117bf468976afe93a077eda77de96bcdb48dc749903598a546786a3?s=96&d=mm&r=g","caption":"serkanadmin"},"sameAs":["https:\/\/serkanseker.com"],"url":"https:\/\/serkanseker.com\/tr\/author\/serkanadmin\/"}]}},"_links":{"self":[{"href":"https:\/\/serkanseker.com\/tr\/wp-json\/wp\/v2\/posts\/731","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/serkanseker.com\/tr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/serkanseker.com\/tr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/serkanseker.com\/tr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/serkanseker.com\/tr\/wp-json\/wp\/v2\/comments?post=731"}],"version-history":[{"count":0,"href":"https:\/\/serkanseker.com\/tr\/wp-json\/wp\/v2\/posts\/731\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/serkanseker.com\/tr\/wp-json\/wp\/v2\/media\/200"}],"wp:attachment":[{"href":"https:\/\/serkanseker.com\/tr\/wp-json\/wp\/v2\/media?parent=731"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/serkanseker.com\/tr\/wp-json\/wp\/v2\/categories?post=731"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/serkanseker.com\/tr\/wp-json\/wp\/v2\/tags?post=731"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}