473,386 Members | 1,958 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Cannot connect database

Dear All,

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

http://forums.microsoft.com/msdn/Sho...69349810029562
Jun 27 '08 #1
3 1725
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



Jun 27 '08 #2
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
"Cor Ligthert[MVP]" <no************@planet.nlwrote in message
news:9F**********************************@microsof t.com...
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



Jun 27 '08 #3
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

"Raymond Chiu" <rc******@yahoo.com.hkschreef in bericht
news:%2****************@TK2MSFTNGP02.phx.gbl...
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
"Cor Ligthert[MVP]" <no************@planet.nlwrote in message
news:9F**********************************@microsof t.com...
>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



Jun 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Krista | last post by:
Hi guys, i have a problem about inserting data into the table. I dont know why the output always said cannot be added to the database! Anyone has idea for me? i check the connect is ok, but dont...
4
by: bettina | last post by:
Hello, My domain: www.coaster.ch My database: coasters User: bettina In the programm I wrote: <?php $db_server = "www.coaster.ch";
6
by: Jeff Sandler | last post by:
I have a database I created in mySQL. I've been entering data every day into the database using a Java application that I wrote. The database and the Java program are on the same Win 98 SE...
1
by: ikrabbe | last post by:
Hi, I want to set up a mysql server in an embedded process. I managed to start the server in my program as described through mysql_server_init() Now I need a client connection to this...
2
by: Jay Chan | last post by:
We have just installed a SQL Server 2000 (SP 3A) onto a computer that has Windows-2003 Server on it. Now, we cannot get access to that database server from other computers. Seem like this may be an...
1
by: beck4353 | last post by:
Hi, I am using VS.NET Arch. and I am having problems connecting to ANY database. I am trying to a either a SqlConnection or OleDBConnection object to my project. When I try to define the...
8
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
10
by: Jean-David Beyer | last post by:
I have some programs running on Red Hat Linux 7.3 working with IBM DB2 V6.1 (with all the FixPacks) on my old machine. I have just installed IBM DB2 V8.1 on this (new) machine running Red Hat...
6
by: antonyliu2002 | last post by:
I was able to view table content easily before, but after I reinstalled everything, I cannot find the option to view table content in MS SQL Server Express. I can define table with no problem. ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.