April 19, 2010 at 4:57 am
Hi,
I have this connection string in vb.net that connects to my sqlserver 2005 locally, but does not work on the network, i.e does not connect with another computer when i publish it, what can i do.
In other words, i want to run my application on a network with one single database, that multiple users can connect to. thanks.
<add name="MMSConn" connectionString="Data Source=PROGRAMMER\FREDSQLSERVER;Initial Catalog=MediaMonitoring; Integrated Security=True" providerName="System.Data.SqlClient"/>
If this is not the right forum, pls direct me to one. thanks
Timotech
April 19, 2010 at 4:58 am
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
April 19, 2010 at 5:49 am
Hi Henrico,
been there already, i tried some of the options locally, but they did not work, for example when i try:
<add name="MMSConn" connectionString="Data Source=PROGRAMMER\FREDSQLSERVER,1433;Initial Catalog=MediaMonitoring; Integrated Security=True" providerName="System.Data.SqlClient"/>
it doesn't connect.
i also setup an ip address in sql server configuration manager and used this:
<add name="MMSConn" connectionString="Data Source=192.168.1.80\FREDSQLSERVER;Initial Catalog=MediaMonitoring; Integrated Security=True" providerName="System.Data.SqlClient"/>
but it does not work also, what can i do so that anyone on the network can connect to my sqlserver database in sqlserver 2005
Thanks
Timotech
April 19, 2010 at 6:17 am
Hi,
To let ASP.NET to search the database location, use the following connection strings in the web.config in specific cases
-> in the default data folder
connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|aspnetdb.mdf"
Vijay
😛
April 19, 2010 at 6:42 am
Thanks vijay, but i'm using windows forms, with asp.net its quite easy, i go through localhost or the webserver, but i don't know how to do so for windows forms.
April 19, 2010 at 6:33 pm
Hi Everybody, i saw a video from asp.net site that solved my problem concerning this issue. the video number is 07, sql security and network connection.
This is the link to the video, hope it solves other peoples problems too.
http://www.asp.net/learn/sql-videos/
Thanks
Timotech.
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply