TIA
Lee
On Apr 7, 4:51 am, Steve Wagner <li...@lanwin.de> wrote:
> The driver and MongoConnectionStringBuilder are also can parse the
> mongodb:// url based connection strings.
>
> On 07.04.2010 00:13, Seth Edwards wrote:
>
>
>
> > Cool that's what I needed.
>
> > On Tue, Apr 6, 2010 at 4:48 PM, Sam Corder <sa...@codeargyle.com> wrote:
>
> >> The easiest way to generate one would be to instantiate the
> >> MongoConnectionStringBuilder, set your properties on that and save off the
> >> ToString() value from that object.
>
> >> var mcsb = new MongoConnectionStringBuilder(){
> >> MaximumPoolSize = 100,
> >> MinimumPoolSize = 10}
> >> mcsb.AddServer("localhost"); //default port
> >> mcsb.AddServer("someotherhost", 27107); //specify port
>
> >> Console.WriteLine(mcsb.ToString());
>
> >> Also have a look at the tests. Here is a long one in there.
>
> >> "Username=testusername;Password=testpassword;Server=testserver1:555,testserver2;MaximumPoolSize=101;MinimumPoolSize=202;ConnectionTimeout=60;ConnectionLifetime=50",
>
> >> On Tue, Apr 6, 2010 at 4:30 PM, Seth Edwards <sethaedwa...@gmail.com>wrote:
>
> >>> Does anyone have an example of what a more complex connection string will
> >>> look like?- Hide quoted text -
>
> - Show quoted text -
-Steve
We use names because it is a better habit to be in. There isn't a technical reason that you can't use an ip except that later if you need to move or replace your server a name will make life easier.
On Apr 11, 2010 12:34 PM, "Steve Wagner" <li...@lanwin.de> wrote:
Simply use "Server=192.168.1.1" as connection string.
-Steve
On 11.04.2010 18:18, Lee wrote: > all over the driver. Can someone shed light where I > change th...
-- To unsubscribe, reply using "remove me" as the subject.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="simple" value="Server=192.168.1.15"/>
</appSettings>
</configuration>
I looked in the Project>>Properties>>Settings but did not see an entry
there.
Thanks again
Lee
Lee Everest
www.texastoo.com
http://www.texastoo.com/post/2010/04/04/MongoDB-vs-SQL-Server-INSERT-comparison.aspx