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

Connecting Errors

I can connect to my to my database in Sql Query (using "web" and "SA"), but
I can't get it to work in ADO.NET. I tried it from Dreamweaver as well as
from an ASP.NET page with this string:

Persist Security Info=False;Data Source=JODI;Initial Catalog=openworx;User
ID=web;Password=web;Network Library =dbmssocn

This string works on my other machine fine.

But here I am getting an Unauthorized error (401). I even get it with the
SA password, both of which work fine in Sql Query.

I am running on Sql Server 2000 Development version on an XP.

Not sure what is the problem here.

Thanks,

Tom.
Nov 18 '05 #1
2 1010
try this:
server=[ip addy];uid=[user
id];pwd=[password];Trusted_Connection=false;database=[databasename];
"tshad" <ts**********@ftsolutions.com> wrote in message
news:eJ**************@TK2MSFTNGP11.phx.gbl...
I can connect to my to my database in Sql Query (using "web" and "SA"), but
I can't get it to work in ADO.NET. I tried it from Dreamweaver as well as
from an ASP.NET page with this string:

Persist Security Info=False;Data Source=JODI;Initial Catalog=openworx;User
ID=web;Password=web;Network Library =dbmssocn

This string works on my other machine fine.

But here I am getting an Unauthorized error (401). I even get it with the
SA password, both of which work fine in Sql Query.

I am running on Sql Server 2000 Development version on an XP.

Not sure what is the problem here.

Thanks,

Tom.

Nov 18 '05 #2
"GrantMagic" <gr***@magicalia.com> wrote in message
news:u6**************@TK2MSFTNGP15.phx.gbl...
try this:
server=[ip addy];uid=[user
id];pwd=[password];Trusted_Connection=false;database=[databasename];
I'm not sure if that would work or not. I am using an SQL Connection.

But now it is connecting. Not sure why it wasn't before. The only thing
different was I had rebooted. I didn't change the page any, so why it
wasn't working before and Query was and now both are working - I haven't a
clue.

Thanks,

Tom.



"tshad" <ts**********@ftsolutions.com> wrote in message
news:eJ**************@TK2MSFTNGP11.phx.gbl...
I can connect to my to my database in Sql Query (using "web" and "SA"),
but I can't get it to work in ADO.NET. I tried it from Dreamweaver as
well as from an ASP.NET page with this string:

Persist Security Info=False;Data Source=JODI;Initial
Catalog=openworx;User ID=web;Password=web;Network Library =dbmssocn

This string works on my other machine fine.

But here I am getting an Unauthorized error (401). I even get it with
the SA password, both of which work fine in Sql Query.

I am running on Sql Server 2000 Development version on an XP.

Not sure what is the problem here.

Thanks,

Tom.


Nov 18 '05 #3

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

Similar topics

0
by: CjB | last post by:
Good Morning, I am having some issues connecting to LDAP through PHP. I am using the function provided here: http://www.php.net/manual/en/function.ldap-bind.php (By 'edi01 at gmx dot at'). I...
4
by: CodeImp | last post by:
A simple app I quickly wrote to try getting info from a database. Here is the first part of its code. The rest of the code is irellevant. using System; using System.Data; using...
12
by: Ann Marinas | last post by:
Hi all, I would like to ask for some help regarding separating the asp.net webserver and the sql server. I have created an asp.net application for a certain company. Initially, we installed...
0
by: cj.snead | last post by:
Hello, I am having trouble connecting to a remote named instance of SQL Server via Pocket PC. I have had absolutely no luck connecting with VS 2005 (even to a default instance), so I wen't back...
29
by: Bryce K. Nielsen | last post by:
Suddenly this week, I've started getting this error message: System.Data.SqlClient.SqlConnection(GetOpenConnection)ExecuteNonQuery requires an open and available Connection. The connection's...
2
by: jonosborne | last post by:
Hi, I have created two basic queries which both output a two column table, one (query A) has the columns 'Queue' and 'Errors' and the other (query B) has the columns 'Queue' and 'Correct'. I...
8
by: Ananthu | last post by:
Hi I have done all the codings part for connecting mysql with java in eclipse environment. Coding Part: import java.sql.Connection; import java.sql.DriverManager; public class...
8
by: Daveo | last post by:
Dear all, We recently migrated a SQL database from one server to another. Now, when you try to run some code in an Access Database which links to the SQL one, you get a 3704 error "Operation is...
0
by: aboutjav.com | last post by:
Hi, I need some help. I am getting this error after I complete the asp.net register control and click on the continue button. It crashed when it tries to get it calls this Profile property ...
2
jhardman
by: jhardman | last post by:
I keep getting connection errors that appear to me to relate to user permissions. I tried connecting with DSN from both a classic ASP page using VBScript, and from a .NET web service using C#,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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,...

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.