473,396 Members | 1,689 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,396 software developers and data experts.

asp.net 2.0 connectoin string (hopefully last question)

In a long series of trouble trying to migrate to 2.0, I'm pretty close to
getting it working. My connection string isn't liked by my query function,
though.

This is what I have:

<connectionStrings>
<add name="DBConn" connectionString="provider=SQLOLEDB.1;Data Source=[my
server's domain name];Initial Catalog=[my db name];uid=[user id];pwd=[owd]"
/>
</connectionStrings>

(Anything in brackets I replaced for this example just so I wasn't
broadcasting my actual DB login to the world.)

The error is:

Cannot open database requested in login my '[my db name]'. Login fails.
Microsoft OLE DB Provider for SQL Server

I've tripled check my username/password, and made sure that user has
permission on the table I'm trying to access. Could it be my connection
string is bad? Something depracated from .net 1.1?

-Darrel
Apr 14 '06 #1
1 966
Here are some options on what it could potentially be:

1. Make sure that your username / login is attached to the
database/catalog and make sure that the user has the valid permissions,
if you want to make 100% sure that this is the issue, give the user the
dbowner role. if that works, go back and give the user the appropiate
roles/permissions.

2. Another option could be that your database is not setup to use SQL
server authentication? Just look up the instance's properties and
change the security option to allow SQL Server logins.

3. You database server's name could require a different name... if your
server's name is "MYSQLSERVER", you may need to use ".\MYSQLSERVER"
with the ".\" included.

I hope atleast one of those suggestions helps out... Sorry if I didn't
help.

Pz

Jose

Apr 14 '06 #2

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

Similar topics

1
by: Alistair | last post by:
thanks for your patience all nearly done on the DB SQL string.. now I need to do once last check...check on an empty field something like :- select from users where field not empty ...
3
by: Mike Vallely | last post by:
If anyone could help me with my problem I'd greatly appreciate it, this question probably has a quick easy answer but I've been wanting to punch the wall for the last hour because of it. I have...
16
by: Khuong Dinh Pham | last post by:
I have the contents of an image of type std::string. How can I make a CxImage object with this type. The parameters to CxImage is: CxImage(byte* data, DWORD size) Thx in advance
7
by: Eric | last post by:
Hi All, I need to XOR two same-length Strings against each other. I'm assuming that, in order to do so, I'll need to convert each String to a BitArray. Thus, my question is this: is there an...
4
by: SeNTry | last post by:
Hi Everyone, My first post here as I just begin to learn programming in general and python in particular. I have all the noobie confused questions, but as I work thru the tutorials I'm sure...
14
by: Lindsay | last post by:
I need a string to be shared between all instances of my dll. Also, I need to append the string with each new instance of the dll. The string is declared: #pragma bss_seg("MYBSS") WCHAR*...
3
by: blackpuppy | last post by:
I am just beginner on PHP. I am reading "Spring Into PHP 5" but cannot make the ftp examples work. I am running PHP scripts on a Fedora Core 5 (VMWare virtual machine) on top of a Windows XP...
19
by: VK | last post by:
http://groups.google.com/group/comp.lang.javascript/browse_frm/thread/ b495b4898808fde0> is more than one month old - this may pose problem for posting over some news servers. This is why I'm...
12
by: Ron | last post by:
I am getting an error Option strict on disallows implicit conversion from string to long I get it for this code iStartPosition = InStr(iStartPosition + 1, RichTextBox1.Text, "A" Or "a" the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.