<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/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>Configuration and Deployment</title><link>http://forums.asp.net/26.aspx</link><description>Configuring and deploying ASP.NET applications - web.config, \bin, etc.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Connecting to your online SQL Database with Visual Web Developer</title><link>http://forums.asp.net/thread/1460943.aspx</link><pubDate>Sat, 11 Nov 2006 00:23:14 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1460943</guid><dc:creator>shados</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1460943.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=26&amp;PostID=1460943</wfw:commentRss><description>&lt;p&gt;Congrats :)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Connecting to your online SQL Database with Visual Web Developer</title><link>http://forums.asp.net/thread/1460905.aspx</link><pubDate>Fri, 10 Nov 2006 23:32:43 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1460905</guid><dc:creator>ianmoore</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1460905.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=26&amp;PostID=1460905</wfw:commentRss><description>&lt;p&gt;Perfect!&lt;/p&gt;
&lt;p&gt;thank you.&lt;/p&gt;
&lt;p&gt;in my case I have written my host name rather than the IP address... so I have written&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mydomainname.com&amp;nbsp;&amp;nbsp; instead of 123.123.123.123.1234&lt;/p&gt;
&lt;p&gt;I now have a fully functional database and connection.&lt;img src="http://forums.asp.net/emoticons/emotion-11.gif" alt="Cool" /&gt;&lt;img src="http://forums.asp.net/emoticons/emotion-21.gif" alt="Yes" /&gt;&lt;/p&gt;&lt;font color=#0000ff size=2&gt;
&lt;p&gt;&lt;/p&gt;&lt;/font&gt;&lt;font size=2&gt;&amp;nbsp;&lt;/font&gt;</description></item><item><title>Re: Connecting to your online SQL Database with Visual Web Developer</title><link>http://forums.asp.net/thread/1460882.aspx</link><pubDate>Fri, 10 Nov 2006 23:17:01 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1460882</guid><dc:creator>shados</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1460882.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=26&amp;PostID=1460882</wfw:commentRss><description>&lt;p&gt;Since your database is not an independant MDF now, but is permanently part of the server, you have to take a different approach at the connection string. Nothing else in your code will have to change though. Here is a sample example:&lt;/p&gt;&lt;font color=#0000ff size=2&gt;
&lt;p&gt;&amp;lt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#800000 size=2&gt;add&lt;/font&gt;&lt;font color=#0000ff size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;name&lt;/font&gt;&lt;font color=#0000ff size=2&gt;=&lt;/font&gt;&lt;font size=2&gt;"&lt;/font&gt;&lt;font color=#0000ff size=2&gt;ConnectionString&lt;/font&gt;&lt;font size=2&gt;"&lt;/font&gt;&lt;font color=#0000ff size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;connectionString&lt;/font&gt;&lt;font color=#0000ff size=2&gt;=&lt;/font&gt;&lt;font size=2&gt;"&lt;/font&gt;&lt;font color=#0000ff size=2&gt;Data Source=123.123.123.123,1234;Initial Catalog=mydbname;Persist Security Info=True;User ID=francois;Password=ward1234&lt;/font&gt;&lt;font size=2&gt;"&lt;/font&gt;&lt;font color=#0000ff size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;providerName&lt;/font&gt;&lt;font color=#0000ff size=2&gt;=&lt;/font&gt;&lt;font size=2&gt;"&lt;/font&gt;&lt;font color=#0000ff size=2&gt;System.Data.SqlClient&lt;/font&gt;&lt;font size=2&gt;"&lt;/font&gt;&lt;font color=#0000ff size=2&gt;/&amp;gt;
&lt;p&gt;&amp;nbsp;And no, these are not the user name and passwords I normaly use :) You will recognise above that you need to use the same info you used to connect remotly to your database when you used SQL Management Studio Express&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Connecting to your online SQL Database with Visual Web Developer</title><link>http://forums.asp.net/thread/1460858.aspx</link><pubDate>Fri, 10 Nov 2006 22:54:27 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1460858</guid><dc:creator>ianmoore</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1460858.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=26&amp;PostID=1460858</wfw:commentRss><description>&lt;p&gt;Hi Everyone,&lt;/p&gt;
&lt;p&gt;I have recently learnt how to get my SQL database uploaded onto my internet server host with a great tutorial in FAQ&lt;/p&gt;
&lt;p&gt;I am FTPing my Visual Web Developer Website up onto my internet host server and I want the website to be connected to the database so that I can use GridView and DataView etc.&lt;/p&gt;
&lt;p&gt;I would now like to make my CONNECTION srting in my web.config file&lt;/p&gt;
&lt;p&gt;by default the connection Visual Web Developer makes is:&lt;/p&gt;
&lt;p&gt;------------------------------------------------------------------------------------------------------------------&lt;/p&gt;&lt;font color=#0000ff size=2&gt;&lt;font color=#0000ff size=2&gt;
&lt;p&gt;&amp;lt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#800000 size=2&gt;add&lt;/font&gt;&lt;font color=#0000ff size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;name&lt;/font&gt;&lt;font color=#0000ff size=2&gt;=&lt;/font&gt;&lt;font color=#000000 size=2&gt;"&lt;/font&gt;&lt;font color=#0000ff size=2&gt;ConnectionString&lt;/font&gt;&lt;font color=#000000 size=2&gt;"&lt;/font&gt;&lt;font color=#0000ff size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;connectionString&lt;/font&gt;&lt;font color=#0000ff size=2&gt;=&lt;/font&gt;&lt;font color=#000000 size=2&gt;"&lt;/font&gt;&lt;font color=#0000ff size=2&gt;Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Database.mdf;Integrated Security=True;User Instance=True&lt;/font&gt;&lt;font size=2&gt;&lt;font color=#000000&gt;"&lt;/font&gt;&lt;/font&gt;&lt;font size=2&gt;
&lt;p&gt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#ff0000 size=2&gt;providerName&lt;/font&gt;&lt;font color=#0000ff size=2&gt;=&lt;/font&gt;&lt;font color=#000000 size=2&gt;"&lt;/font&gt;&lt;font color=#0000ff size=2&gt;System.Data.SqlClient&lt;/font&gt;&lt;font color=#000000 size=2&gt;"&lt;/font&gt;&lt;font color=#0000ff size=2&gt; /&amp;gt;&lt;/font&gt;
&lt;p&gt;&lt;font color=#0000ff size=2&gt;&amp;nbsp;------------------------------------------------------------------------------------------------------------------&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color=#0000ff size=2&gt;&amp;nbsp;How do I determine the exact DataDirectory that my host server stores the SQL database at? I think there is an automatic way of determining this?&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;Also: now that I have uploaded my database from Visual Web Developer do I have to change any other part of the connection string?&lt;/p&gt;
&lt;p&gt;can someone give me an example of a functioning string for this.&lt;/p&gt;
&lt;p&gt;thanks for your help. &lt;img src="http://forums.asp.net/emoticons/emotion-15.gif" alt="Geeked" /&gt;&lt;/p&gt;&lt;/font&gt;</description></item></channel></rss>