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

Connection string Please


Hi,

*
I used sql server7.0 with sqlserver authentcation.Now we are migrated to
sqlserver2000. We are using windows2000.
we go into the sqlserver2000 by windows authentication.

I tried to develop an application in vb.net by having the connection
string from the oledbconnection object which is dragged from the
toolbox.I copied that con..string and i used it from my coding.

It worked nice.

**
I opened the web application and used the same connection string to
connect to the sqlserver.But it turned down to connect.

Could you please tell me what was the mistake i had done in the
connection string.Or have i to change / Do any work in my web.config
file.

It would be helpful to me if u supply the connection string for the
sqlserver2000 via windows authentication.

my servername = server01
windows2000 server
my node name = node-01
With thanks
Raghuraman
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #1
2 2202
Hi Rahu,

When you connect from the vb.net application on your desktop, you
connect to SQL Server with your Windows credentials.

The same connection string in ASP.NET means the ASPNET account tries
to connect to SQL, but doesn't have permission.

There are several ways to solve the problem, see:

PRB: "Login Failed" Error Message When You Create a Trusted Data
Connection from ASP.NET to SQL Server
http://support.microsoft.com/default.aspx?kbid=316989

HTH,

--
Scott
http://www.OdeToCode.com

On Fri, 09 Jul 2004 07:43:12 -0700, Raghu Raman
<ra************@rediffmail.com> wrote:

Hi,

*
I used sql server7.0 with sqlserver authentcation.Now we are migrated to
sqlserver2000. We are using windows2000.
we go into the sqlserver2000 by windows authentication.

I tried to develop an application in vb.net by having the connection
string from the oledbconnection object which is dragged from the
toolbox.I copied that con..string and i used it from my coding.

It worked nice.

**
I opened the web application and used the same connection string to
connect to the sqlserver.But it turned down to connect.

Could you please tell me what was the mistake i had done in the
connection string.Or have i to change / Do any work in my web.config
file.

It would be helpful to me if u supply the connection string for the
sqlserver2000 via windows authentication.

my servername = server01
windows2000 server
my node name = node-01
With thanks
Raghuraman
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!


Nov 18 '05 #2
Information about connection strings :)

http://www.connectionstrings.com

Hope this helps some :)

Mythran
"Raghu Raman" <ra************@rediffmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...

Hi,

*
I used sql server7.0 with sqlserver authentcation.Now we are migrated to
sqlserver2000. We are using windows2000.
we go into the sqlserver2000 by windows authentication.

I tried to develop an application in vb.net by having the connection
string from the oledbconnection object which is dragged from the
toolbox.I copied that con..string and i used it from my coding.

It worked nice.

**
I opened the web application and used the same connection string to
connect to the sqlserver.But it turned down to connect.

Could you please tell me what was the mistake i had done in the
connection string.Or have i to change / Do any work in my web.config
file.

It would be helpful to me if u supply the connection string for the
sqlserver2000 via windows authentication.

my servername = server01
windows2000 server
my node name = node-01
With thanks
Raghuraman
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #3

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

Similar topics

17
by: AMC | last post by:
Hi, I'm using an include file to store the connection string to a database. Whenever I try to reference that string to open a connection in the page that includes the file I get the error 'empy...
5
by: Dmitry Karneyev | last post by:
Hi All! I've got an ado.net app with several win forms. In the first form (form1) I connect to DB and in other forms I use connection string generated by the form1 and stored in sqlconnection...
6
by: Jon Davis | last post by:
I like the drag-and-drop accessibility of dragging a table to a Web Forms designer and seeing a SqlDataAdapter automatically created for me.. being able to create a DataSet from that is fun and...
7
by: momo | last post by:
Hello to all, I need some help. I am looking for a database connection function that I can use in my ASP.NET site. This would be in VB.NET. What I want to be able to do is call the function and...
2
by: Chris Moore | last post by:
I am new to .NET & SQL Server and am having fits trying to connect to a SQL Server Database/table. Can someone please please please send me a copy of their connection process (connection,...
8
by: Greg Strong | last post by:
Hello All, The short questions are 1 Do you know how to make DSN connection close in Access to Oracle 10g Express Edition? &/or 2 Do you know how to make a DSN-less pass-through query...
20
by: fniles | last post by:
I am using VS2003 and connecting to MS Access database. When using a connection pooling (every time I open the OLEDBCONNECTION I use the exact matching connection string), 1. how can I know how...
6
Cintury
by: Cintury | last post by:
Hi all, I've developed a mobile application for windows mobile 5.0 that has been in use for a while (1 year and a couple of months). It was developed in visual studios 2005 with a back-end sql...
8
by: Brett | last post by:
I wrote an ASP.NET application that queries a SQL Server database (on a different box from the web server) and displays the result in a GridView. The datasource for the GridView is a SQLDataSource....
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...

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.