473,587 Members | 2,496 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Connection string Please


Hi,

*
I used sql server7.0 with sqlserver authentcation.N ow 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 2209
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.N ow we are migrated to
sqlserver200 0. 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
sqlserver200 0 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******** ********@TK2MSF TNGP10.phx.gbl. ..

Hi,

*
I used sql server7.0 with sqlserver authentcation.N ow 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
3232
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 connection string' . When I write the string to the page using response.write(connectionstring) it shows up fine. Is the something else that I need...
5
3295
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 object of form1. If I use windows authorization of SQL Server everything works fine, but when I use SQL Server authorization it doesn't work because...
6
1773
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 exciting, because now with this schema based data outline Visual Studio provides me with a typed class for managing data complete with Intellisense...
7
2154
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 it creates the connection and I can use it in my site. I want to pass the function some values and it uses it. Please take a look at what I have...
2
9542
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, dataadapater, fill, whatever is needed to actually connect to the database & table) including querying a table and looping through it? I don't need the...
8
9619
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 work from
20
3257
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 many connection has been used ? 2. If the maximum pool size has been reached, what happens when I call the method Open to open the connection ? Will I...
6
8152
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 server mobile ce database. Until recently I was synching everything thru a com port serial cable. The devices would connect to the computer thru...
8
6325
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. Just to get it to work, I hard-coded the username and password of a SQL Server account in the connectionstring in web.config. Once I confirmed...
0
7852
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8216
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8221
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6629
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5719
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3845
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3882
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2364
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1192
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.