Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / VB.NET / May 2008

Tip: Looking for answers? Try searching our database.

Cannot connect database

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Raymond Chiu - 22 May 2008 04:29 GMT
Dear All,

I have posted my question as below.
But no answers, hope it can found here.

http://forums.microsoft.com/msdn/ShowPost.aspx?postid=3377176&isthread=true&site
id=1&authhash=e09bd5812ef06751e9618ca5e2acbf8709a7521a&ticks=633469349810029562

Cor Ligthert[MVP] - 22 May 2008 05:07 GMT
Raymond,

Most of us don't like to open a link especially not when it is from somebody
from a chinese area because of the much malafide spam which as been in these
newsgroups from that area. In this case it is obvious that it is not, but a
lot of people don't even look at that at it is from China (Hong Kong) in
this case

You just can copy and paste
---------------------------------------
I am using the following connectionstring in vb.net 2005 program.
<add key="SGSQLConn" value="Data Source=10.1.1.91;Initial
catalog=Testing;Persist Security Info=True;User ID=raymond;Password=abc"/>

(1) It cannot open the connection and prompt the error that <cannot open
database "Testing" requested by the login. The login failed. Login failed
for user 'raymond'.>

(2) When I remove initial catalog, connection can be open and when fill to
the dataset, it prompt error that table no found.

(3) When put in asp.net program with altering connectionstring to be usable
in sqldatastore using same userid and password, I can connect to the
database and see the tables.

(4) Using same userid and password and ipaddress, I can connect to the
database and withdraw data using studio management express.

----------------------------------------------------------------------------------------------

Are you sure you are not using integrated security on with Visual Studio?

Cor
Raymond Chiu - 23 May 2008 02:39 GMT
Dear Cor,

Could you tell me how to check this?
The main point is where to change the setting in my computer or in Remote
SQL Server?

Thanks for your help.

Raymond

> Raymond,
>
[quoted text clipped - 29 lines]
>
> Cor
Cor Ligthert[MVP] - 23 May 2008 06:13 GMT
Raymond,

The first thing you have forever to check in this, is if your SQL database
(the database itself) has the right security settings for what you are
doing.

Cor

> Dear Cor,
>
[quoted text clipped - 40 lines]
>>
>> Cor

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.