473,386 Members | 1,873 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.

Building SQL connection string in code-behind file. Works on my machine, not on server.

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 that this worked on the
web server, I wanted to remove the hard-coded password from web.config, so I
removed that portion of the connectionstring. In the Page_Load procedure of
the page's code-behind file, I then appended the username and password to
the connectionstring in web.config. It worked perfectly on my machine in
Visual Studio.NET 2008. So, I moved the updated code to the web server, but
I got the error, "Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'."
What is the problem here?

Thanks for any help you can provide.

Brett
Jul 29 '08 #1
8 6310

You always need to know and be aware of the account you're running under:

Here is some crappy debugging code.

I think the issue is you don't have sql server credentials for the user the
program is running under.

Go to Control Panel / Users and you can see a list of "built in" users that
a windows machine has.

private string FindIIdentity()

{

try

{

string returnValue = string.Empty;

WindowsIdentity ident = WindowsIdentity.GetCurrent();

returnValue = ident.Name;

try

{

returnValue += " on " + System.Environment.MachineName;

}

catch (Exception ex)

{

}

return returnValue;

}

catch (Exception ex)

{

return "Error Finding Identity";

}

}


"Brett" <br*****@newsgroup.nospamwrote in message
news:Of**************@TK2MSFTNGP06.phx.gbl...
>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 that this worked on the
web server, I wanted to remove the hard-coded password from web.config, so
I removed that portion of the connectionstring. In the Page_Load procedure
of the page's code-behind file, I then appended the username and password
to the connectionstring in web.config. It worked perfectly on my machine
in Visual Studio.NET 2008. So, I moved the updated code to the web server,
but I got the error, "Login failed for user 'NT AUTHORITY\ANONYMOUS
LOGON'." What is the problem here?

Thanks for any help you can provide.

Brett


Jul 29 '08 #2
The windows identity that is returned is "Domain\MyUsername on MyPC" when I
run it on localhost. When I run it on the server, it is "Domain\MyUsername
on ServerName"

I am using a SQL Server login, so I didnt think it would matter if the
domain user had SQL Server credentials. I do have the necessary SQL Server
permissions, though.

The odd thing is that it works fine with the user and password in the
connection string in web.config. If I build the same connection string in
the code-behind file, login fails. I set a session variable and turned on
trace to see if the connection string was getting set properly, and it WAS.
I don't understand.

"sloan" <sl***@ipass.netwrote in message
news:uf**************@TK2MSFTNGP04.phx.gbl...
>
You always need to know and be aware of the account you're running under:

Here is some crappy debugging code.

I think the issue is you don't have sql server credentials for the user
the
program is running under.

Go to Control Panel / Users and you can see a list of "built in" users
that
a windows machine has.

private string FindIIdentity()

{

try

{

string returnValue = string.Empty;

WindowsIdentity ident = WindowsIdentity.GetCurrent();

returnValue = ident.Name;

try

{

returnValue += " on " + System.Environment.MachineName;

}

catch (Exception ex)

{

}

return returnValue;

}

catch (Exception ex)

{

return "Error Finding Identity";

}

}


"Brett" <br*****@newsgroup.nospamwrote in message
news:Of**************@TK2MSFTNGP06.phx.gbl...
>>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 that this worked on
the web server, I wanted to remove the hard-coded password from
web.config, so I removed that portion of the connectionstring. In the
Page_Load procedure of the page's code-behind file, I then appended the
username and password to the connectionstring in web.config. It worked
perfectly on my machine in Visual Studio.NET 2008. So, I moved the
updated code to the web server, but I got the error, "Login failed for
user 'NT AUTHORITY\ANONYMOUS LOGON'." What is the problem here?

Thanks for any help you can provide.

Brett



Jul 29 '08 #3
Show the connection string you are building

"Brett" <br*****@newsgroup.nospamwrote in message
news:uU**************@TK2MSFTNGP06.phx.gbl...
The windows identity that is returned is "Domain\MyUsername on MyPC" when
I run it on localhost. When I run it on the server, it is
"Domain\MyUsername on ServerName"

I am using a SQL Server login, so I didnt think it would matter if the
domain user had SQL Server credentials. I do have the necessary SQL
Server permissions, though.

The odd thing is that it works fine with the user and password in the
connection string in web.config. If I build the same connection string in
the code-behind file, login fails. I set a session variable and turned on
trace to see if the connection string was getting set properly, and it
WAS. I don't understand.

"sloan" <sl***@ipass.netwrote in message
news:uf**************@TK2MSFTNGP04.phx.gbl...
>>
You always need to know and be aware of the account you're running under:

Here is some crappy debugging code.

I think the issue is you don't have sql server credentials for the user
the
program is running under.

Go to Control Panel / Users and you can see a list of "built in" users
that
a windows machine has.

private string FindIIdentity()

{

try

{

string returnValue = string.Empty;

WindowsIdentity ident = WindowsIdentity.GetCurrent();

returnValue = ident.Name;

try

{

returnValue += " on " + System.Environment.MachineName;

}

catch (Exception ex)

{

}

return returnValue;

}

catch (Exception ex)

{

return "Error Finding Identity";

}

}


"Brett" <br*****@newsgroup.nospamwrote in message
news:Of**************@TK2MSFTNGP06.phx.gbl...
>>>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 that this worked on
the web server, I wanted to remove the hard-coded password from
web.config, so I removed that portion of the connectionstring. In the
Page_Load procedure of the page's code-behind file, I then appended the
username and password to the connectionstring in web.config. It worked
perfectly on my machine in Visual Studio.NET 2008. So, I moved the
updated code to the web server, but I got the error, "Login failed for
user 'NT AUTHORITY\ANONYMOUS LOGON'." What is the problem here?

Thanks for any help you can provide.

Brett




Jul 30 '08 #4
re:
!I am using a SQL Server login, so I didnt think it would matter if the domain user
!had SQL Server credentials. I do have the necessary SQL Server permissions, though.

The important part is not whether *you* have the necessary SQL Server permissions.
It's whether the identity ASP.NET runs as has the necessary SQL Server permissions.

i.e., on your machine, "Domain\MyUsername on MyPC" runs OK.

On the server, "Domain\MyUsername on ServerName" will run
OK *if* your ASP.NET is running as that domain account.

If ASP.NET is not running as that domain account, it won't.

If you don't want your current ASP.NET identity to access SQL Server,
or it can't, you can use ASP.NET impersonation to access the SQL Server's data.

Just select any valid domain account to run as the impersonated ASP.NET account,
and include this configuration in your web.config :

<identity impersonate="true"
userName="domain\user"
password="password" />


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Brett" <br*****@newsgroup.nospamwrote in message news:uU**************@TK2MSFTNGP06.phx.gbl...
The windows identity that is returned is "Domain\MyUsername on MyPC" when I run it on localhost. When I run it on the
server, it is "Domain\MyUsername on ServerName"

I am using a SQL Server login, so I didnt think it would matter if the domain user had SQL Server credentials. I do
have the necessary SQL Server permissions, though.

The odd thing is that it works fine with the user and password in the connection string in web.config. If I build the
same connection string in the code-behind file, login fails. I set a session variable and turned on trace to see if
the connection string was getting set properly, and it WAS. I don't understand.

"sloan" <sl***@ipass.netwrote in message news:uf**************@TK2MSFTNGP04.phx.gbl...
>>
You always need to know and be aware of the account you're running under:

Here is some crappy debugging code.

I think the issue is you don't have sql server credentials for the user the
program is running under.

Go to Control Panel / Users and you can see a list of "built in" users that
a windows machine has.

private string FindIIdentity()

{

try

{

string returnValue = string.Empty;

WindowsIdentity ident = WindowsIdentity.GetCurrent();

returnValue = ident.Name;

try

{

returnValue += " on " + System.Environment.MachineName;

}

catch (Exception ex)

{

}

return returnValue;

}

catch (Exception ex)

{

return "Error Finding Identity";

}

}


"Brett" <br*****@newsgroup.nospamwrote in message news:Of**************@TK2MSFTNGP06.phx.gbl...
>>>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
that this worked on the web server, I wanted to remove the hard-coded password from web.config, so I removed that
portion of the connectionstring. In the Page_Load procedure of the page's code-behind file, I then appended the
username and password to the connectionstring in web.config. It worked perfectly on my machine in Visual Studio.NET
2008. So, I moved the updated code to the web server, but I got the error, "Login failed for user 'NT
AUTHORITY\ANONYMOUS LOGON'." What is the problem here?

Thanks for any help you can provide.

Brett





Jul 30 '08 #5
Then you need to show the connection string that was built to get help.

www.connectionstrings.com

Go there, and take a look.

You say you're using sql server authentication.
But the messages look like you're trying to use integrated security.

Post your connection string, or look at the samples at the site above, and
match a Sql Authentication.

My guess is that you have "integrated security=true" or something like that.

...
"Brett" <br*****@newsgroup.nospamwrote in message
news:uU**************@TK2MSFTNGP06.phx.gbl...
The windows identity that is returned is "Domain\MyUsername on MyPC" when
I run it on localhost. When I run it on the server, it is
"Domain\MyUsername on ServerName"

I am using a SQL Server login, so I didnt think it would matter if the
domain user had SQL Server credentials. I do have the necessary SQL
Server permissions, though.

The odd thing is that it works fine with the user and password in the
connection string in web.config. If I build the same connection string in
the code-behind file, login fails. I set a session variable and turned on
trace to see if the connection string was getting set properly, and it
WAS. I don't understand.

"sloan" <sl***@ipass.netwrote in message
news:uf**************@TK2MSFTNGP04.phx.gbl...
>>
You always need to know and be aware of the account you're running under:

Here is some crappy debugging code.

I think the issue is you don't have sql server credentials for the user
the
program is running under.

Go to Control Panel / Users and you can see a list of "built in" users
that
a windows machine has.

private string FindIIdentity()

{

try

{

string returnValue = string.Empty;

WindowsIdentity ident = WindowsIdentity.GetCurrent();

returnValue = ident.Name;

try

{

returnValue += " on " + System.Environment.MachineName;

}

catch (Exception ex)

{

}

return returnValue;

}

catch (Exception ex)

{

return "Error Finding Identity";

}

}


"Brett" <br*****@newsgroup.nospamwrote in message
news:Of**************@TK2MSFTNGP06.phx.gbl...
>>>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 that this worked on
the web server, I wanted to remove the hard-coded password from
web.config, so I removed that portion of the connectionstring. In the
Page_Load procedure of the page's code-behind file, I then appended the
username and password to the connectionstring in web.config. It worked
perfectly on my machine in Visual Studio.NET 2008. So, I moved the
updated code to the web server, but I got the error, "Login failed for
user 'NT AUTHORITY\ANONYMOUS LOGON'." What is the problem here?

Thanks for any help you can provide.

Brett




Jul 30 '08 #6
Hi Brett,

This error message is the typical symptom when linked services are used and
Windows NT authentication is used to impersonate the client connecting. If
you're using linked services please check out this KB article:

http://support.microsoft.com/?id=238477

You can also connect another database to test if it's related to linked
services.

If you're not using linked services please tell me if the database server
and the web server are on different machines and the operating systems of
these machines.
==================================================
Quote from "Brett"
The odd thing is that it works fine with the user and password in the
connection string in web.config. If I build the same connection string in
the code-behind file, login fails. I set a session variable and turned on
trace to see if the connection string was getting set properly, and it WAS.
I don't understand.
==================================================
It's indeed very strange. Could you confirm that you tested it on the same
client machine and didn't change other settings/code? Could you post the
connection string here? The information will help me dig the issue further.

Regards
Allen Chen
Microsoft Online Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
| From: "Brett" <br*****@newsgroup.nospam>
| References: <Of**************@TK2MSFTNGP06.phx.gbl>
<uf**************@TK2MSFTNGP04.phx.gbl>
| Subject: Re: Building SQL connection string in code-behind file. Works on
my machine, not on server.
| Date: Tue, 29 Jul 2008 16:52:20 -0400
| Lines: 112
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
| X-RFC2646: Format=Flowed; Response
| Message-ID: <uU**************@TK2MSFTNGP06.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: dsl-1-210.d01.scpnbh.pbtcomm.net 64.53.27.210
| Path: TK2MSFTNGHUB02.phx.gbl!TK2MSFTNGP01.phx.gbl!TK2MSF TNGP06.phx.gbl
| Xref: TK2MSFTNGHUB02.phx.gbl
microsoft.public.dotnet.framework.aspnet:72838
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| The windows identity that is returned is "Domain\MyUsername on MyPC" when
I
| run it on localhost. When I run it on the server, it is
"Domain\MyUsername
| on ServerName"
|
| I am using a SQL Server login, so I didnt think it would matter if the
| domain user had SQL Server credentials. I do have the necessary SQL
Server
| permissions, though.
|
| The odd thing is that it works fine with the user and password in the
| connection string in web.config. If I build the same connection string
in
| the code-behind file, login fails. I set a session variable and turned
on
| trace to see if the connection string was getting set properly, and it
WAS.
| I don't understand.
|
| "sloan" <sl***@ipass.netwrote in message
| news:uf**************@TK2MSFTNGP04.phx.gbl...
| >
| >
| >
| You always need to know and be aware of the account you're running
under:
| >
| Here is some crappy debugging code.
| >
| I think the issue is you don't have sql server credentials for the user
| the
| program is running under.
| >
| Go to Control Panel / Users and you can see a list of "built in" users
| that
| a windows machine has.
| >
| >
| >
| private string FindIIdentity()
| >
| {
| >
| try
| >
| {
| >
| >
| >
| string returnValue = string.Empty;
| >
| WindowsIdentity ident = WindowsIdentity.GetCurrent();
| >
| returnValue = ident.Name;
| >
| try
| >
| {
| >
| returnValue += " on " + System.Environment.MachineName;
| >
| }
| >
| catch (Exception ex)
| >
| {
| >
| }
| >
| return returnValue;
| >
| }
| >
| >
| >
| catch (Exception ex)
| >
| {
| >
| return "Error Finding Identity";
| >
| }
| >
| }
| >
| >
| >
| >
| >
| >
| "Brett" <br*****@newsgroup.nospamwrote in message
| news:Of**************@TK2MSFTNGP06.phx.gbl...
| >>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 that this worked
on
| >>the web server, I wanted to remove the hard-coded password from
| >>web.config, so I removed that portion of the connectionstring. In the
| >>Page_Load procedure of the page's code-behind file, I then appended the
| >>username and password to the connectionstring in web.config. It worked
| >>perfectly on my machine in Visual Studio.NET 2008. So, I moved the
| >>updated code to the web server, but I got the error, "Login failed for
| >>user 'NT AUTHORITY\ANONYMOUS LOGON'." What is the problem here?
| >>
| >>
| >>
| >Thanks for any help you can provide.
| >>
| >>
| >>
| >Brett
| >>
| >>
| >
| >
|
|
|

Jul 30 '08 #7
You are correct. I had "integrated security=true" in the connection string.
When I removed it, the program worked. I guess what threw me off was that
it worked on my client PC using the same connection string. Thanks to all!

Brett
"sloan" <sl***@ipass.netwrote in message
news:ey**************@TK2MSFTNGP02.phx.gbl...
Then you need to show the connection string that was built to get help.

www.connectionstrings.com

Go there, and take a look.

You say you're using sql server authentication.
But the messages look like you're trying to use integrated security.

Post your connection string, or look at the samples at the site above, and
match a Sql Authentication.

My guess is that you have "integrated security=true" or something like
that.

..
"Brett" <br*****@newsgroup.nospamwrote in message
news:uU**************@TK2MSFTNGP06.phx.gbl...
>The windows identity that is returned is "Domain\MyUsername on MyPC" when
I run it on localhost. When I run it on the server, it is
"Domain\MyUsername on ServerName"

I am using a SQL Server login, so I didnt think it would matter if the
domain user had SQL Server credentials. I do have the necessary SQL
Server permissions, though.

The odd thing is that it works fine with the user and password in the
connection string in web.config. If I build the same connection string
in the code-behind file, login fails. I set a session variable and
turned on trace to see if the connection string was getting set properly,
and it WAS. I don't understand.

"sloan" <sl***@ipass.netwrote in message
news:uf**************@TK2MSFTNGP04.phx.gbl...
>>>
You always need to know and be aware of the account you're running
under:

Here is some crappy debugging code.

I think the issue is you don't have sql server credentials for the user
the
program is running under.

Go to Control Panel / Users and you can see a list of "built in" users
that
a windows machine has.

private string FindIIdentity()

{

try

{

string returnValue = string.Empty;

WindowsIdentity ident = WindowsIdentity.GetCurrent();

returnValue = ident.Name;

try

{

returnValue += " on " + System.Environment.MachineName;

}

catch (Exception ex)

{

}

return returnValue;

}

catch (Exception ex)

{

return "Error Finding Identity";

}

}


"Brett" <br*****@newsgroup.nospamwrote in message
news:Of**************@TK2MSFTNGP06.phx.gbl...
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 that
this worked on the web server, I wanted to remove the hard-coded
password from web.config, so I removed that portion of the
connectionstring. In the Page_Load procedure of the page's code-behind
file, I then appended the username and password to the connectionstring
in web.config. It worked perfectly on my machine in Visual Studio.NET
2008. So, I moved the updated code to the web server, but I got the
error, "Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'." What is
the problem here?

Thanks for any help you can provide.

Brett




Jul 30 '08 #8

Ok, good.

Just as a learning experience, if you had posted your connection string on
the first post, you probably would have gotten the fix on the first reply.

...

But glad you got it worked out.

"Brett" <br*****@newsgroup.nospamwrote in message
news:ek**************@TK2MSFTNGP06.phx.gbl...
You are correct. I had "integrated security=true" in the connection
string. When I removed it, the program worked. I guess what threw me off
was that it worked on my client PC using the same connection string.
Thanks to all!

Brett
"sloan" <sl***@ipass.netwrote in message
news:ey**************@TK2MSFTNGP02.phx.gbl...
>Then you need to show the connection string that was built to get help.

www.connectionstrings.com

Go there, and take a look.

You say you're using sql server authentication.
But the messages look like you're trying to use integrated security.

Post your connection string, or look at the samples at the site above,
and match a Sql Authentication.

My guess is that you have "integrated security=true" or something like
that.

..
"Brett" <br*****@newsgroup.nospamwrote in message
news:uU**************@TK2MSFTNGP06.phx.gbl...
>>The windows identity that is returned is "Domain\MyUsername on MyPC"
when I run it on localhost. When I run it on the server, it is
"Domain\MyUsername on ServerName"

I am using a SQL Server login, so I didnt think it would matter if the
domain user had SQL Server credentials. I do have the necessary SQL
Server permissions, though.

The odd thing is that it works fine with the user and password in the
connection string in web.config. If I build the same connection string
in the code-behind file, login fails. I set a session variable and
turned on trace to see if the connection string was getting set
properly, and it WAS. I don't understand.

"sloan" <sl***@ipass.netwrote in message
news:uf**************@TK2MSFTNGP04.phx.gbl...

You always need to know and be aware of the account you're running
under:

Here is some crappy debugging code.

I think the issue is you don't have sql server credentials for the user
the
program is running under.

Go to Control Panel / Users and you can see a list of "built in" users
that
a windows machine has.

private string FindIIdentity()

{

try

{

string returnValue = string.Empty;

WindowsIdentity ident = WindowsIdentity.GetCurrent();

returnValue = ident.Name;

try

{

returnValue += " on " + System.Environment.MachineName;

}

catch (Exception ex)

{

}

return returnValue;

}

catch (Exception ex)

{

return "Error Finding Identity";

}

}


"Brett" <br*****@newsgroup.nospamwrote in message
news:Of**************@TK2MSFTNGP06.phx.gbl...
>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 that
>this worked on the web server, I wanted to remove the hard-coded
>password from web.config, so I removed that portion of the
>connectionstring. In the Page_Load procedure of the page's code-behind
>file, I then appended the username and password to the connectionstring
>in web.config. It worked perfectly on my machine in Visual Studio.NET
>2008. So, I moved the updated code to the web server, but I got the
>error, "Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'." What is
>the problem here?
>
>
>
Thanks for any help you can provide.
>
>
>
Brett
>
>




Jul 30 '08 #9

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

Similar topics

6
by: Nifty | last post by:
After creating a routine to select from past ADODB connection strings, I found that it takes 60 seconds to timeout! I found the Microsoft article below ...
0
by: Ragtimer | last post by:
I've been trying to build a DAO.QueryDef.Connect string, building it from a user ID and password string obtained previously by a log-in dialog box, using it to log in to an Oracle database through...
2
by: Jim | last post by:
Is it possible to have a Connection class that opens up connection to my DB and leaves it open until I decide to close it? I run many SQL statements so I was wondering if it's possible to call a...
4
by: msnews.microsoft.com | last post by:
How can I call connection string (database) builder dialog?
4
by: Rahul Anand | last post by:
Getting SQL Exception when trying to implement Connection based Trasaction using SQL Helper class. I am using the follwing function to execute my stored procs: -=-=-=- ExecuteScalar(ByVal...
6
by: sri_san | last post by:
Hello, I have a bunch of similar functions as listed below. This one returns a string but lot of functions return datareader. I close the reader, the connection and set it to nothing but the...
7
by: Mrinal Kamboj | last post by:
Hi , I am using OracleConnection object from Oracle ODP.net provider and following is the behaviour which i am finding bit strange : To start with my argument is based on followings facts : ...
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...
16
by: Giles | last post by:
When assembling an HTML string from a database before sending it to the client (ie keeping the connection as short as possible), adding to an existing string (strOut=strOut & strNextLine) takes...
3
by: Greg Strong | last post by:
Hello All, Is there any way to close an ODBC connection via DSN without completely closing the Access front-end? I'm doing some testing with using Access as a front-end to Oracle 10g Express...
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: 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...
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
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
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.