Commerce Server General - Resource Property -> String

This is Interesting: Free IT Magazines  
Home > Archive > Commerce Server General > February 2004 > Resource Property -> String





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Resource Property -> String
Dinesh Chadha

2004-02-25, 10:35 am

In C#, I am using the current commerce server connection
like this:

ADODB.Connection connection =
CommerceProfileModule.ProfileContext.CommerceOleDbProvider;

And if you want connection string, you can get that by:
connection.ConnectionString

Good Luck
Dinesh Chadha


>-----Original Message-----
>How can I grab (using VB.NET) a Connection String in

Commerce Server?
>I've tried Ctype(CommerceContext.Current.Resources

("connstr_db_Catalog"),
>String), but VS does not like that.
>
>I've examined the classes, and there appears no toString

() method (or
>comparable) for Resources...and as I need a string...
>
>Thanks,
>Ryan
>
>
>.
>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com