May 12, 2008 at 9:37 am
hI
I am trying to connect SQL Express from a remote computer thru the following connection string .
Dim ConnString As String = "Provider=SQLOLEDB;Data source= ,1433\SQLEXPRESS;" & _
"Initial Catalog= ;"
But i am getting the following error message .
"Invalid authorisation specification"
"Invalid connection string attribute"
Can any help me on this issue ?
May 12, 2008 at 10:15 am
If its a new installation its probably because by default sql express (and dev) doesnt allow remote connections. to change this go to the surface area configuration tool and go to features (i think), change it to allow local and remote connections.
John
May 12, 2008 at 10:29 am
additionally, if you are running any operating system with windows firewall, you will need to add an exception for sql server...you have to browse to sqlserver.exe for each service you are going to run, for example C:\Program Files\Microsoft SQL Server\MSSQL.2\MSSQL\Binn\sqlserver.exe might be the executable running the named instance of{yourmachinename}\SQLEXPRESS
Lowell
May 13, 2008 at 4:13 am
HI
I have already enabled the remote connections for the SQL Express.
Currently my system's firewall setting is OFF mode.
But I am connected to local intranet of my company.
Please suggest me any help.
thanks
Shan
May 13, 2008 at 6:25 am
Integrated Security = true;
Basit Ali Farooq
MCITP Database Administrator
Microsoft Certified Professional Developer (Web Applications)
Microsoft Certified Database Administrator
Microsoft Certified Systems Engineer
Microsoft Certified Systems Administrator
CIW Security Analyst
Cisco Certified Network Associate
May 13, 2008 at 7:09 am
i think alimcitp has nailed it; your connectionstring doesn't have a username/password or integrated security:
you need to know your machine name; the constring you had was clearly incorrect.
it's machinename\instnacename,port
so if my machine is named "developer", and the name dinstance was SQLEXPRESS, and you know it was on port 1207, you'd use
Data Source=developer\SQLEXPRESS,1207
here's an example of what i use for a non-integerated securituy string.
connectionstrings.com could help you out as well.
Connstring="Provider=SQLOLEDB;Data Source=d241\SQLEXPRESS;User ID=sa;Password=mysecretpassword;Persist Security Info=True;Initial Catalog=master;Network Library=dbnetlib"
Lowell
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply