<?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>Απ: Connection String στο Microsoft visual studio 2005. Βοήθεια.........</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/23283.aspx</link><pubDate>Wed, 10 Jan 2007 03:04:42 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:23283</guid><dc:creator>gio</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/23283.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=73&amp;PostID=23283</wfw:commentRss><description>o χαρακτήρας "\" μεσα σε ένα string προδιαθέτει για μια ακολουθία διαφυγής (escape sequence) δηλ. κάποιους ειδικούς χαρακτήρες όπως πχ την αλλαγή γραμμής (new line) που χρησιμοποιείς στην επόμενη εντολή "\n"&lt;br /&gt;
&lt;br /&gt;
Για να μπορέσουμε απλώς να χρησιμοποιήσουμε το "\" σε ενα string θα πρέπει να γράψουμε "\\" δηλ :&lt;br /&gt;
&lt;br /&gt;
String^ connStr="Data Source=.\\SQLEΧPRESS;Integrated Security=SSPI;Initial Catalog=soft_engi;Persist Security Info=False";&lt;br /&gt;
&lt;br /&gt;
Επίσης για να ακυρωθεί εντελώς η λειτουργία του "\" αρκεί να γράψουμε απλά τον χαρακτήρα @ πρίν απο το string πχ&lt;br /&gt;
&lt;br /&gt;
String^ connStr=@"Data Source=.\SQLEΧPRESS;Integrated Security=SSPI;Initial Catalog=soft_engi;Persist Security Info=False";&lt;br /&gt;
&lt;br /&gt;</description></item><item><title>Απ: Connection String στο Microsoft visual studio 2005. Βοήθεια.........</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/23275.aspx</link><pubDate>Tue, 09 Jan 2007 23:10:25 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:23275</guid><dc:creator>KelMan</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/23275.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=73&amp;PostID=23275</wfw:commentRss><description>Θα πρέπει να ενεργοποιήσεις την δυνατότητα του SQL Server να δέχεται remote connections. Στον SQL Server 2005 είναι απενεργοποιημένο μετά την εγκατάσταση. Δες εδώ: &lt;A href="http://support.microsoft.com/kb/914277"&gt;http://support.microsoft.com/kb/914277&lt;/A&gt;&amp;nbsp;</description></item><item><title>Απ: Connection String στο Microsoft visual studio 2005. Βοήθεια.........</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/23262.aspx</link><pubDate>Tue, 09 Jan 2007 21:25:40 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:23262</guid><dc:creator>DaltonGR</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/23262.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=73&amp;PostID=23262</wfw:commentRss><description>αν χρησιμοποιείς vs 2005 προσπάθησε και κάνε add datadase και δες απο εκεί το connection string που δημιουργεί αυτόματα.</description></item><item><title>Connection String στο Microsoft visual studio 2005. Βοήθεια.........</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/23260.aspx</link><pubDate>Tue, 09 Jan 2007 21:16:51 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:23260</guid><dc:creator>freezer</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/23260.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=73&amp;PostID=23260</wfw:commentRss><description>Έχω τον παρακάτω κώδικα:&lt;br&gt;&lt;br&gt;String^ connStr="Data Source=.\SQLEΧPRESS;Integrated Security=SSPI;Initial Catalog=soft_engi;Persist Security Info=False";&lt;br&gt;MessageBox::Show("Η διαγραφή έγινε επιτυχώς\n");&lt;br&gt;SqlConnection^ con=gcnew SqlConnection();&lt;br&gt;con-&amp;gt;ConnectionString=connStr;&lt;br&gt;&lt;br&gt;Όταν κάνω debug μου βγάζει το εξής warning...&lt;br&gt;&lt;br&gt;warning C4129: 'S' : unrecognized character escape sequence &lt;br&gt;&lt;br&gt;το οποίο είναι για την αρχικοποίηση του string.&lt;br&gt;&lt;br&gt;Το 'S' είναι το πρώτο γράμμα του server(SQLEXPRESS)&lt;br&gt;&lt;br&gt;Το build γίνεται κανονικά αλλά όταν το εκτελώ&amp;nbsp; λέει:&lt;br&gt;&lt;br&gt;An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in System.Data.dll&lt;br&gt;&lt;br&gt;Additional information: An error has occurred while establishing a connection to the server.&amp;nbsp; When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)&lt;br&gt;&lt;br&gt;Τι μπορώ να κάνω?&lt;br&gt;&lt;br&gt;Ζητώ απεγνωσμένα βοήθεια...........!!!!!!!!! &lt;img src="/cs/emoticons/emotion-6.gif" alt="Sad" /&gt;&lt;img src="/cs/emoticons/emotion-6.gif" alt="Sad" /&gt;&lt;img src="/cs/emoticons/emotion-6.gif" alt="Sad" /&gt;&lt;img src="/cs/emoticons/emotion-6.gif" alt="Sad" /&gt;&lt;img src="/cs/emoticons/emotion-6.gif" alt="Sad" /&gt;&lt;br&gt;&lt;br&gt;</description></item></channel></rss>