显示标签为“connect”的博文。显示所有博文
显示标签为“connect”的博文。显示所有博文

2012年3月22日星期四

Anybody help me !

When i use this connection string
"string myConnection = "Initial Catalog=Northwind;Data Source=localhost;Integrated Security=SSPI;";"
connect to database, i received massage :
----------
Server Error in '/asp_net/WebApplication1' Application.
Login failed for user 'TRANPHUC\ASPNET'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: Login failed for user 'TRANPHUC\ASPNET'.

Source Error:

Line 72: SqlCommand mySqlCommand = new SqlCommand(myInsertQuery); Line 73: mySqlCommand.Connection = mySqlClientSrvConn; Line 74: mySqlClientSrvConn.Open(); Line 75: //mySqlCommand.ExecuteNonQuery(); Line 76: mySqlCommand.Connection.Close();
------------
And when i use this string :
"string server_Con="server=localhost;uid=sa;pwd=;database=myData";
SqlConnection conn=new SqlConnection(server_Con);
conn.Open();
"
i received a massage:
-------
Server Error in '/asp_net/WebApplication1' Application.
Login failed for user 'sa'. Reason: Not associated with a trusted SQL Server connection.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: Login failed for user 'sa'. Reason: Not associated with a trusted SQL Server connection.

Source Error:

Line 62: string server_Con="server=localhost;uid=sa;pwd=;database=myData"; Line 63: SqlConnection conn=new SqlConnection(server_Con); Line 64: conn.Open(); Line 65: } Line 66: public void InsertRow(string myConnection)

Source File: d:\asp_net\webapplication1\webform1.aspx.cs Line: 64
-------

What seem to be problem ? I can't connect to SQL server ! Help me !!!server=(local)

fyi.

And your sa.. has no password?|||check out www.connectionstrings.com

hth|||First case:
- you use thrusted autentication. This means you are using the same user account the web page runs under, to connect to your database (this is the ASP.NET user account). By default, it has no access to the SQL Server database. If you want it to have access, add it to the database logins

Second case:
- the password is blanc. Probably this is wrong...

2012年3月11日星期日

Any suggestions on this error when trying to connect SQL Server 2000?

SQL State: 08001 Native Error: 17
State: 1 Severity: 16
SQL Server Message: [DBNETLIB][ConnectionOpen (Connect()).]
SQL Server does not exist or access denied.Hi,
Possibilities for this error are:-
1. SQL Server service may be down or hung
2. Network issue
3. Need to create an Alias using "Client network utility" specifying IP
address and port number. Use this alias to connect.
Thanks
Hari
MCDBA
"zenDebra" <anonymous@.discussions.microsoft.com> wrote in message
news:addd01c436ac$ba6088e0$a601280a@.phx.gbl...
> SQL State: 08001 Native Error: 17
> State: 1 Severity: 16
> SQL Server Message: [DBNETLIB][ConnectionOpen (Connect()).]
> SQLeat Server does not exist or access denied.|||Have a look at
Potential causes of the "SQL Server Does Not Exist or Access Denied" error
message
http://support.microsoft.com/defaul...b;en-us;Q328306
HTH
Jasper Smith (SQL Server MVP)
I support PASS - the definitive, global
community for SQL Server professionals -
http://www.sqlpass.org
"zenDebra" <anonymous@.discussions.microsoft.com> wrote in message
news:addd01c436ac$ba6088e0$a601280a@.phx.gbl...
> SQL State: 08001 Native Error: 17
> State: 1 Severity: 16
> SQL Server Message: [DBNETLIB][ConnectionOpen (Connect()).]
> SQL Server does not exist or access denied.|||Try creating an ODBC DSN to the server and post the entire Error message.
Thanks,
Kevin McDonnell
Microsoft Corporation
This posting is provided AS IS with no warranties, and confers no rights.

Any suggestions on this error when trying to connect SQL Server 2000?

SQL State: 08001Native Error: 17
State: 1Severity: 16
SQL Server Message: [DBNETLIB][ConnectionOpen (Connect()).]
SQL Server does not exist or access denied.
Hi,
Possibilities for this error are:-
1. SQL Server service may be down or hung
2. Network issue
3. Need to create an Alias using "Client network utility" specifying IP
address and port number. Use this alias to connect.
Thanks
Hari
MCDBA
"zenDebra" <anonymous@.discussions.microsoft.com> wrote in message
news:addd01c436ac$ba6088e0$a601280a@.phx.gbl...
> SQL State: 08001 Native Error: 17
> State: 1 Severity: 16
> SQL Server Message: [DBNETLIB][ConnectionOpen (Connect()).]
> SQLeat Server does not exist or access denied.
|||Have a look at
Potential causes of the "SQL Server Does Not Exist or Access Denied" error
message
http://support.microsoft.com/default...;en-us;Q328306
HTH
Jasper Smith (SQL Server MVP)
I support PASS - the definitive, global
community for SQL Server professionals -
http://www.sqlpass.org
"zenDebra" <anonymous@.discussions.microsoft.com> wrote in message
news:addd01c436ac$ba6088e0$a601280a@.phx.gbl...
> SQL State: 08001 Native Error: 17
> State: 1 Severity: 16
> SQL Server Message: [DBNETLIB][ConnectionOpen (Connect()).]
> SQL Server does not exist or access denied.
|||Try creating an ODBC DSN to the server and post the entire Error message.
Thanks,
Kevin McDonnell
Microsoft Corporation
This posting is provided AS IS with no warranties, and confers no rights.

2012年2月23日星期四

Any ideas how to connect to an Informix DB?

I need to use the an OLE DB Provider to create a Linked Server using a ODBC-Connection (Informix). I know that I cannot see many things in the Providers drop-down list. Has anyone created a linked server like this one? I mean SQL 2005 (Standard Edition) x64 and Informix. 10x in advance.

Hi sageata2002,

I've got the same problem, and still searching the solution.

Perhaps we have to downgrade to SQL-Server 2005 x86 (32bit), where the MSDASQL-Provider (OLEDB Bridge for ODBC) is available....

|||

Hello.

I am waiting for an answer from a company named Openlink, since they told me they will provide the solution in couple of days (their driver is still in beta). I will keep anyone posted about this, and, if successful, I will provide the details (my understanding is that the same procedure will apply to Oracle, for example).

|||

Can you inform me, as soon as the Openlink-Solution is available?
That would be greatful!

Thank you very much.

Heiko Stahl
Systemadministrator
TQ-Systems GmbH

Heiko.Stahl@.tqs.de
http://www.tq-group.com

|||Of course I'll provide any useful news as soon as they will arive. I want this solved and shared with the rest of us, so we don't have to be at Microsoft's mercy; or any other giant for that matter|||

In the meantime I have contacted OpenLink, too.

I got a evaluation-version of an OLEDB-Provider for ODBC.

(download here:
http://download.openlinksw.com/uda/open60/wil6zole.msi ;; IA64
http://download.openlinksw.com/uda/open60/wal6zole.msi ;; AMD64
)

Unfortunately this Bridge works only with 64bit ODBC drivers, but our Informix SE is only 32 bit.

I must downgrade the SQL-Server to 32bit, no other way can help.

Regards,

Heiko

2012年2月18日星期六

any good sql client tool to connect database

any good sql client tool to connect database
thx
How about Query Analyzer? What exactly are you looking for?
David Portas
SQL Server MVP
|||Hi
This will depend on what your requirements are! If you are writing your own
front end then all you need to install is MDAC, if you want an
administration tool then you could use the Microsoft Web Data Administrator
or others listed at http://www.aspfaq.com/show.asp?id=2442
John
"inamori" <test@.test.com> wrote in message
news:cnqcvo$l191@.imsp212.netvigator.com...
> any good sql client tool to connect database
>
> thx
>
|||TOAD for SQL Server is nice. Even better if you are working with Oracle as
well as SQL Server.
www.toadsoft.com
I normally just use Query Analyzer however, or Visual Studio.
Rick Sawtell
MCT, MCSD, MCDBA
"inamori" <test@.test.com> wrote in message
news:cnqcvo$l191@.imsp212.netvigator.com...
> any good sql client tool to connect database
>
> thx
>

any good sql client tool to connect database

any good sql client tool to connect database
thxHow about Query Analyzer? What exactly are you looking for?
David Portas
SQL Server MVP
--|||Hi
This will depend on what your requirements are! If you are writing your own
front end then all you need to install is MDAC, if you want an
administration tool then you could use the Microsoft Web Data Administrator
or others listed at http://www.aspfaq.com/show.asp?id=2442
John
"inamori" <test@.test.com> wrote in message
news:cnqcvo$l191@.imsp212.netvigator.com...
> any good sql client tool to connect database
>
> thx
>|||TOAD for SQL Server is nice. Even better if you are working with Oracle as
well as SQL Server.
www.toadsoft.com
I normally just use Query Analyzer however, or Visual Studio.
Rick Sawtell
MCT, MCSD, MCDBA
"inamori" <test@.test.com> wrote in message
news:cnqcvo$l191@.imsp212.netvigator.com...
> any good sql client tool to connect database
>
> thx
>

any good sql client tool to connect database

any good sql client tool to connect database
thxHow about Query Analyzer? What exactly are you looking for?
--
David Portas
SQL Server MVP
--|||Hi
This will depend on what your requirements are! If you are writing your own
front end then all you need to install is MDAC, if you want an
administration tool then you could use the Microsoft Web Data Administrator
or others listed at http://www.aspfaq.com/show.asp?id=2442
John
"inamori" <test@.test.com> wrote in message
news:cnqcvo$l191@.imsp212.netvigator.com...
> any good sql client tool to connect database
>
> thx
>|||TOAD for SQL Server is nice. Even better if you are working with Oracle as
well as SQL Server.
www.toadsoft.com
I normally just use Query Analyzer however, or Visual Studio.
Rick Sawtell
MCT, MCSD, MCDBA
"inamori" <test@.test.com> wrote in message
news:cnqcvo$l191@.imsp212.netvigator.com...
> any good sql client tool to connect database
>
> thx
>

2012年2月11日星期六

ANSI_WARNINGS inconsistently in effect

I have written a VB.Net application using a SQLConnection to connect to a SQL
2000 database. The application uses an update statement in a SQLDataAdapter
to make changes to a table on the server.
The problem is that one client is getting an error with the update failing
due to string truncation. The other clients do not get an error. The only
part of the string in question that matters is the first letter, so there is
no data integrity issue.
I realize that I could put the update in a stored proc and set ANSI_WARNINGS
OFF, and then call the proc. But, I was interested in why this only is a
problem on one client.
The ANSI_WARNINGS db_option for the database is FALSE. I have searched the
MS KB and used Google Groups to search microsoft.public.* to no avail.
From what I have read, there is no way to set ANSI_WARNINGS for the
SQLConnection object. The thing that confuses me is why all clients are fine
except that one. From what I can determine, all have the same version of SQL
Server ODBC driver, etc.
Any suggestions would be appreciated.
It could be that, that particular client's table structure is different.
Check and make sure that table's column widths are the same as the ones on
the other databases.
HTH,
Vyas, MVP (SQL Server)
SQL Server Articles and Code Samples @. http://vyaskn.tripod.com/
"A. Powers" <APowers@.discussions.microsoft.com> wrote in message
news:28CE89D3-8B4A-4218-8306-1168274499B7@.microsoft.com...
I have written a VB.Net application using a SQLConnection to connect to a
SQL
2000 database. The application uses an update statement in a SQLDataAdapter
to make changes to a table on the server.
The problem is that one client is getting an error with the update failing
due to string truncation. The other clients do not get an error. The only
part of the string in question that matters is the first letter, so there is
no data integrity issue.
I realize that I could put the update in a stored proc and set ANSI_WARNINGS
OFF, and then call the proc. But, I was interested in why this only is a
problem on one client.
The ANSI_WARNINGS db_option for the database is FALSE. I have searched the
MS KB and used Google Groups to search microsoft.public.* to no avail.
From what I have read, there is no way to set ANSI_WARNINGS for the
SQLConnection object. The thing that confuses me is why all clients are
fine
except that one. From what I can determine, all have the same version of
SQL
Server ODBC driver, etc.
Any suggestions would be appreciated.