<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.dotnetzone.gr:443/cs/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Πρώτα Βήματα - Βάσεις δεδομένων</title><link>https://www.dotnetzone.gr:443/cs/forums/73/ShowForum.aspx</link><description>Για όσους κάνουν τα πρώτα τους βήματα στην Microsoft Access ή τον SQL Server, ή γενικότερα στη θεωρία βάσεων δεδομένων.</description><dc:language>el</dc:language><generator>CommunityServer 2.1 SP3 (Build: 20423.1)</generator><item><title>Απ: Sql database</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/74858.aspx</link><pubDate>Mon, 06 Jan 2014 06:28:00 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:74858</guid><dc:creator>pitaridis</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/74858.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=73&amp;PostID=74858</wfw:commentRss><description>&lt;p&gt;&lt;span style="font-size:10pt;"&gt;Παρακάτω μπορείς
να δεις ένα παράδειγμα εκτέλεσης της &lt;/span&gt;&lt;span style="font-size:10pt;"&gt;INSERT&lt;/span&gt;&lt;span style="font-size:10pt;"&gt; &lt;/span&gt;&lt;span style="font-size:10pt;"&gt;όπως την χρησιμοποιώ εγώ στα προγράμματα μου.&lt;/span&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;System.Data.DataSet MyDataSet = new System.Data.DataSet();&lt;br&gt;&lt;span style="font-size:10pt;"&gt;string SQL1 = "INSERT INTO [Customers] ([Name], [Surname]) VALUES (@Name, @Surname); ";&lt;br&gt;&lt;/span&gt;&lt;span style="font-size:10pt;"&gt;System.Data.SqlClient.SqlConnection MyConnection = new System.Data.SqlClient.SqlConnection(ConfigurationManager.ConnectionStrings["TourOpConnectionString"].ConnectionString);&lt;br&gt;&lt;/span&gt;&lt;span style="font-size:10pt;"&gt;MyConnection.Open();&lt;br&gt;&lt;/span&gt;&lt;span style="font-size:10pt;"&gt;System.Data.SqlClient.SqlCommand MyCommand = new System.Data.SqlClient.SqlCommand();&lt;br&gt;&lt;/span&gt;&lt;span style="font-size:10pt;"&gt;MyCommand.Connection = MyConnection;&lt;br&gt;&lt;/span&gt;&lt;span style="font-size:10pt;"&gt;MyCommand.CommandType = System.Data.CommandType.Text;&lt;br&gt;&lt;/span&gt;&lt;span style="font-size:10pt;"&gt;MyCommand.CommandText = SQL1;&lt;br&gt;&lt;/span&gt;&lt;span style="font-size:10pt;"&gt;MyCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Name", Name));&lt;br&gt;&lt;/span&gt;&lt;span style="font-size:10pt;"&gt;MyCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Surname", Surname));&lt;br&gt;&lt;/span&gt;&lt;span style="font-size:10pt;"&gt;MyCommand.ExecuteNonQuery();&lt;br&gt;&lt;/span&gt;&lt;span style="font-size:10pt;"&gt;MyConnection.Close();&lt;/span&gt;&lt;br&gt;&lt;/p&gt;</description></item><item><title>Απ: Sql database</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/74853.aspx</link><pubDate>Sun, 05 Jan 2014 20:46:43 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:74853</guid><dc:creator>tasos</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/74853.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=73&amp;PostID=74853</wfw:commentRss><description>Το μήνυμα αυτό σημαίνει πως οι παράμετροι του constructor για το SqlCommand (στη γραμμή 28) δεν είναι σωστοί. Το error χτυπάει λογικά πριν εκτελεστεί το query. Το object con τι τύπου είναι;&lt;br&gt;</description></item><item><title>Sql database</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/74849.aspx</link><pubDate>Sat, 04 Jan 2014 20:49:33 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:74849</guid><dc:creator>kostasvit</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/74849.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=73&amp;PostID=74849</wfw:commentRss><description>&lt;p&gt;Καλημέρα και καλή χρονιά&lt;/p&gt;&lt;p&gt;έχω φτιάξει μια βάση για εγγραφή μελών, αλλά όταν τρέχω την σελίδα έχω αυτό το λάθος&lt;/p&gt;&lt;p&gt;Compilation Error&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;Compiler Error Message: CS1502: The best overloaded method match for 'System.Data.SqlClient.SqlCommand.SqlCommand(string, System.Data.SqlClient.SqlConnection)' has some invalid arguments&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;Source Error:&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;Line 26: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try&lt;/p&gt;&lt;p&gt;Line 27: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/p&gt;&lt;p&gt;Line 28: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cmd = new SqlCommand ("insert into Tb_Registration (Firstname,Lastname,Username,Password,Emailid,Phone,Address) values (@Firstname,@Lastname,@Username,@Password,@Emailid,@Phone,@Address)", con);&lt;/p&gt;&lt;p&gt;Line 29: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/p&gt;&lt;p&gt;Line 30: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cmd.Parameters.AddWithValue("@Firstname", txtFirstname.Text.Trim());&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;όλες της παραμέτρους της έχω δηλώσει πάντως.&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>