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.





Buffer Cache


Help, have recently upgraded from 6.5 to 7.0 and have come across a problem with performance. The problem appears to relate to the buffer cache being flushed, the buffer cache hit ratio drops from 98% to 0% in a matter of a second. It then very slowly grows, then is flushed again, then increase slowly upto 30%.

Does any one have any ideas as to what would flush the buffer cache?

Any comments would be much appreciated - cheers




View Complete Forum Thread with Replies

Related Forum Messages:
SQL2K - Clean Buffer Cache And Procedure Cache.
Is there a way to drop clean buffers at the database level instead of the server/instance level like the undocumented €œDBCC FLUSHPROCINDB (@dbid)€??
Is there a workaround for €œdbo€? to be able to flush procedure and data cache without being elevated to €œsysadmin€? server role?
 
PS: I am aware of the sp_recompile option that can be used to invalidate cached execution plans.
Thx.

View Replies !
Can't Clean Buffer Cache
Hi,

 

My problem is that I cannot completely clean buffer cache on SQL Server 2005 version 9.00.2047.00 (probably SP1).

 

Right after I run DBCC DROPCLEANBUFFERS in the context of my database (this is development server, and so far I am only the one who is working with a particular database), I run a script that quetries sys.dm_os_buffer_descriptors view also from the context of my database to make sure that the buffer cache is really clean. However it shows large number of entries totalling 42 MB.

 

I ran both DBCC an the script in the past too, and it always showed nothing in the results, that means that buffers were really clean. The reason why I am running this is for benchmarking of existing and new application.

 

Does anybody have any idea, suggestions, how to troubleshoot this issue ? I already closed all connections to this database, but rebooting the server is not an option since other people are also working on it.

 

Thanks

View Replies !
Troubleshooting SQL Buffer Cache Hit Ratio
This issue just happen recently. The buffer cache ratio went from > 90%to 50% and has slowly been climbing back up over 8 hours or so. Itscurrently @ 76%. Is this something I should take action on immediately?It seems to be coming back to normal...

View Replies !
Estimation The Buffer Cache Hit Ratio
HiI have trouble with MSSQL2000 SP4 (without any hotfixes). During last twoweeks it start works anormally. After last optimalization (about few monthsago) it works good (fast, without blocks). Its buffer cache hit ratio wasabout 99.7-99.8. Last day it starts work slow, there was many blocks anddedlocks. There are no any queries, jobs and applications was added. Nowbuffer cache hit ratio oscilate about 95-98. I try update statistics andreindex some hard used tables, but there is no effect or effect is weryshort (after few hours problem return).Mayby somene know what it could be?Is it possible to estimate how each table (using DBCC SHOW_STATISTICS orDBCC SHOWCONTIG or others) how the table affect on total buffer cache hitratio?Marek---www.programowanieobiektowe.pl

View Replies !
Buffer Cache Hit Ratio...how To Measure?
Does anyone know how to measure the buffer cache hit ratio? I have been reading a lot about it but can't find this measurement in Performance Monitor.

Thanks

View Replies !
100% Buffer Cache Hit Ratio Not Always Optimal?
I am wondering if 100% buffer cache hit ratio is considered not good in general?

Are there instances that it is actually bad and can contribute to server performance degradation?

Any thoughts on the topic most welcome :)


--------------------
keeping it simple...

View Replies !
Performance Monitor -- Buffer Cache Object
Hello,
Does the performance counter Buffer cache object refer to Data cache and procedure cache or just refers to Data cache???

I was of the opinion that Buffer cache means data cache and Plan cache means procedure cache. Can someone throw some light???

Regards

Jaideep

View Replies !
Error: The Buffer Manager Failed To Create A New Buffer Type
Hi

I have a master package that executes a series of sub packages run from a SQL Agent job. One of those sub packages has been stable for a week, running at least once per day, but it just failed despite having been run once already today with the same set of input data.

There were a series of errors showing in the event log for the Execute Package Task starting with "Buffer Type 15 had a size of 0 bytes.", then "The buffer manager failed to create a new buffer type.", then "The Data Flow task cannot register a buffer type. The type had 32 columns and was for execution tree 3.", then "The layout failed validation." and finally "Error 0xC0012050 while loading package file "C:[Package].dtsx". Package failed validation from the ExecutePackage task. The package cannot run.".

SQLIS.com reports the constant for the error code as DTS_E_REMOTEPACKAGEVALIDATION ( http://wiki.sqlis.com/default.aspx/SQLISWiki/0xC0012050.html ).

I then ran the package on my dev machine in BIDS and it worked fine, so I re-ran the job on the server and this time that package executed ok, but another one fell over but did not put anything in the event log.

Does any one have any idea what happened?

TIA . . . Ed

View Replies !
Unable To Connect To SQL Database 'MySite-Cache' For Cache Dependency Polling.
 Im getting this error when trying to set up a cache dependency...are there any special permissions etc?From CS:SqlCacheDependency dep = new SqlCacheDependency("MySite-Cache", "Products");Cache.Insert("Products", de.GetAllProductsList(), dep); From connectionStrings.config:<add name="SiteDB"         connectionString="Data Source=localhost,[port]SQLEXPRESS;Integrated Security=true;User Instance=true; AttachDBFileName=|DataDirectory|ASPNETDB.MDF" providerName="System.Data.SqlClient" />Also tried this using my machinename<add name="SiteDB"         connectionString="Data
Source=<machinename>,[port]SQLEXPRESS;Integrated Security=true;User
Instance=true; AttachDBFileName=|DataDirectory|ASPNETDB.MDF"
providerName="System.Data.SqlClient" /> From web.config:       <caching>          <sqlCacheDependency enabled="true" pollTime="10000">              <databases>                  <add name="MySite-Cache" connectionStringName="SiteDB" pollTime="2000"/>              </databases>          </sqlCacheDependency>                </caching> EDIT: So making progress I can't seem to get the table registered for cache dependency:The sample i have says"aspnet_regsql.exe -E -S .SqlExpress -d aspnetdb -t Customers -et"and the command line response is "Enabling the table for SQL cache dependency..An error has happened.  Details of the exception:The table 'Customers' cannot be found in the database."Where does this "Customers" table come from? There is obviously not an application specific "Customers" table in aspnetdb I'm confused probably more by the example than anything.... 

View Replies !
Warning - Kept Reference To Buffer - What Can Be Done About These Buffer Warnings?
Good day everyone,

I'm experiencing a completely random warning from any given row count component within any given data flow task. It occurs sporadically. Whilst distracting, I don't see any adverse effects to the data after the packages complete. Can someone weigh in on this warning and let me know if it is indeed benign or what I maybe able to do to fix it?

Here's the warning:

"A call to the ProcessInput method for input 75997 on component "CNT Rows sent for STG table" (75995) unexpectedly kept a reference to the buffer it was passed. The refcount on that buffer was 4 before the call, and 5 after the call returned."

Thanks,

Langston

View Replies !
Sys.dm_os_memory_cache_counters Vs. SQL Server:Plan Cache Cache
Hi guys,

I am looking at the plan caches/cached pages from the perspective of
sys.dm_os_memory_cache_counters and sql serverlan Cache - Cache Pages

For the first one I am using

select (sum(single_pages_kb) + sum(multi_pages_kb) )
from sys.dm_os_memory_cache_counters
where type = 'CACHESTORE_SQLCP' or type = 'CACHESTORE_OBJCP'
a slight change from a query in
http://blogs.msdn.com/sqlprogrammability/

For the second just perfmon.

The first one gives me a count of about 670,000 pages only for the object and query cache and the second one gives me a total of about 100,000 pages for five type of caches including object and query.

If I am using the query from http://blogs.msdn.com/sqlprogrammability/ to determin the plan cache size

select (sum(single_pages_kb) + sum(multi_pages_kb) ) * 8 / (1024.0 * 1024.0) as plan_cache_in_GB
from sys.dm_os_memory_cache_counters
where type = 'CACHESTORE_SQLCP' or type = 'CACHESTORE_OBJCP'

it gives me about 5 GB when in fact my SQL Server it can access only max 2GB with Total and Target Server Memory at about 1.5 GB.

Does anyone have any idea what is going on?

View Replies !
HELP - Cache Hit Ratio Is 0.0, Cache Flushes Non-zero
I find my SQL Server 6.5 with a cache hit ratio of 0.0, yet the cache flushes value is non-zero. Below are output from dbcc perfmon and dbcc memusage.

The machine is a Dell 6100 with 4 x 200 Mhz Pentium Pro CPUs, 2 GB RAM and about 45 GB RAID 5 disk. I have given SQL Server 500,000 2k pages for memory. Only SQL Server and NT run on this box - no other applications.


Statistic Value
-------------------------------- ------------------------
Log Flush Requests 696082.0
Log Logical Page IO 935074.0
Log Physical IO 716157.0
Log Flush Average 0.971968
Log Logical IO Average 1.30568
Batch Writes 0.0
Batch Average Size 0.0
Batch Max Size 0.0
Page Reads 0.0
Single Page Writes 0.0
Reads Outstanding 0.0
Writes Outstanding 0.0
Transactions 413934.0
Transactions/Log Write 0.577993

(14 row(s) affected)

Statistic Value
-------------------------------- ------------------------
Cache Hit Ratio 0.0
Cache Flushes 241.0
Free Page Scan (Avg) 87.3255
Free Page Scan (Max) 1.0
Min Free Buffers 25000.0
Cache Size 448517.0
Free Buffers 26067.0

(7 row(s) affected)

Statistic Value
-------------------------------- ------------------------
Network Reads 126.0
Network Writes 477402.0
Command Queue Length 0.0
Max Command Queue Length 0.0
Worker Threads 32.0
Max Worker Threads 33.0
Network Threads 0.0
Max Network Threads 0.0

(8 row(s) affected)

Statistic Value
-------------------------------- ------------------------
RA Pages Found in Cache 0.0
RA Pages Placed in Cache 0.0
RA Physical IO 0.0
Used Slots 0.0

(4 row(s) affected)

DBCC execution completed. If DBCC printed error messages, see your System Administrator.
Memory Usage:


Meg. 2K Blks Bytes

Configured Memory: 976.56 500000 1024000000
Code size: 2.45 1254 2568192
Static Structures: 1.33 683 1398304
Locks: 1.72 879 1800000
Open Objects: 0.24 122 248000
Open Databases: 0.03 17 32880
User Context Areas: 3.82 1954 4001032
Page Cache: 917.07 469542 961620640
Proc Headers: 2.71 1390 2845284
Proc Cache Bufs: 45.55 23323 47765504

View Replies !
How Do I Write Multiple Pipeline Buffer To Multiple Targets Based On A Calculated Value In The Pipeline Buffer
The scenario is as follows: I have a source with many rows. Each row has a column called max_qty_value. I need to perform a calculation using another column called qty. This calculation is something similar to dividing qty/(ceiling) max_qty_value. Once I have that number I need to write an additional duplicate row for each value from the prior calculation performed. For example, 15/4 = 4. I need to write 4 rows to the same target table as in line information for a purchase order.

 

The multicast transform appears to only support fixed and/or predetermined outputs. How do I design this logic in SSIS to write out dynamic number of rows to a target table.

 

Any ideas would be greatly appreciated.

 

thanks

John

View Replies !
Cache Hit Ratio Vs Buffered Cache Hit Ratio
On Microsoft performance monitor, what is the difference between SQL Server Cache Manager: Cache Hit Ratio and SQL
Server Buffer Manager: Buffer Cache Hit Ratio? We have a production server where the buffer cache hit ratio is
consistently at 99%, which is normal. However, the cache hit ratio is 73%. What is the difference between the two
hit ratios, and why would we have such a significant difference between the two?

Any help or advice would be much appreciated.

View Replies !
SQL Buffer Size
Hi thereAnybody know how to increase the MS SQL server buffer size?I get an error when trying so insert some pictures as OLE objects. Whentransfering to the server i get an error, that the buffer sizes needs tobe increased.RegardsRudi W.

View Replies !
Buffer Problem
Hi,

We upgraded our applications from 7.0 server to win 2000, sql server 2000 sp2 machine.

While running the same batch job that we used to run on the old NT server without any problem, job failed with the following message

'Msg 845, Sev 17: Time-out occurred while waiting for buffer latch type 3 for page (1:8200), database ID 2. [SQLSTATE 42000]'.

Can someone tell me what's going on? This new server is supposed to be much more powerful than the old server.

What value should I monitor for the new server to prevent this timeout?

-Shaili

View Replies !
Buffer Overflow In DTS
I'm having a problem importing a text file into a SQL db using DTS. I have to transform some of the data that is being imported so I think Bulk import is out of the question.

Everything works fine until a hit a row that contains more than 255 characters in one cell. Once it encounters that row, it fires this error:

"Error at source for row number 9.Errors encountered so far in this task :1
General Error: -2147217887(80040E21)
Data for Source Column 3('Col3') is too large for the specified buffer size."

I found a entry in the MS KnowledgeBase that addresses the symptom but the workaround doesn't fix it:

http://support.microsoft.com/support/kb/articles/Q281/5/17.ASP?LN=EN-US&SD=tech&FR=0&qry=DTS%20buffer&rnk=3&src=DHCS_MSPSS_tech_SRCH&SPR=SQL

Anyone have any ideas.....

View Replies !
Buffer Error
I have a win98 machine that has a sql program on it that inserts phone data into a sql table for report purpose. just built new sql server and data insertion was fine until we got slammed. when it is busy and it trys to insert a bunch of data we get a "recieved buffer error" on the 98 machine. any ideas why or how to fix this

View Replies !
Buffer Is Full
 
All,
My weekly loading is failed and here is the error message I got. Could someone kindly point me what is the problem and how to detail with it?
 
Thanks
 
Error: 0xC0047012 at Fact_ResidentService, DTS.Pipeline: A buffer failed while allocating 63936 bytes.
Error: 0xC0047011 at Fact_ResidentService, DTS.Pipeline: The system reports 43 percent memory load. There are 4227104768 bytes of physical memory with 2378113024 bytes free. There are 8796092891136 bytes of virtual memory with 8787211939840 bytes free. The paging file has 10300792832 bytes with 14786560 bytes free.
Error: 0xC0047022 at Fact_ResidentService, DTS.Pipeline: The ProcessInput method on component "Union All 1" (3629) failed with error code 0x8007000E. The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running.
Error: 0xC02020C4 at Fact_ResidentService, From_Basis [16]: The attempt to add a row to the Data Flow task buffer failed with error code 0xC0047020.
Error: 0xC0047038 at Fact_ResidentService, DTS.Pipeline: The PrimeOutput method on component "From_Basis" (16) returned error code 0xC02020C4.  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.
Error: 0xC0047021 at Fact_ResidentService, DTS.Pipeline: Thread "WorkThread0" has exited with error code 0x8007000E.
Error: 0xC0047021 at Fact_ResidentService, DTS.Pipeline: Thread "SourceThread1" has exited with error code 0xC0047038.
Error: 0xC0047039 at Fact_ResidentService, DTS.Pipeline: Thread "WorkThread2" received a shutdown signal and is terminating. The user requested a shutdown, or an error in another thread is causing the pipeline to shutdown.

View Replies !
How To Set Integer Value In Buffer
I am trying to set a decimal value to the pipelinecolumn buffer, but it doesnt get set, and the value is NULL.

Here is the portion of the code of what I am trying to do:

if (columnInfos[x].colName.EndsWith("_CRC"))

{

int a;

a_cmp tst = new a_cmp();

a= tst.a_crc32(inputbufferstream); this function returns a integer value



buffer.SetDecimal(colInfo.bufferColumnIndex, Convert.ToDecimal(a));

}

Please let me know how to set a decimal value in the buffer.

 

View Replies !
Buffer Exception
When running a package created on my local machine i get no errors at all but when i try to run the same package on the server i get an error specifying Microsoft.SqlServer.Dts.Pipeline.DoesNotFitBufferException: The value is too large to fit in the column data area of the buffer.

I have tried changing the defaultbuffersize of the data flow task but this makes no difference. I think that a buffer size for a particular column is being exceed but i cannot find anywhere to set this property.

Has anyone else struck this error?

View Replies !
No Buffer Space Available
First this isn't really related to integration services, but it seemed the best place to ask.

I have already done some research online, but I'm having a hard time nailing down my problem.  It seems that this usually relates to TCP stack overflow, usually tied to JDBC, based on my research.  However...

I am inserting several tables in sequence from a linked server (connecting to a PostgreSQL database) and I can run the process without a problem usually.  Then I got the following error message repeated for each table yesterday afternoon.

OLE DB provider "MSDASQL" for linked server "[LinkedServerName]" returned message "[Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed".

OLE DB provider "MSDASQL" for linked server "[LinkedServerName" returned message "could not connect to server: No buffer space available (0x00002747/10055)

Is the server running on host "[LinkedServerHost]" and accepting
TCP/IP connections on port 5432?

I don't know if it was a cause or just an effect also.  Someone else was running a new Reporting Services report that may have been bloated in design.

Just wanted to see if anyone has dealt with this before and has any insight.

Thanks,
Hugh

View Replies !
Why Are Buffer Locked...
We had a package fail when trying to get 3 buffers. I also saw another message saying "18430 buffers were considered and 18430 were locked. "
 
1. Why are buffers locked in SSIS
2. How can i reduce the number of locked buffers.
 
This one in question was a very large lookup.
 
Thanks
Glenn

View Replies !
Can't Get At First Row Of Input Buffer...why?!
Hi

A script component receives some input. But I just can't get at the first row??

Basically, if i use the NextRow method in the in the Do statement, then it advances the row collection to the second row before it gets into the code inside the loop?? BUT, if I use the EndOfRowset property to define my loop then I get an error:

[PipelineBuffer has encountered an invalid row index value]

I'm guessing this means...I have to call NextRow before i access the data in the collection? But thats retarted because then I miss the first row?? what? What am I missing??

This is the code which works but I miss the first row:

Public Overrides Sub Input0_ProcessInputRow(ByVal Row As Input0Buffer)
Dim strConcept As String

Do While Row.NextRow()


strConcept = Row.concept

updateDb(strConcept)

Loop
End Sub

This is the code which throws the invalid row index error:

Public Overrides Sub Input0_ProcessInputRow(ByVal Row As Input0Buffer)
Dim strConcept As String

Do While Not Row.EndOfRowSet()


strConcept = Row.concept

updateDb(strConcept)

Row.NextRow()

Loop
End Sub

I've put some try catches in there an the error happens on the line which calls Row.concept....?

Can anyone help, it must be something I'm messing up

thanks!!

andy

View Replies !
The Buffer Is Insufficient
Hi all,

I have a strange problem that I need to solve as soon as possible.
I have created two CLR UDTs called point and point_list. Each record of a point_list consists of a list of points. I created a CLR stored procedure which reads some raw data and updates the point_list records.
When I execute the stored procedure the following error appears :

System.Data.SqlTypes.SqlTypeException: The buffer is insufficient. Read or write operation failed.
System.Data.SqlTypes.SqlTypeException:
at System.Data.SqlTypes.SqlBytes.Write(Int64 offset, Byte[] buffer, Int32 offsetInBuffer, Int32 count)
at System.Data.SqlTypes.StreamOnSqlBytes.Write(Byte[] buffer, Int32 offset, Int32 count)
at System.IO.BinaryWriter.Write(Char ch) etc ...


Does anybody know what should I do ?
Thanks!

View Replies !
Help On Buffer Latch Timeout
Time out occurred while waiting for buffer latch type 2,bp 0x18b7d40, page 1:11558916), stat 0xb, object ID 9:1842105603:2, EC 0x5862D9C8 : 0, waittime 300. Not continuing to wait.


What does this mean any reason and fix for it..?

Thanks

View Replies !
Too Large For The Specified Buffer Size
Hi

I've been searching this site and the Web for info on an error message I get when importing from Access 2003 into SQL Server 2000.

'Data for Source Column 3('Col3') is too large for the specified buffer size'

A memo field in Access is larger than 255.

I have followed advice about putting the field to the first column. This doesn't work - the error just returns the new column number. In fact, I've tried just importing the first column - no good.

I am wary about making Registry changes as comments on the Web say this doesn't work either.

Does anybody have the solution for this.

Paul

View Replies !
How To Flush The Buffer To Trc File
I want to trace the user logins by using a stored procedure. This script (sp_login_trace) is created by the SQL Profiler tool. (Once this procedure works well, I will use sp_procoption to run it automatically everytime the SQL Server startup.)

After I successfully created sp_login_trace, I run it (exec sp_login_trace). The trace process is started and TraceID is 1. (I use select * from ::fn_trace_getinfo(default) to verify it). However the file size of login_trace.trc is always 0 even after I use Query Ananlysis or Eneterprise manager to let some users to login into the SQL Server instance. (when I use SQL Profiler to start a trace, the trace file size will increase along with users continaully login in). At that time if I use SQL Profiler to open the login_trace.trc file, the system will give me an error message: No data since Empty File.

After I stop and delete the trace process, I find that the file size of login_trace.trc becomes 128K and I can see the login records caught by sp_login_trace if I use SQL Profiler to open this file again.

How can I flush the buffer to trc file frequently without need of stopping trace process?

Thanks for helps in advance.

Leon

View Replies !
MSG 845, Buffer Latch Type 2
I have been looking at Books Online and I'm trying to figure out how I can resolve this error.

MSG 845, Level 17, State 1
Time out occured while waiting for buffer latch type 2 for page.....


Thanks..

View Replies !
Buffer Error !! NEED HELP FROM SQL GURU
Upon running DTS manually to transfer data from Excel into SQL Server, I
get the error:

-----------------------------ERROR OUPTUT ------------------------------------
Error at Source for Row number 264. Errors encountered so far in this task: 1. General error -2147217887 (80040E21).
Data for source column 3 ('Value') is too large for the specified buffer size.
---------------------------END ERROR OUTPUT----------------------------------

*** 'Value' is varchar(4000); largest having length of 1000.
*** The network packet size is 4096.

?? AM I SUPPOSED TO CHANGE THE BUFFER SIZE??

Your kind help is greatly appreciated
Thanks
Ziggy

View Replies !
Output Buffer Remove Row?
I am using a script component to create the output buffer dynamically.  I use the Outputbuffer.AddRow() call.  I then set all the fields I want, and its added to the output and later inserted into the database.  If a field value fails it causes an error, but the record is partially inserted upto the point where the set field command caused the error.  So if I set 10 fields, and it fails on field 5 it inserts data for the 5 fields that worked and nulls into the others. 

As a result I have a try catch clause, and if it fails I want to cancell the addition of the new row.  Is there a command like RemoveRow(), rollback, etc that can be used to not insert the record in error?

Sample code..

Try

PaymentOutputBuffer.AddRow()

PaymentOutputBuffer.Sequence = pi + 1

PaymentOutputBuffer.RecordID = Row.RecordID

PaymentOutputBuffer.PaymentMethod = PaymentArray(pi)

Catch e As Exception

PaymentErrorOutputBuffer.removecurrentrow(??)

End Try

View Replies !
Overflow The Disk I/O Buffer
Hello,

I am getting "overflow the disk I/O buffer" in my SSIS, and what's weird is that when I construct the same SSIS in a new package, it works perfectly.  I almost want to believe that it could be a bug.  Some days when I import the files, it works fine, but some days it errors out with this error on the last column.  Is there some setting with CR/LF or LF that I have to pay attention to avoid this type of random error?

 

Thanks for your help!

-Lawrence

View Replies !
Difference In Command Buffer Between 32-bit And 64-bit
We have a SQL2005 32-bit server in development and a 64-bit SQL2005 server in production. Both are running SP2. I have an update statement that is actually being called from an ASP page, but if I paste the query into Query Analyzer I see the same problem, which is:

If the command is 250 characters or longer, I get an error against the 32-bit server. It succeeds against the production server. The command is an update statement and, because of the way it is generated, there can be numerous embedded spaces between keywords, columns names, etc. For instance, this code will fail against 32-bit but succeed against 64-bit:

UPDATE    ourTable001SET      vchReturnAddress = 'ABCDEF', vchEntity01Name = 'ABCDEF', vchAddress1 = 'ABCDEF', vchAddress2 = 'ABCDEF, vchCity = 'ABCDEF',                       chState = 'MA'WHERE     recordID = 47 AND vchEntity01ID = '0009115'

All I have to do is remove one space or newline and it will work. Other than the bit-ness of the servers, the only difference is that the dev server was patched with the original SP2 and then hotfixed (9.0.3050 is the reported version) while the production server used the updated SP2 (9.0.3042).

The error returned is: String or binary data would be truncated
so I'm guessing the last character is getting lost. Using SQL Profiler, everything is there, so I don't think it is a client-side issue.

Ideas?

View Replies !
TDS Buffer Length Too Large
Getting below  sort of error message when running a simple select to a table from Query analyser 2000 to a SQLServer 2000 running with SP4 on different sort of times.

1)
[Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionRead (InvalidParam()).

Server: Msg 11, Level 16, State 1, Line 0

General network error. Check your network documentation.

Connection Broken

2) 

[Microsoft][ODBC SQL Server Driver]Protocol error in TDS stream

[Microsoft][ODBC SQL Server Driver]TDS buffer length too large

[Microsoft][ODBC SQL Server Driver]Protocol error in TDS stream

3) 

[Microsoft][ODBC SQL Server Driver]Unknown token received from SQL Server

[Microsoft][ODBC SQL Server Driver]Invalid cursor state

[Microsoft][ODBC SQL Server Driver]Unknown token received from SQL Server

 Any one faced this error? Any advise please,

View Replies !
How To Flush Buffer To .sdf File By OLE DB?
Could anybody help me on how to do buffer flush before program exit?
I am using OLE DB to insert record to SQL CE database, but cannot control data commit, each time if I exit too quick, then all of inserted record cannot stored into database .sdf file.  Thanks a lot!
 

View Replies !
Buffer Size Not Specified Error
Error: "The specified buffer size is not valid. [buffer size specified = 0]

Hello, im very new to SQL 2005 everywhere but looked like it could do the job for what i needed:

Im working on a c# (.net 2.0) project and loaded data

(one column from one table, 800 rows, text, no greater than 80characters in length) 

from an access db into a data set, then lnserted the data in SQLce, great it works fab!

but as soon as I select another field(text, <=10)  from the access db, and try to insert it into sql i get the error...

what have i missed???

View Replies !
Execute Query With Buffer.
Ramesh writes "Hi,

Is there any possibility to execute a query in sql server 2000 without keep / using buffer.

Thanks"

View Replies !
Insufficient Buffer Zone
hello again,

This is another pending issue.

It is another package accessing the same database of the same system ("Sage" for commercial and accounting operations).

When run, it gives an error message, as following (also translated from french):
Simba ODBC Driver[CBase]: Very Small/Insufficient Buffer Zone. Data is truncated.

it seems there is a bug in the database, as when we run the same package on another database, it runs successfully.

It may be possible that the database needs a maintenance. Is it possible to advise how to do it, if it is so?
May you help in helping resolve this issue?
thank you in advance.

Leïla
P.S: How is it possible to attach a file?

View Replies !
SQL Cache Vs Cache
I read about the SQL 2005 Buffer Cache and the .NET cache.I tried it on about 8000 users query. Both are fast....SQL 2005 being a little faster (probably due to I was sorting the .NET Cache).Any comments?

View Replies !
Job Cache
Hi there,
We have cluster server and we are using sql server 7, everything was working fine on node a and when we move to node b and run the job from the jobs it gives the error message:

Error 22022:SQLServerAgent Error: job ox7bb7d7bf23b8974d8ea8f15e43e854cf
does not exist in the job cache

Can anyone help on this.

Thanks in advance.

Madhu.

View Replies !
Cache
In Sybase, I can bind a database or table to cache, can I do the same
on SQL 7.0?

View Replies !
How To Cache ?
Hi..

I don't know this is possible or not.

for example.. I have a blog site..
my entry links are like that
blog.asp?ID=33
blog.asp?ID=36

36 points "select * tbl where id=36"

And approximately BLOG #36 has 400 views everyday..
content is same.It never change..

Everyday my application performs "select * tbl where id=36"
with direct ASP or Stored Procedure..

Do you have any solution about this ?

How to improve performance..

Just imagine, If entry #36 had 2.000 views everyday ?

just example..

Of course the less perform query, the more performance..

View Replies !
Job Cache
Hello!

When I create new job, I get a message "Job cache 97% full"
What should I do? And what IS a job cache?

Thanks!

Makkaramestari

View Replies !
Error 845: Buffer Latch Timeout
More of an FYI in case anyone has run into this problem...We were running into the infamous "timeout on buffer latch type 3" error andwas caused by the autogrow in tempdb. Apparently when SQL Server is gettinghit pretty hard and tempdb is taking a timeout to auto-grow, SQL servercraps its pants and times-out. This combined with the fact that tempdbshrinks down to its last set size after a restart, you'll hit this errorpretty regularly after a SQL Server bounce. (If tempdb auto-grow from a set1GB to 10GB, after the restart tempdb will be 1GB again. - Just how gay isthat?) Anyway, we just manually set tempdb to a respectable level to resolvethe problem.

View Replies !
Changing The Command Buffer Size?
Is it possible to change the command buffer size??

I need to export data on demand to an excel spreadsheet via a stored procedure. The only way I know how to do this is through a bulk copy command; but my query is much to big for the buffer....

Thanks!!!

View Replies !
Cleaning Occupied Buffer Pool
Hi

this is pankaj here, i am facing a problem in sql server
the problem is that if i am runnig a long query/stored proc that takes time near about 8 - 10 min then the occupied memory for buffer pool is not releasing by sql srv .
the memory option of my sql srv instance is dynamically allocate memory.
b/c of this after 1-1.5 hours most of my system memory occupies by sql srv and my system goes slow down.
if i want to release that mem so i have stop and restart sql srv manually so it works proper for next same hours.
so please provide me solutin for this ....
waiting for u r kind reply

View Replies !
Character String Buffer Too Small
I’m running into a problem when I try to convert some of our clob fields to character strings to display on a Powebuilder report. I’m using the function dbms_lob to convert, as in:

Select dbms_lob.substr(d.notes,32767,1) from myreport d


32,767 is the maximum string size this function can handle, and the sql statement is crashing with a “character string buffer too small” error when it encounters a really big report.

How can I get around this?

View Replies !

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