Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Antony Doyle 6 posts 26 karma points
    Sep 26, 2012 @ 17:32
    Antony Doyle
    0

    Configuring a datasource

    Hi all.

    I'm trying to conect to another datasource in Contour, but I'm having difficulty setting it up.

    When I create the datasource, I'm given a 'template' connection string that looks like this;

    Provider=SQLNCLI10;Server=myServerAddress;Database=myDataBase;Uid=myUsername; Pwd=myPassword;

    But the database I need to connect to uses windows authentication, and I'm led to believe that I need to use something like this;

    "Data Source=SERVERADDRESS; Initial Catalog=DATABASENAME;Integrated Security=True;"providerName="System.Data.SqlClient"

    But I simply don't understand enough of this to make it work. I have no control over the database, so I can't create a user account for it or anything.

    I've searched the forums, and the web, and I can only find reference to editing things in web.config, but I'm not certain this is the right approach since the database is not the same as the one Umbraco uses.

    Can anyone point me in the right direction?

    Thanks. :)

  • ibrahim TUNC 54 posts 132 karma points
    Apr 13, 2015 @ 00:24
    ibrahim TUNC
    0

    Try it if it meets which of the following...

    before MS SQL Server 2012 (2008, 2005, 2000, SQL Serve 7.0)
    Provider=SQLNCLI10;Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword;

    For MS SQL Server 2012 - 2014
    Provider=SQLNCLI11;Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword;


    http://www.connectionstrings.com/sql-server-native-client-10-0-oledb-provider/

    http://www.connectionstrings.com/sql-server-native-client-11-0-oledb-provider/

  • ibrahim TUNC 54 posts 132 karma points
    Apr 13, 2015 @ 00:25
Please Sign in or register to post replies

Write your reply to:

Draft