Quantcast
Channel: SQL Server Data Access forum
Viewing all 4164 articles
Browse latest View live

protocol error in TDS Stream for SSIS package

$
0
0

I am trying to load data from one sql server to another Sql Server using SSIS package.While loading the data i am getting the below error

Error :

[OLE DB Source [199]] Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.

An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80004005  Description: "Protocol error in TDS stream".

An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80004005  Description: "Protocol error in TDS stream".

An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80004005  Description: "Protocol error in TDS stream".

An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80004005  Description: "Protocol error in TDS stream".

[SSIS.Pipeline] Error: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on OLE DB Source returned error code 0xC0202009. 

The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.

There may be error messages posted before this with more information about the failure.

I am facing the same issue when i change the server too.I am getting the error at different tasks in the package everytime i run.

Is this the error from Network side or sql server side?How can i fix the issue?

Thanks in advance


protocol error in TDS Stream for SSIS package

$
0
0

I am trying to load data from one sql server to another Sql Server using SSIS package.While loading the data i am getting the below error

Error :

[OLE DB Source [199]] Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.

An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80004005  Description: "Protocol error in TDS stream".

An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80004005  Description: "Protocol error in TDS stream".

An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80004005  Description: "Protocol error in TDS stream".

An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80004005  Description: "Protocol error in TDS stream".

[SSIS.Pipeline] Error: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on OLE DB Source returned error code 0xC0202009. 

The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.

There may be error messages posted before this with more information about the failure.

I am facing the same issue when i change the server too.I am getting the error at different tasks in the package everytime i run.

Is this the error from Network side or sql server side?How can i fix the issue?

Thanks in advance

protocol error in TDS Stream for SSIS package

$
0
0

I am trying to load data from one sql server to another Sql Server using SSIS package.While loading the data i am getting the below error

Error :

[OLE DB Source [199]] Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.

An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80004005  Description: "Protocol error in TDS stream".

An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80004005  Description: "Protocol error in TDS stream".

An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80004005  Description: "Protocol error in TDS stream".

An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80004005  Description: "Protocol error in TDS stream".

[SSIS.Pipeline] Error: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on OLE DB Source returned error code 0xC0202009. 

The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.

There may be error messages posted before this with more information about the failure.

I am facing the same issue when i change the server too.I am getting the error at different tasks in the package everytime i run.

Is this the error from Network side or sql server side?How can i fix the issue?

Thanks in advance

protocol error in TDS Stream

$
0
0

I am trying to load data from one sql server to another Sql Server using SSIS package.While loading the data i am getting the below error

Error :

[OLE DB Source [199]] Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.

An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80004005  Description: "Protocol error in TDS stream".

An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80004005  Description: "Protocol error in TDS stream".

An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80004005  Description: "Protocol error in TDS stream".

An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80004005  Description: "Protocol error in TDS stream".

[SSIS.Pipeline] Error: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on OLE DB Source returned error code 0xC0202009. 

The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.

There may be error messages posted before this with more information about the failure.

I am facing the same issue when i change the server too.I am getting the error at different tasks in the package everytime i run.

Is this the error from Network side or sql server side?How can i fix the issue?

Thanks in advance

SqlConnection now failing, exception when connecting to remote instance

$
0
0

Hi,

This is a fairly new problem I've run into - in between the time when I know this was working fine for me and now, I did some software installs, but have made an effort to roll things back as best as I could.  Some of the items installed included VS 2013 (preview), Microsoft Message Analyzer, Microsoft Monitoring Agent (never fully installed).

The code in question that fails now is a simple:

using (var conn = new SqlConnection("<my connection string>"))

{

    conn.Open();

}

The Open fails with the following exception (SqlException):

A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The message received was unexpected or badly formatted.)

If I let it continue, the client handled exception is:

The connection was not closed. The connection's current state is connecting. (InvalidOperationException)

Things to note:

1. Only fails when talking to a remote SQL instance - local ones work fine I'm assuming on the basis that it's using Shared Memory - when I disable that and use TCP only, it starts failing similarly for local instances

2. I can connect to the remote instance using OSQL - so I'm strongly suspecting drivers are involved at some level

3. This is being done on my host OS - I can run a VM on the same machine and do the very same code above and it *works* - so I have to believe it's local software/config on the host, not hardware and not remote hardware or software.

4. Other connectivity health seems fine - I'm composing this message on the failing host.

Any ideas on where I could turn next?  I'm trying to avoid a complete reinstall of everything - would be a terrible time suck for no good reason! :(

Thanks,

- J

convert nvarchar to float

$
0
0

I have a column named total and it contains two types of data like either $62.50 or like -40.

I need to run queries like "select sum(total) from invoice where Created > '01/01/13' ",  but it gives me  error like "

Error converting data type nvarchar to float."

Please help !

SELECT SQL QUERY FOR SELECTING FROM EXCEL SHEET USING WHERE CLAUSE

$
0
0

Here is my code.... return null data table

string chitty = "MTP/HG2";

 DataTable dtdate = con.select("Select FirstInstDate from [Sheet3$] where SeriesNo = "+chitty+" ");

            

Cannot browse sql server

$
0
0
Hi,
I have my sql server on 10.10.10.0 network and all
users in this network can browse the SQL server (while creating ODBC
connections). I have another subnet, 172.x.x.x, in the same network, they can
ping the server, telnet to port 1433, but cannot browse the SQL servers while
creating ODBC. Any idea how to resolve this?
SQL 2005 is used.

Any
help is appreciated.

Microsoft SQL Server, Error: 18456

$
0
0
Hi 
Hope all of you are fine. 
Recently I purchase New Laptop and Install Windows 7 64 bit OS. Before this i was working in Windows 7 32 bit. in 32 Bit SQL server works Connect fine. But Now in 64 Bit i Install SQL server 2005 first time. here is my Installation Process. 
1. Install VS 2005.net 
2. Enable IIS in control panel
3. Install SQL Server and set Instance "SQL 2005" and set windows Authentication Mode. 
4. Install SQLServer2005SP3-KB955706-x64-ENU
5. Install SQLServer2005SP3-KB955706-x86-ENU
then i connect SQL Server Managment Studio i set my Server Name MyComputerName\Instance Name
like Personal\SQL2005
But Error comes.
Login failed for user. (Microsoft SQL Server, Error: 18456)
i have checked many websites in google and for help of this problem but i have still face to same problem please help.  

List of nodes for an instance that can move during failover.

$
0
0

Hi

I have setup for Sql cluster having two node and always on feature enabled for one of the database available in cluster setup.I need to find the number nodes available for each instance in cluster setup.I am using sys.dm_os_cluster_nodes view to find no of nodes.But i am getting always on node also in node count.I would like to get exact no of nodes for each instance that can move during failover .

Thanks

with regards

M.Selvakumar

Strange ODBC error with MS Access

$
0
0

I have a very strange scenario developed.
Two sets of machines, supposedly with identical builds in terms of service packs and OSs (windows 7 64bit but running 32bit Office) and setups: I'll call themGood and Bad

If I run a particular access form with the Good machines, it will build the report in good time and correctly.

However, if I run the same report on the Bad machines, I get the dreaded "There was an error executing the command"! However, when I came to troubleshooting this by switching the ODBC trace on, what would normally take 10-15secs now takes an hour but it does run the query correctly and builds the report.

I have run the profiler in SQL 2008 R2 (10.50.2550) and have found something interesting but no idea how to let it proceed. On theBad machine trace it gets to a certain point in pulling down the data then throws in a line EXEC SP_UNPREPARE 1. Nothing more happens after that and I believe this throws the error up.

However, on the Good machine traces andBad machines with the ODBC trace on, it goes through the data pulldown correctly, neither stopping at that particular point nor throwing up the sp_unprepare line either.

So I am stuck how to ensure that these Bad machines can be fixed to run the form correctly. does anyone have any ideas?

Maximum row size of 8060

$
0
0
Hi,

RDBMS: SQL Server 2008R2
Program language VC++ 10.0
Data access: OLEDB (on actual Win 7 x64)

We have a converter function what convert database columns to unicode types.
Yes, the table have more varchar(890) and text type columns, warning is present for it.
'text' type columns I have to copy during conversion (varchar columns was altered in place).

During the conversion SQL commands was send through OLEDB.
'Remarks' column is a text null.

1. create the new column:
   ALTER TABLE Analysis ADD IATMP123 ntext NULL

2. copy and convert data into it:
   UPDATE Analysis SET IATMP123 = Remarks

3. delete old one
4. rename the new to the old one

The second step throw an error after run some second:
Cannot create a row of size 8075 which is greater than the allowable maximum row size of 8060

select Max(DATALENGTH(Remarks)) from Analysis; -> result is: 3506

In my opinion it is an OLEDB problem, these two SQL command run in 'Management Studio' on the same database! (without error)
Please help to resolve this problem.

Regards,
Imre


Linked Server not working with Windows Auth

$
0
0
I have read a number of posts on this, but not on my specific issue. I have SQL Server A with a linked server to SQL Server B using "Be made using the login's current security context."  From what I've read, I understand that Kerberos is required to connect from computer C through the linked server on A to get to B.

Although both servers are members of the same domain, the SQL Services are running under local accounts, not domain user accounts. Is it impossible to pass credentials forward in this scenareo?  If so, is my only option to switch my SQL Services to run under domain accounts?

Thanks,
Hugh

damsel in coding distress! please help!

$
0
0
Im currently trying ot build a website in Visual Studio 2013. I have a database with tables in mssql. One of those tables has a sql bit ("true"/"false") type. I dont know how to count how many true columns there are and disply them in visul studio. I just want to display the total figure not the actual column.

I also have created a verification so that users may log on to my web applictaion (not using the pre installed login control). I dont know how to I create personal accounts from here so each user that logs in has there own area with their information on it. ie Display there name on login eg Welcom Roscoe J. Also so they can see there own history etc. How would I create member accounts do this in mssql (how) or visual studio (how?).

Pretty please could you be specific as I have read lots and still not understood it. Basically for the final I wanted to have created a live car park booking system. The true or false above displays how many parking space are left etc. If any one knows where I could find similar examples or help at all I would be entirely grateful.

Thank you in advance.

From a desperate learner.

Ps. I am coding in C# asp.net webforms.

The OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "(null)" reported an error. Access denied.

$
0
0
Hi,

I am importing Excel 2007 file into SqlServer 2005 (Sqlexpress). The office 2007 is not installed in the machine. I have downloaded and installed "AccessDatabaseEngine". When I execute following statement

SELECT * FROM OPENROWSET('Microsoft.ACE.OLEDB.12.0', 'Excel 12.0;Database=D:\File1.xlsx', 'SELECT * FROM [Sheet1$]');

The following error is comming:

Msg 7399, Level 16, State 1, Line 1
The OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "(null)" reported an error. Access denied.
Msg 7350, Level 16, State 2, Line 1
Cannot get the column information from OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "(null)".

Can any one suggest what should I do to resolve?

Thanks,
Parmeshthee.


Learning .Net 3.5

error when merging two columns into one in a sql-question.

$
0
0
Hallo,

I have the following problem when merging two columns into one in a sql-question.
The Columns [aaNummer] - int16 and aaKurz - varchar 250 must arrive at a text in the column [VALUE_LookUp].

SQL:
SELECT id_AA, CONVERT(varchar(10), [aaNummer]) + ' ' + aaKurz AS VALUE_LookUp FROM tbStamm_Artikel_Ausfuehrungen

In Managementstudio it works fine, but it Programm under VS2010 comes then error.

Die Eingabezeichenfolge hat das falsche Format.<2375 W.Nr. 1.4435 warmgewalzt, Verfahren 1D, Toleranz EN10029> konnte nicht in der VALUE_LookUp-Spalte gespeichert werden. Erwarteter Typ: Int32.

The SQLServer builds the Target-Column [VALUE_LookUp] as int, not as test.
I do not know what to do - can anyone help?

Thank you
torsten

DataReader / Dataset timeout over WAN

$
0
0
Hi,

I have trying to do some connections to a remote database and do a whole lot of reads. No no writing back to the db. So I am doing this in .net using a SQLreader. However occasionally it seems to cause a timeout with other connections to the database from a separate application.

So I always have to open the db execute the sql reader then close the connection.

what I am wondering is if I am using the dataset method even though I might get lower speed would it be gentler on the db and less likely to cause issues. The other apps like my app connect over a wan link as does my application.

The issue they get seem to be timeout related as well.

I am also thinking since the sql reader has to iterate through each result it might then a dataset that gets it all back in one hit.

So please advise thanks on my best options.

Thanks,

Ward

updating clients database like a antivirus

$
0
0
I am using SQL server 2008 with C# / Visual Studio 2008 (desktop application with SQL Compact Edition or SQLite that everyone can download and use it and a main database in a server)
1-      I need to know any method so that everyone use this program can receive last updates from main database.(only update like antivirus (

2-      how I can moderate the customers level that can download some kind of database tables

3-      anything  that I should know.

Error "The parameter type cuks.sys.geometry" is invalid. Parameter name - value.

$
0
0

Dear Gurus!

I have x.y-table and form new geometry field Shape (to create service in arcgis server 10.1). I use next expression:

update cuks_gdb.sde.events set Shp =  geometry::STGeomFromText('Point('+ ltrim(STR(x, 99, 11))+ ' '+ ltrim(STR(y, 99, 11))+ ')',28406);

After that, when I try to save any change of any field  in sql manager I get an error:

Error "The parameter type cuks.sys.geometry" is invalid. Parameter name - value.

Can't anybody say how to fix?

p.s. I use this table in arcgis desktop  ( create layer ) and all points are displayed correctly on the field Shape. But there are errors when use service - I can only delete data, but can't save. When I use this layer in arcgis.com - data can be updated but can't add new feature.

May be any reference or ideas!!!

Configure Database in Staging and Production

$
0
0

Hi,

I'm having two databases in my staging, named as DB1 and DB2. DB1 contains the user profile details. DB2 contains the other transaction table. I need to do join both databases to retrieve the information. In my application i'm using stored procedures. In my stored procedure most of the queries are joins between two Db's. 

For example, 

SELECT E.FisrtName, T.OrderDate FROM

DB1.dbo.Table1 AS E INNER JOIN DB2.dbo.Table2 AS T ON E.UserID = T.UserID

My requirement is both my staging and production server is the same. For staging i already the DB as DB1 and DB2 also mentioned the name in stored procedures. How can i use the different name for production like DB1_Prod and DB2_Prod. In this case the SP won't work because my SP has DB1 and DB2. How can design structure. Kindly provide some idea. Thanks.

Viewing all 4164 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>