connecting to online server

  • try using

    initial catalog

    , instead of

    database

    :

    Data Source=servername;Initial Catalog=dbname;

    or try: http://www.connectionstrings.com

    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    This thing is addressing problems that dont exist. Its solution-ism at its worst. We are dumbing down machines that are inherently superior. - Gilfoyle

  • Do you have an error?

    I would suggest you grab a template from ConnectionStrings.com, as noted above, and use that.

  • Thanx Guys. I was actually at connectionstrings.com before coming here. I wasn't just sure which one to use. Still confused.

  • Use this:

    Data Source=myServerAddress;Initial Catalog=myDataBase;User Id=myUsername;Password=myPassword;

    That's a basic, standard one for .NET connections with a user/pwd. If you can use trusted connection, that's great, but this should work. The DSN stuff can work, but it introduces a potential dependency on the particular machine and other setup.

Viewing 4 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Login to reply