Visual Basic SQLOLEDB.1

Hi
i'm connecting to a database perfectly from a website using the following in my config file.
                 <add key="Vendor" value="SQLServer" />
            <add key="ServerName" value="196.33.42.155" />
            <add key="DatabaseName" value="kncu" />
            <add key="UserName" value="kncuser" />
            <add key="Password" value="kncu1023" />
            <add key="Port" value="" />
i want to connect to the same database from a visual basic app,the app is giving me an error,saying that the connection string is incorrect,my connection string is as follows:
StrConn = "Provider=SQLOLEDB.1;Data Source=196.33.42.155;Initial Catalog=kncu;User Id=kncuser;Password=kncu1023"
can anyone tell me whats wrong,

corebizAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

RimvisCommented:
You connection string looks OK. Can you post more of your code (connection part)
corebizAuthor Commented:
The code worked fine until the database server was changed,both the website and the vb app were using the following settings.
                <add key="Vendor" value="SQLServer" />
            <add key="ServerName" value="webboss.firsttech.net" />
            <add key="DatabaseName" value="KNCU" />
            <add key="UserName" value="kncuser" />
            <add key="Password" value="kncu1023" />
            <add key="Port" value="" />

StrConn = "Provider=SQLOLEDB.1;Data Source=webboss.firsttech.net;Initial Catalog=KNCU;User Id=kncuser;Password=kncu1023"

the new server is: 196.33.42.155
the dbName is: kncu
the changes work fine with the website,and for some reason it refuses to work  fot the vb app.

RimvisCommented:
What error do you get?
Syntax of you connection string is OK.
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

corebizAuthor Commented:
it gives a runtime error,its breaking on the conection string.
RimvisCommented:
But what does this error say?
Can you show your code?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
corebizAuthor Commented:
i found the problem,it was not the connection string,it was the firewall on the server that was not allowing the app to make a database connection..thnax for all your help :)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Development

From novice to tech pro — start learning today.