Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 ole db

Author  Topic 

slimjen
Yak Posting Veteran

61 Posts

Posted - 2007-07-27 : 13:26:21
Can someone tell me how to set up a connection string to give users access to a database through the intranet? My dba setup one similar for another user like so:
Provider=SQLOLEDB.1;Persist Security Info=False;User ID=intranet;Initial Catalog=Survey;Data Source=DBsql;Password=12345


I've never had to do this for access through the intranet.
Thanks

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2007-07-27 : 13:43:22
Is DBsql accessible from the Intranet?

Tara Kizer
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

slimjen
Yak Posting Veteran

61 Posts

Posted - 2007-07-27 : 13:51:55
No. I guess that's what they're trying to do.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2007-07-27 : 13:54:04
Are you able to ping DBsql from one of the client machines on the Intranet? Can you connect via DBsql,PortNumber? If not...

Then you need to talk to your network administrators to figure what needs to be changed in order to make it accessible. There might be firewalls blocking you, routes not in place, or various other things causing the issue.

Tara Kizer
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

ValterBorges
Master Smack Fu Yak Hacker

1429 Posts

Posted - 2007-07-31 : 15:21:03
You might have to specify DBsql via ip / port and force the connection string to use tcp/ip you'll also want to make sure you give that password the least amount of rights necessary.

DataSource = xxx.xxx.xxx.xxxx,1433;Network Library=DBMSSOCN;
Go to Top of Page
   

- Advertisement -