iis 7 - Classic ASP - Connect to database from external server -


we looking migrate servers, need time being allow live website to use external database on new server.

currently string used connect local server looks this:

provider=sqlncli10;password=rave123;persist security info=true;user id=usr123;initial catalog=sqldb12;data source=.\sqlexpress 

however need amend use ip address direct use external server.

i've attempted number of different solutions none work, please can advise me on how based on system.

the system iis 7 , it's windows server 2008 sql server express edition.

please use details above example query makes sense me :)

the connection string should be:

provider=sqlncli10;password=rave123;persist security info=true;user id=usr123;initial catalog=sqldb12;data source=<ip address> 

or if named instance:

provider=sqlncli10;password=rave123;persist security info=true;user id=usr123;initial catalog=sqldb12;data source=<ip address>\<instance name>; 

so if sqlexpress named instance:

provider=sqlncli10;password=rave123;persist security info=true;user id=usr123;initial catalog=sqldb12;data source=<ip address>\sqlexpress 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -