Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    MS SQL Server


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Can't Find SQL Native Client In ODBC Connection Manager In SQL Server Open Database Connectivity (ODBC)


I apologize if this is not the correct forum for this posting. Looking at the descriptions, it appeared to be the best choice.

I am running Windows XP Pro SP2. I have installed the SQL Native Client for 
XP. However, when I try to add a new data source through ODBC Connection 
Manager, SQL Native Client is not listed as an option. I have followed this procedure on three other systems with no problems. What would be causing the
SQL Native Client to not show up in the list of available ODBC data sources?




View Complete Forum Thread with Replies

Related Forum Messages:
Connect SQL Server 2005 With ODBC Drive “SQL Native Client&&"
 

Hi,

 

When I'm using SQL server 2005, and ODBC drive €śSQL Native Client€? I get an error when executing the below given code. Error Message: €śTransaction cannot start because more than one ODBC connection is in use.€? 

 

But this works well with SQL Server 2000 with ODBC drive "SQL Native Client" and in SQL server 2005 also when I used ODBC drive €śSQL  Server€?.

 

I used aTrgConn.Execute(€śBegin Transaction€?) and it's working properly. But unfortunately I cannot use this method, because I want to run the same code with Oracle ODBC as well.
 Is this a known issue in SQL Native client drive with SQL server 2005? Do you know a solution for this?
 

Please Help..............

 

Thanks in advance.

 
 
 
Code:

Dim aTrgConn As New ADODB.connection
Dim aCmdIns As New ADODB.Command
Dim aCmdUpd As New ADODB.Command

 

aTrgConn.Open sConnStr

 

Set aCmdIns.ActiveConnection = aTrgConn
Set aCmdUpd.ActiveConnection  = aTrgConn

aTrgConn.BeginTrans

View Replies !
Odbc Using Native Client Fail
I installed sql2005 on server, created odbc connection , sucess connection.
I installed native client on pc. pc ping server sucessfully. I created odbc using sa with valid password (as i do in server), when completing give error " sql server does not exist or access denied" , and can not connect with server.
how can i resolve the problem.

View Replies !
SQL Server VARCHAR(MAX) Column Returns Error While Inserting Records Into Table(ODBC Driver: SQL Native Client)
I created very simple table with 3 columns and one is varchar(max) datatype

When i insert records thru VC++ ADO code i am getting this error

 

Exception  Description Multiple-step OLE DB operation generated errors. Check e
ach OLE DB status value, if available. No work was done. and Error Number:: -2147217887

 

ODBC Driver: SQL Native Client

SQL server 2005

 

Table

CREATE TABLE [dbo].[RAVI_TEMP](

[ID] [int] NULL,

[Name] [varchar](max) NULL,

[CITY] [varchar](50) NULL

)

 

VC++ code

#include "stdafx.h"
#include <string>
#include <strstream>
#include <iomanip>


int main(int argc, char* argv[])
{
try

 HRESULT hr = CoInitialize(NULL);
 _RecordsetPtr pExtRst = NULL;
 _bstr_t  bstrtDSN, bstrtSQL;
 bstrtDSN = L"DSN=espinfo;UID=opsuser;PWD=opsuser;";
 bstrtSQL = L"SELECT * FROM RAVI_TEMP";

 _variant_t vartValueID,vartValueNAME,vartValueCITY;
 _bstr_t  bstrtValueID,bstrtValueNAME,bstrtValueCITY;

 pExtRst.CreateInstance(__uuidof(Recordset)); 
 hr = pExtRst->Open(bstrtSQL, bstrtDSN, adOpenDynamic, adLockOptimistic, adCmdText);

 hr = pExtRst->AddNew(); 

 bstrtValueID = L"1";
 vartValueID  = bstrtValueID.copy();

 bstrtValueNAME  = L"RAVIBABUBANDARU";
 vartValueNAME   = bstrtValueNAME.copy();

 bstrtValueCITY = L"Santa Clara";
 vartValueCITY = bstrtValueCITY.copy();

 pExtRst->GetFields()->GetItem(L"ID")->Value = vartValueID;
 pExtRst->GetFields()->GetItem(L"NAME")->Value = vartValueNAME;
 pExtRst->GetFields()->GetItem(L"CITY")->Value = vartValueCITY;
 pExtRst->Update();
 pExtRst->Close();

}
catch(_com_error e)
{
  printf("Exception  Description %s and Error Number:: %d",(LPTSTR)e.Description(),e.Error());
  return e.Error();
}
 return 0;
 CoUninitialize();
}


if i use regular SQL ODBC driver, no error but its truncating the data

 

Adv Thanks for your help
 

View Replies !
ODBC To SQL Express - SQL Driver Versus SQL Native Client
 

I have a SQL express database which I need to access from a shared hosting plan.  I can create an ODBC connection through the hosting provider's control panel for SQL Server, but it won't connect.  I tested this locally and discovered that the SQL Native Client connects fine, but the previous SQL Server driver does not.  This seems to only happen with SQL 2005 Express edition; it works with the Developer Edition.  Does SQL Express only use the Native SQL Client??
 
Thanks in advance for your help!

View Replies !
SQL Native Client ODBC On Ia64 And SQLGetStmtAttr(SQL_ATTR_CONCURRENCY)
We've run into an issue running against the SQL Native Client ODBC driver (version 2005.90.2047.0)  on Windows 2003 Server (Itanium).  The "INFO: ODBC 64-Bit API Changes in MDAC 2.7" article (http://support.microsoft.com/kb/298678) doesn't say that the returned value for SQL_ATTR_CONCURRENCY changed to a 64-bit value, but if you request this attribute from the SQL Native Client driver, a 64-bit value is returned.  The ODBC spec still indicates that SQL_ATTR_CONCURRENCY is a SQLUINTEGER value, which is 32-bit, even on a 64-bit platform.

This is easy to see by using the ODBC Test utility in the Windows SDK for ia64, "C:Program FilesMicrosoft SDKBinWin64ia64odbcte32.exe".  If you connect to the SQL Server driver and then simply call SQLGetStmtAttr(SQL_ATTR_CONCURRENCY), you'll see that the *StringLengthPtr argument returns 8 bytes, when it should only return 4.

Note that we've also seen the same behavior with SQL_ATTR_ROW_BIND_TYPE as well as other statement attributes defined to return SQLUINTEGER values.

Has anyone else run into this?

Thanks,

Chris

View Replies !
SQL Native Client ( ODBC ) Convert Function Unicode/SQL_DOUBLE
SQL Native Client 2005.90.3042.00 ODBC driver does not return SQL_CVT_DOUBLE as part of the mask from SQLGetInfo for SQL_CONVERT_WCHAR, SQL_CONVERT_WVARCHAR even though driver actually supports converting nchar and nvarchar to SQL_DOUBLE.  For example,

select
{ fn convert(N'1.23', SQL_DOUBLE) }

works, but

 

SQLUSMALLINT nInfoType = SQL_CONVERT_WCHAR;

SQLUINTEGER nInfoValue = 0;

SQLRETURN rc = SQLGetInfo( hdbc, nInfoType, &nInfoValue, sizeof( nInfoValue ), NULL );

 

ASSERT( nInfoValue & SQL_CVT_DOUBLE );  // fails

View Replies !
How To Catch Severity Level From SQL Server 2005 In Centura 4.1 Client With ODBC-connection?
We have a client application developed in Centura 4.1 for Sybase dB.

We have now migrated the DB to SQL Server 2005 and we have a problem:

For several reasons we must use ODBC and when the DB  raises a warning (severity level < 11 ) the Centura-client must ignore this.

As it works now the client raises an error an stops execution.

When using Sybase the client got the severity level from the DB and the client ignored all levels that was < 11. We now cannot do that since we do not get that info from the ODBC€¦

So I wonder:

Can we stop the SQl Server from raising errors with severity level < 11  (=warnings)?

How do we get the severity level and not only the ODBC number and text in the client..?

We also tried using ODBC in SQL Native Client, but has not  (yet) got it working with the Centura Client€¦

TIA

Claes Wedin

Encora AB

View Replies !
ODBC Connection For Client Application To SQL Server 2005 Express Installed On Network Computer
Hi All,

I've developed an application that connects to a SQL Server 2005 Express database. I created a DSN to connect to the database through ODBC. Currently, I am testing locally and everything works fine.

I would now like to install my application on another workstation and connect remotely to the database located on my development machine.

The client workstation does not have SQL Server 2005 Express installed on it because I would just like my application to connect remotely by creating the DSN and using ODBC. What I'm missing here are the database drivers. The "SQL Natice Client" is not available on this client workstation. How can I deploy the necessary drivers with my installation file so that I may create the required DSN name using the SQL Native Client driver?

Thanks!

View Replies !
Using ODBC For Database Connectivity In C++
Currently my C++ application is using ADO to connect to MS SQL Server database.Now I want to use ODBC instead of ADO.i know that i need to use window APIsI am using SQLConnect to establish the database connection.What are the functions that i need to use for1) excecuting the sql statements2)executing update/delete statements3)retrieving column values from the result set by giving the column name4)get the no of rows affected while performing update/delete/select statementsthanks in advanceharish

View Replies !
ERROR [HY000] Or ERROR [23000] At Random Times When Using Sql Native Client Via ODBC
The following (VB.Net) code causes exceptions at seemingly random times.
Any suggestions?
Not sure if the problem is in .Net's ODBC support or in Sql Native Client.

If MARS is off, usually after less than 100 loops:



Code Snippet

System.Data.Odbc.OdbcException was unhandled
  ErrorCode=-2146232009
  Message="ERROR [HY000] [Microsoft][SQL Native Client]Connection is busy with results for another command"
  Source="SQLNCLI.DLL"
Turning MARS is on bypasses that error, so it will sometimes survive a thousand or so runs before hitting:




Code Snippet

System.Data.Odbc.OdbcException was unhandled
  ErrorCode=-2146232009
  Message="ERROR [23000] [Microsoft][SQL Native Client][SQL Server]Cannot insert the value NULL into column 'Number', table 'tempdb.dbo.#TempTable___..(shortened to fit).. _________000000002F3F'; column does not allow nulls. INSERT fails.
  Source="SQLNCLI.DLL"
Code here:
(Console Application, empty database,
Visual Studio 2005, .Net 2.0, Windows XP,SQL Server 2005 or SQL Express 2005, Local or Remote)





Code Snippet

Module Module1

    Sub Main()

        'Dim connection As New SqlClient.SqlConnection("database=TestDB;server=.sqlexpress;Integrated Security=SSPI;") 'Doesn't crash
        'Dim connection As New OleDb.OleDbConnection("Provider=SQLNCLI;database=TestDB;Server=.sqlexpress;Trusted_Connection=yes;") 'Doesn't crash

        'Dim connection As New Odbc.OdbcConnection("Driver={SQL Native Client};Database=TestDB;Server=.sqlexpress;Trusted_Connection=yes;") 'Crashes
        Dim connection As New Odbc.OdbcConnection("Driver={SQL Native Client};Database=TestDB;Server=.sqlexpress;Trusted_Connection=yes;MARS_Connection=yes") 'Crashes

        VBMath.Randomize()

        Dim run_count As Integer = 1
        connection.Open()
        Console.WriteLine("Connected!!")

        While True
            'connection.Open()

            Dim testcmd As New Odbc.OdbcCommand("CREATE TABLE [#TempTable] (Number int PRIMARY KEY)", connection)
            testcmd.ExecuteNonQuery()
            testcmd.Dispose()
            testcmd = Nothing

            Dim dtTemp As New DataTable
            Dim daTemp As New Odbc.OdbcDataAdapter("SELECT * FROM [#TempTable]", connection)
            daTemp.MissingSchemaAction = MissingSchemaAction.AddWithKey
            daTemp.Fill(dtTemp)
            Dim cbTemp As New Odbc.OdbcCommandBuilder(daTemp)
            Dim viewTemp As New DataView(dtTemp, Nothing, "Number", DataViewRowState.CurrentRows)

            Dim i As Integer
            For i = 1 To 1000
                Dim test_number As Integer = CInt(Rnd() * 2000)
                If viewTemp.Find(test_number) = -1 Then 'Keep it unique
                    Dim new_temp_row As DataRowView = viewTemp.AddNew()
                    new_temp_row("Number") = test_number
                    new_temp_row.EndEdit()
                End If
            Next

            daTemp.Update(dtTemp)

            'daTemp.Dispose()
            'daTemp = Nothing

            'cbTemp.Dispose()
            'cbTemp = Nothing

            'dtTemp.Dispose()
            'dtTemp = Nothing

            'viewTemp.Dispose()
            'viewTemp = Nothing


            Dim testcmd2 As New Odbc.OdbcCommand("DROP TABLE [#TempTable]", connection)
            testcmd2.ExecuteNonQuery()
            testcmd2.Dispose()
            testcmd2 = Nothing

            'connection.Close()
            'GC.Collect()

            'Console.Write(".")
            run_count += 1
        End While

    End Sub

End Module

Usually the ".Update" triggers the exception, but sometimes the other sql commands do it.
Have tried various experiments with disposing of objects immediately when finished, but no effect.
Opening and closing the connection each loop seems to delay the errors, but it still happens eventually.

View Replies !
Client Unable To Establish Connection Encryption Not Supported On SQL Server. (Microsoft SQL Native Client)
On Windows XP systems I get the following issue when trying to browse the MSDB folder in SSIS

Client unable to establish connection
Encryption not supported on SQL Server. (Microsoft SQL Native Client)

I have noticed another post where several others have noticed the same issue.  It appears to only occur on Windows XP installations.  Is there a workaround or fix for this?

View Replies !
Compatible Versions Of Ms SQL Server, ODBC Driver, Driver Manager And ODBC API Spec
Hi,

Please help share with me if you know the version compatibility matrix of Ms SQL Server, ODBC driver (sqlsrv32.dll), Driver Manager (odbc32.dll) and ODBC API spec. For instance, how can I know Ms SQL Server 2000 can work with which version of sqlsrv32.dll, a particular version of sqlsrv32.dll can work with which version of odbc32.dll and a certain version of sqlsrv32.dll/odbc32.dll conforms to which version of ODBC API spec (e.g. 3.5).

Any help will be appreciated.

Thanks,

vtluu.

View Replies !
ODBC Connection Not Terminating After Client Diconnects
Hi,

We have SQLSERVER 7.0 in one of the production.
The clients r connected thru ODBC.
The clients doesn't gets disconnected after a task result in
increase in sqlserver log.

Can anyone advice me .

Thanks in advance
Anu

View Replies !
ODBC Connection Issue On Client Site
Hi,

 
It might be a basic question but could you please help me on that?
 
Working Environment:
 
I have developed application on SQL Server 2005 and now wants to Run on Client Site, I am using access as a front end and  SQL server 2005 back end through ODBC (System Dsn) which is working good. (user has been added on SQL Server and on Database)
 
Question:
1) Do I need to create new System Dsn Or other DSN (Keep in mind I have already create System DSN in Server) at each client site to access application from Server?
(If yes then I am trying to do that, it allow me to create (with required database which is on Server) and verify but doesn€™t save on ODBC list so I can€™t use that name to run appliation on client site)
 
I am using windows authentication.
 
Thanks for help in advance
 
 
 
 

 

View Replies !
ODBC Connection Issue On Client Site
Hi,
I am not sure if I select right Froum:)
It might be a basic question but could you please help me on that?



Working Environment:



I have developed application on SQL Server 2005 and now wants to Run on Client Site, I am using access as a front end and SQL server 2005 back end through ODBC (System Dsn) which is working good. (user has been added on SQL Server and on Database)



Question:

1) Do I need to create new System Dsn Or other DSN (Keep in mind I have already create System DSN in Server) at each client site to access application from Server?

(If yes then I am trying to do that, it allow me to create (with required database which is on Server) and verify but doesn’t save on ODBC list so I can’t use that name to run appliation on client site)



I am using windows authentication.



Thanks for help in advance



AA

View Replies !
Testing ODBC Connection Manager
I am testing out the ODBC connection manager, as part of my beta testing from my company. I created a new conn manager on the palate (dsn pointing to local  sql server). But I am not sure how this one can be used. I can not use any of the Data flow sources which can use this ODBC connection manager. Using the said conn manager in a Datareader source shows up the error "Can not acquire a managed connection from the run-time connection manager".

View Replies !
Cache ODBC Dsn Problem In Connection Manager
I have created a simple SSIS package using the Import / Export wizard.  I have, in Connection Manager, created a DataReaderSrc connection using .Net ProvidersODBC Provider to connect to my exising DSN name of AMPFM which is an ODBC connection to a InterSystems Cache Database.  It test successfully but fails when I run the package with the error at the bottom of this text.  I have also tried the following connection string which also tests successfully but then fails when I run the package:

Dsn=AMPFM;server=10.11.1.34;uid=_system;port=1972;database=ALL;query timeout=1

 

SSIS package "Package1.dtsx" starting.

Information: 0x4004300A at Data Flow Task, DTS.Pipeline: Validation phase is beginning.

Error: 0xC0047062 at Data Flow Task, Source - Query [1]: System.Data.Odbc.OdbcException: ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

at Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSConnectionManager90.AcquireConnection(Object pTransaction)

at Microsoft.SqlServer.Dts.Pipeline.DataReaderSourceAdapter.AcquireConnections(Object transaction)

at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostAcquireConnections(IDTSManagedComponentWrapper90 wrapper, Object transaction)

Error: 0xC0047017 at Data Flow Task, DTS.Pipeline: component "Source - Query" (1) failed validation and returned error code 0x80131937.

 

Can someone help me with this problem?  I need to create several packages to pull data from this Cache database on a regular basis and find myself stuck at this step.

 

Thanks!

 

View Replies !
How To Create Connection Manager For Oracle DB Using ODBC?
Hi,
I want to import data from Oracle database programmatically using ODBC connection manager. I was able to import data by creating an ODBC DSN and then using it BIDS with ADO.NET connection using ODBC data provider for Oracle. Now I want to do the same programmatically. How should I create a connection manager? I tried using code below
 

ConnectionManager cmOracle = this.package.Connections.Add("ADO.NET: ODBC");

cmOracle.Name = "OracleSourceConnection";

cmOracle.ConnectionString = "Dsn=MyDSN;uid=MyID;";
 
But I get an error when acquiring connection
ErrorCode=-1071611874

The connection manager "__" is an incorrect type. The type required is "__". The type available to the component is "__".
Which one of the connection managers given by Microsoft here should be used?
http://msdn2.microsoft.com/en-us/library/ms136093.aspx
Has anyone come across similar scenario?
 
Thanks
 
 
 

View Replies !
Cannot Install SQL Server Express On Vista Ultimate - Cannot Find MS SQL Server Native Client
I am trying to install SQL Server Express - (the non ADV version) and get the following error.

"An installation  package for the product Microsoft SQL Server Native Client cannot be found.  Try the installation again using a valid copy of the installation package 'sqlncli_x64.msi'".

 

I have 64 bit Vista Ultimate running on an HP dv9000.

I am using the download from the bottom of the download page for SSX where it says 64 bit version.

 

Prior to this I got the. "64-bit ASP.net is registered.  Required 32-bit ASP.NET to install Microsoft Reporting services 2005(32-bit)." messagd during the pre-install scan.  From what I gather in the posts, the reporting issue is different from my installation  package problem.

 

I have been trying to prove a point to friends about how far you can go with SSX but am having no luck installing it.  This whole process took 1 hour in XP but I've been stymied for 2 days.

 

I would appreciate being pointed at the right downloads for what seems to be a simple install.

View Replies !
ODBC Connection From Access 2007 Database To SQL Server 2005 Database
I need detailed instructions on how to connect to a database from a Microsoft Access 2007 database to a Microsft Office Accounting 2007 database.  The accounting database is an SQL 2005 datbase.  It has an instance name of "MSSMLBIZ".
 
When I try I get an SQL error 53.  Do not have permissions or database does not exist.
 
Thanks in advance for any help.,

View Replies !
Database Mirroring, Client Connections All ODBC So What Methods Are Recommended?
As stated in the subject I have a situation where if database mirroring is employed for either manual or automatic failover, all the client (including web connections) connections use ODBC not ADO, or OLEDB etc... so what methods are recommended? Client side redirect is not available so I could not employe the "Data Source =A; Failover Partner=B..." option.

Right now the method employed (pre database mirroring and basically employing log shipping on SQL 2000) is to have a DNS alias for the ODBC connection so that if the server were to change in a failover situation the DNS record would have to be altered, so that all the client connections would not have to be reconfigured.

Regards,

Dominic Baines

View Replies !
Client/server ODBC Problem
I have an application on:

W2K client
Sql 2000 + No SP
MS ODBC V3.8
C++

The application, running on the client, connects to SQL server for many simultaneous queries involving select, insert and update. Application creats a thread for each query. Each thread connects to the sql server via ODBC using sqlconnect.

However I find that the individual thread do not close properly and stay open even after sqldisconnect has been issued on the client. At one point I have over 1200 threads on client application trying simultaneously to connect to the server and the sqlserver is holding with 276 threads open.

I do not understand why the ODBC connection stays open even after sqldisconnect is issued. I have even tried disabling connection pooling, to no effect. The performance is very poor.

How can I issue a large number of queries to same sql server via ODBC while guaranteeing performance?

View Replies !
Entreprise Manager Error Message: &"[Microsoft][ODBC SQL ServerDriver][SQL Server]Login Failed For User '#####'. The User Is Not Associatedwith A Trusted SQL Server Connection.(28000,18452)&"
Can anyone give a quick description of the meaning of this message andwhat needs to be done to get a connection.I'm running DBArtisan with SQLServer 2000 client SP4 installed.I also get the same message with MS Enterprise Manager so this iscoming out of the actual ODBC connection attempt.Thanks in advance!

View Replies !
Open An ODBC Connection To A DB And Must Use A Connection That Looks Like This: &&"DSN=myDSNname&&".
In my ssis package,

I have a DSN connection like this: "DSN=myDSNname". Which decide from i have to pull the data.

By using OLE DB Source Editor, I want to assign that ODBC Connection to it.

By data source Reader i can achive this but where i have to pass the hard-code SQL Query that i don't want.

i'm using the variable for dynamic SQL command.

Thanks.

Manoj

View Replies !
BCP With ODBC Native Driver
We are using Visual Studio 2003 to develop a VC++ application to support SQL Server 2000 and 2005 through ODBC driver. I was able to successfully test the application with ODBC driver for 2000. But when it comes to the SQL Server 2005 using native ODBC driver it fails with "ODBCBCP.dll is not compatible with 'SQL Native Client' driver. Please configure 'SQL Server' driver for the DSN or connection string.
 
Then I tried to use the sqlncli.h inplace of odbcss.h and replaced the odbcbcp.lib with sqlncli.lib pointing to the C:Program FilesMicrosoft SQL Server90SDKLibx86 folder.
 



Code Snippet
#include <sql.h>
#include <sqlext.h>
#include <sqltypes.h>
#define _SQLNCLI_ODBC_
#include <sqlncli.h>
 
 


Now I can not compile the program. The errors I am getting are as follows:
 
c:Program FilesMicrosoft SQL Server90SDKIncludesqlncli.h(2894): error C2061: syntax error : identifier 'DB_UPARAMS'
c:Program FilesMicrosoft SQL Server90SDKIncludesqlncli.h(2901): error C2061: syntax error : identifier 'DB_UPARAMS'
etc
c:Program FilesMicrosoft SQL Server90SDKIncludesqlncli.h(2938): error C2061: syntax error : identifier 'HCHAPTER'
c:Program FilesMicrosoft SQL Server90SDKIncludesqlncli.h(2944): error C2061: syntax error : identifier 'HCHAPTER'
etc
 
The same code just works fine in the Visual Studio 2005, but we need the dll in Visual studio 2003.
 
I think I am missing pretty obvious. Your help is appreciated.

 

View Replies !
Connecting To SQL Server 2000 Via ODBC (xp Client)
hi,

we just got a windows xp client and I can't seem to setup a ODBC DSN configuration that connects via 'named pipes'. I get SQL Server Error = 1326 - SQL Server does not exist. I think it has something to do w/ XP, NT Authentication and passwords.

tia

deanna

View Replies !
Inserting Image Data Fails With Connection Broken (SQL Server 2000 And SQL Native Client)
Dear all,
 
we have tables  with many image columns. We fill these image columns via ODBC and SQLPutData as described in MSDN etc (using SQL_LEN_DATA_AT_EXEC(...), calling SQLParamData and sending the data in chunks of 4096 bytes when receiving SQL_NEED_DATA).
 
The SQLPutData call fails under the following conditions with sqlstate 08S01
 
- The database resides on SQL Server 2000
- The driver is SQL Native Client
- The table consists e.g. of one Identity column (key column) and nine image columns
- The data to be inserted are nine blocks of data with the following byte size:


1:  6781262
2: 119454

3: 269
4: 7611

5: 120054

6: 269

7: 8172

8: 120054

9: 269
The content of the data does not matter, (it happens also if only zero bytes are written), nor does the data origin (file or memory).
 
All data blocks including no 7 are inserted. If the first chunk of data block 8 should be written with SQLPutData the function fails and the connection is broken. There are errors such as "broken pipe" or "I/O error" depending on the used network protocol.
 
If data no 7 consists of 8173 bytes instead of 8172 all works again.
(Changing the 4096 chunk size length does not help)
 
Has anybody encountered this or a similar phenomenon?
 
Thank you
 
Eartha

View Replies !
No Failover And Client Crashes ODBC DSN Setting For Failover In Connection String
We have set up Mirroring with a witness server and everything works fine when we failover from the SQL Management console.

However, if we failover when our Maccola client is connected, the client blows up - clearly because it can no longer connect to the database.

The ODBC DSN used by the Maccola client shows a checkbox for the 'select a failover server' but the checkbox is grayed out.

Also the summary of settings for the DSN at the end of the wizard reveals that the failover to server (y/N) option is set to N.

The default setting for this DSN is 'populate the remaining values by querying the server' but it doesn't appear to be getting the settings for failover from the server or any other interactive DSN settings either. The server is clearly set for mirroring.

Another suspicious item is that the DSN cannot connect to the server with SA permissions, even though the server is set to mixed security and we use the correct authentication.

Is it possible that the client MACHINE is not authenticating with the domain or sql server properly. We are logged into the client with the domain account that is the SQL admin account on the sql server box.

We should be able to interact with the sql server settings through the ODBC DSN on the client shoulnd't we?

Are we missing a service pack on the client?

Thanks,

Kimball

View Replies !
Datatype Map - Native ODBC Driver
Hi,

Our software uses native ODBC driver and Visual C++ 2003 to communicate with SQL Server 2005.
 
SELECT xml_schema_namespace(SCHEMA_NAME(schema_id) ,name) FROM sys.xml_schema_collections.

SQLDescribeColW returns -152 as the datatype for the column in the above select statement. However, I€™m unable to find a preprocessor definition for -152. The datatype looks like an nvarchar. Is it an nvarchar? Where can I find the definition for this datatype?

I have discovered similar problems while bringing back SQL_VARIANT types. The returned subtype of a SQLVariant comes up with -16 and -25. I cannot find definitions for these sub types either.

Any help is appreciated.

Regards,


Venkat

 

View Replies !
ODBC Connectivity Issues
I have a windows 98 pc trying to connect to a sql server running on Windows Server 2003 via a frame relay. The 98 pc will connect to the domain and it is able to ping the server. However, when I try to use my MS Access program that connects to the sql server, I get this error message:

Connection Failed
SqlState: '01000'
Sql ServerError: 11001
[Microsoft][ODBC Sql Server Driver][TCP/IP Sockets] Connection Open (Connect ()).
Connection Failed
SqlState: '08001'
Sql ServerError: 6
[Microsoft][ODBC Sql Server Driver][TCP/IP Sockets] Specified Sql server not found.

I have other pcs that connect to the Sql Server fine but they are located locally in the same building as the server. I've tried connecting through named pipes but for some reason, I get the same error. I have downloaded and installed the new MDAC drivers for the 98 pc. Any suggestions?

View Replies !
OLEDB, ODBC Connectivity To DB2 400
We are trying to extract data from DB2 on an as400 machine. Can we simply use SQL statements to extract the proper data that we need from as400 using the SQL Server 7.0 functionality? How do we do that?

We think this needs to be done via DTS(Data Transformation Service).

Thanks in advance.
Shaikh & Sande.

View Replies !
How Do You Specify A Database In A ODBC Connection?
Is there a way to choose which database you want to connect to in the ODBC connection?

And does this differ from one ODBC connection to another, say for instance Teradata and SQL Server?

I was looking up the syntax and it seems like you can say Database=LACPP and it will choose the database....

I have also seen username/password@LACPP.SQLSERVER 

Are there any documents out there that talk about how to create different kinds of ODBC strings and if you can always limit which database you are looking at?

-Bob

View Replies !
Girl In Need! Anyone Do This: Unix Client -&> ODBC -&> MSSQL Server
Anyone support a config where you have an unix/linux (AIX here) ODBC client connection to SQL Server database? I am looking for a simple, supportable configuration that does not require me to learn perl or instal a bunch of crap gnu shareware on enterprise class machines.

Please help!

View Replies !
Cannot Connect To Sql Server 2005 From Xp Client When Trying To Create ODBC Dsn
Newbie here,

I am trying to link tables from an access 2003 frontend to sql server 2005 backend.

I am doing this in a vmware test environment. I am using vmware server and running sbs 2003 and xp sp2 client. Both virtaul machine can talk to each other(using local host connection).

I have tried to create a dsn to the sql server but i cannot connect. I can ping the sbs server through the command interface but the error i get when i try to connect is :

Connection failed:
Sql state: hyt00
sqlserver error: 0
microsoft odbc sql server driver timeout expired.

spent a day trying various combinations - still no joy.

Any help would be much appreciated

View Replies !
Aspclassic On IIS7 SQL 2005. ODBC SQL Server Driver[SQL Server]Cannot Open Database &&"&&" Requested By The Login. The Login Failed
 
Hi all,

Have just tried my sql server 2005 connected asp classic website on II7 for the first time and have gotten some errors.
First off I have unchecked show friendly errors in IE and have enabled ASP to send error messages to the browser.

My error I get is when I execute a basic .asp page:

Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC SQL Server Driver][SQL Server]Cannot open database "mydatabasename" requested by the login. The login failed.
/index.asp, line 10 which is dbConnect.Open cstring


from this peice of code:

sub dbOpen()
  set dbConnect = Server.CreateObject("ADODB.Connection")
  cstring = "DSN=mysqldsn; Trusted Connection=yes"            
  dbConnect.Open cstring
end sub

I have gone into ODBC and have setup both a user dsn and file dsn that equals mysqldsn and points to my database (I know you only need to set up one DSN but I'm not sure which)

I also notice under mywebsite home panel there is a connection string option. Do I do anything with that?


Definatley a lot more to it than XP's II6!

Any help or advice would be greatly appreciated.

View Replies !
ODBC Connectivity Problem In Sql Server2005
Hi,
 
I have created DSN connection with sql server authentication in Sql server 2005. There is message comes "Connection Succeeded".
 
After I try through my application again asking username and password for the DSN at run time. My application is developed in Powerbuilder 5.0.
 
The connection string as follows,
 
SQLCA.dbms= "ODBC"
SQLCA.dBparm = "CONNECTSTRING='DSN=ntm',APPNAME = 'ntm',uid='sa',pwd='sierra'"
 
Can you help me?
 

View Replies !
ODBC Connection To A Linked Database
I'd like to set up an ODBC DSN to a table in a linked SQL Server, viamy local SQL Server.I'm having a few problems:1. When I use Enterprise Manager to link the remote SQL Server, itdoesn't allow me to select the database in the remote server. It onlyshows one database.2. When I use the Data Sources program to set up the ODBC DSN, it onlyshows databases in the local SQL Server, not in the linked one. If Itry typing it in: [NAMEOFLINKEDSERVER].databasename - it tells me thatit is an invalid table.

View Replies !
Is It Possible To Use A Simple ODBC Config On A Unix Client To Connect To MS-SQL Server?
Anyone support a config where you have an unix/linux (AIX here) ODBCclient connection to SQL Server database? I am looking for a simple,supportable configuration that does not require me to learn perl orinstal a bunch of crap gnu shareware on enterprise class machines.Please help!

View Replies !
ODBC Error: [Microsoft][ODBC SQL Server Driver]Communication Link Failure
Hi

When I open design table in 2000 Enterprise Manager and clicked on Index properties tab ,I am getting following error "ODBC error: [Microsoft][ODBC SQL Server Driver]Communication link failure"

Please help me.

thanks in advance

mike

View Replies !
Error On ODBC Connection To SQL 2000 Database
I have an Access application that uses an ODBC data source to connect to a SQL Server 2000 database. The SQL server is not on the client's LAN, so SQL authentication is used. All users of the Access app are instructed to use the same ID and password when running the app. Mixed authentication (SQL and Windows) is enabled on the SQL server. The ODBC data source configuration (as viewed through the Windows XP ODBC configuration wizard) indicates that SQL authentication should be used for this data source.

 

When the app attempts to access information from the SQL server, the user is presented with an error message indicating in part "Login failed for user '(null)'". Unfortunately, this is a client of mine, and I didn't capture the entire message before creating this post. In any case, the user clicks "OK" on this error dialog and is then presented with a login dialog. A checkbox indicating that integrated security should be used is checked. The user can uncheck this checkbox, type in the SQL user ID and password, and the app will then run successfully.

 

Is there anything I can do to ensure that the users will only be presented with the login dialog and not with the error message?

View Replies !
SQL NATIVE CLIENT - OLE DB Connection On 64 Bit Client
I have tried this on several different operating systems (VISTA and XP ) and several versions of SQL NATIVE CLIENT including 2005.90.3042.0
 
I have a 64 bit "SQL NATIVE CLIENT" connection that fails.  The exact same connection and code succeeds on 32 bit.
My customer and I prepend "oledb:" to the connection string and it starts working.
 
FAILS on 64 bit:
Provider=SQLNCLI.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Wrigley_Test;Data Source=MONGO;Use Procedure for Prepare=1;Auto Translate=True;Packet Size=4096;Workstation ID=RIPTIDE;Use Encryption for Data=False;Tag with column collation when possible=False;MARS Connection=False;DataTypeCompatibility=0;Trust Server Certificate=False
 
WORKS
oledb:Provider=SQLNCLI.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Wrigley_Test;Data Source=MONGO;Use Procedure for Prepare=1;Auto Translate=True;Packet Size=4096;Workstation ID=RIPTIDE;Use Encryption for Data=False;Tag with column collation when possible=False;MARS Connection=False;DataTypeCompatibility=0;Trust Server Certificate=False
 
I debugged my code to the point that I know it is happening when I call CreateAccessor for my SQL statement.
 

m_hr=m_pIAccessor->CreateAccessor(DBACCESSOR_ROWDATA, GetCols(), (m_pDBBinds+IsBookmarked()), 0, &m_hAccessor, NULL);
 
Error:

Microsoft SQL Native Client: Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.
 
Does anyone have any suggestions? 

View Replies !
How To Present Database In Excel File Using ODBC Connection In ASP.NET
Hi All, Please help me how to proceed from this situation, my requirement is to present (load) data in excel file and need to access (update/delete) it, the data which is in remote server; I want to connect database using odbc connection through ASP.NET. Please suggest me how to continue.
Thanks to all in Advance.
kolags@hotmail.com
 

View Replies !
Error Connection Pooling ODBC - SQLConnect Where Database This Down
My application works with the Connection pooling ODBC. Everything works well, when it data base this down the SQLConnect function finishes steeply my application.

View Replies !
Remote Connection Refused When Creating ODBC Connection To SQL Server 2005
When I create a new odbc connection to a SQL server 2005 Db I get a failure telling me dat de SQL server does not allow remote connections.

How can I allow the server to allow this.

 

Any help appreciated

 

regards

View Replies !
Error [Microsoft][SQL Native Client][SQL Server] Changed Database Context
Hi try to connect with driver {SQL Sever Client} but i can't
I'm have SQL Server 2005 Express SP2

Error connecting to the ODBC server:[Microsoft][SQL Native Client][SQL Server] Changed database context to..


Please Help me

Thanks

View Replies !
OLE DB Connection Fails; Native Client Does Not
I cannot connect to my SQL2005 server using the old SQL ODBC drivers, I have to use the Native client drivers. The database I am trying to connect to is a SQL 2000 db I just attached. Its owner is a SQL user login, which works fine and can connect remotely.

Thoughts?

Possibly related: http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=96732

View Replies !
&#34;ODBC--Call Failed&#34; And &#34;ODBC--connection To &#39;SQLServerMYSERVER&#39; Failed&#34;
We are using Access as a front end to a DB we house on a SQL 2000 SP2 box. I have 2 users utilizing this front end and they keep recieving these two errors
"ODBC--Call Failed" and "ODBC--connection to 'SQLServerMYSERVER' failed"
when trying to run a query window. They get the called failed message 99% of the time. I on the other hand, have no problems doing any of this without a File DSN defined. I verified all the file permissions to rule that out. And I also verified how their permissions were setup in Enterprise Manager and they are set the same as mine. The other users get the errors with or without the File DSN defined. After relinking the tables in the front end, it seems to go away for awhile, but then reappears. The only other way I could get the errors to disappear was to make them a domain admin like myself. When I did that, everything seemed to work fine. Now obviously I can't leave them like that, so I was hoping someone would be able to kindly point me in the right direction on how to resolve this. Please help, I am completely out of ideas here. Thanks in advance. Mike

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved