SQL Server Assertion: File: &<recbase.cpp&>, Line=1374
May 19, 2004
Checkdb reported errors against 1 index on 1 table in a database. When I try and fix the index, I get the message 'SQL Server Assertion: File: <recbase.cpp>, line=1374 (s sqldmp file is created). When I tried dropping the index and recreating, this also caused the Failed Assertion message. At this point I could not select any records from the database or copy the database to another source. Everything I tried produced the same error message. I was able to rename the table and recreate the database from another server.
After rebooting the machine, I was able to add an index to the renamed table. I can't find any information to indicate what my problem might be.
Has anyone else seen this behaviour and if so what was the resolution?
This file is generated by Microsoft SQL Server version 9.00.2047.00 upon detection of fatal unexpected error. Please return this file, the query or program that produced the bugcheck, the database and the error log, and any other pertinent information with a Service Request.
Computer type is AT/AT COMPATIBLE. Bios Version is DELL - 1 Phoenix ROM BIOS PLUS Version 1.10 1.1.0 Current time is 17:27:14 12/25/06. 4 Intel x86 level 6, 1995 Mhz processor (s). Windows NT 5.2 Build 3790 CSD Service Pack 1.
Memory MemoryLoad = 52% Total Physical = 4094 MB Available Physical = 1963 MB Total Page File = 5973 MB Available Page File = 3757 MB Total Virtual = 2047 MB Available Virtual = 251 MB **Dump thread - spid = 63, PSS = 0x713695C0, EC = 0x713695C8 ***Stack Dump being sent to F:Program FilesMicrosoft SQL ServerMSSQL.1MSSQLLOGSQLDump1698.txt * ******************************************************************************* * * BEGIN STACK DUMP: * 12/25/06 17:27:14 spid 63 * * Location: lckmgr.cpp:10846 * Expression: GetLocalLockPartition () == xactLockInfo->GetLocalLockPartition () * SPID: 63 * Process ID: 5464 * * Input Buffer 404 bytes - * 3 ? [SQL SCRIPT OVER HERE]
Anyone else seen this specific error message before:
quote:
SQL Server Assertion: File: <lckmgr.cpp>, line=10850 Failed Assertion = 'GetLocalLockPartition () == xactLockInfo->GetLocalLockPartition ()'. This error may be timing-related. If the error persists after rerunning the statement, use DBCC CHECKDB to check the database for structural integrity, or restart the server to ensure in-memory data structures are not corrupted.
google gets several hits for a different line number, and different type of lock.
We've had 3 of these Monday, in a 1h20min period. This first raised it's head last friday (3 on friday, 2 on Saturday). All the same line number.
We failed over, ran DBCC Checkdb no_infomsgs - reported no problems. restarted SQL on passive node (previously active node that had erported the assertion failures) Then we had assertion failure on new active node. ran DBCC CHECKDB , and it also report 0 errors, 0 consistency errors.
Today (Tuesday 26th june) we've had many of these failures - in excess of 20, this morning.
As yet, we can't detect any specific issues in terms of user impact/website. Our concern is whether we are going to have data inconsistencies at some point.... and that locking , if failing, may be causing inaccurate results (depending on the specific locks that fail) - for example stock levels, causing overselling.
Using 'dbghelp.dll' version '4.0.5' *Dump thread - spid = 112, PSS = 0x49b051f0, EC = 0x49b05520 *Stack Dump being sent to D:Program FilesMicrosoft SQL ServerMSSQLlogSQLDump0576.txt
Using 'dbghelp.dll' version '4.0.5' *Dump thread - spid = 112, PSS = 0x49b051f0, EC = 0x49b05520 *Stack Dump being sent to D:Program FilesMicrosoft SQL ServerMSSQLlogSQLDump0576.txt
Hi, for some AP issue, the file I upload must be without the line feed/carriage return in the last line. for example:
original fixed-length file (exported from SSIS) line NO DATA 1 AA123456 50 60 2 BB123456 30 40 3 CC123456 80 90 4 <-- with line feed/carriage return in the last line
The file format that AP request. The file only has 3 records, so it should end in the third line. line NO DATA 1 AA123456 50 60 2 BB123456 30 40 3 CC123456 80 90
Should I use script component to do it ? I am new for VB . Anyone would help me ?
We have a browser based application that is doing some updates on the database. This app was earlier built to run on SQL server 2000 and we are in the process of migrating to SQL server 2005. Until now the application was seamlessly working on the new SQL server 2005 database. I got the following error message on the web when an item was clicked on the web that triggered a set of database updated through our app server. This is first time i am seeing anything like this.
--------------------------- Windows Internet Explorer --------------------------- Unable to delete the selected items. Warning: Fatal error 3624 occurred at Feb 5 2007 2:34PM. Note the error and time, and contact your system administrator.
A severe error occurred on the current command. The results, if any, should be discarded.
Location: IndexRowScanner.cpp:370 Expression: m_sizeOfBuffer > currentOffset + colLen SPID: 54 Process ID: 2712 --------------------------- OK ---------------------------
In the beginnning we thought it may be some thing in the app server or the CLR. But when I checked the process ID in the task manager it turned out to be SQL server 2005 process. the SPID was the application servers connection to the database.
This is what I got when i ran the profiler.
SQL Server Assertion: File: <IndexRowScanner.cpp>, line=370 Failed Assertion = 'm_sizeOfBuffer > currentOffset + colLen'. This error may be timing-related. If the error persists after rerunning the statement, use DBCC CHECKDB to check the database for structural integrity, or restart the server to ensure in-memory data structures are not corrupted.
Warning: Fatal error 3624 occurred at Feb 5 2007 3:00PM. Note the error and time, and contact your system administrator.
2007-02-05 15:00:23.04 spid54 Error: 3624, Severity: 20, State: 1. 2007-02-05 15:00:23.04 spid54 A system assertion check has failed. Check the SQL Server error log for details
Hi, I am getting many instances of the following error, and I cannot find any documention on it, or how to remedy. Any help/suggestions would be GREATLY appreciated. Thanks in advance - jason
SQL Server Assertion: File: <xcbmgr.cpp>, line=1299 Failed Assertion = 'pss->IsXcbLocked ()'. Dump thread - spid = 58, PSS = 0x2e637158, EC = 0x2e637308 Stack Dump being sent to C:MSSQL7logSQL00115.dmp ************************************************** ***************************** * * BEGIN STACK DUMP: * 10/04/00 16:39:54 spid 58 * * Input Buffer 42 bytes - * s e l e c t u i d = N E W I D ( ) * ************************************************** *****************************
Since we started using another sales program (1C Enterprise), SQL Server started "crashing" (connection between our program and SQL Server breaks) with this assertion error: Event ID: 17066 SQL Server Assertion: File: <"xrange.cpp">, line=399 Failed Assertion = '0 == pxteRangeHrow->m_pxteFetch'. This error may be timing-related. If the error persists after rerunning the statement, use DBCC CHECKDB to check the database for structural integrity, or restart the server to ensure in-memory data structures are not corrupted.
After this error DBCC CHECKDB doesn't find any priblems.
I can't find what exactly causes it, sometimes we get it only once a week, but today I got it four times in a row.
We had the same error on all versions of SQL Server 2005, SQL Server SP1, SQL Server SP1+Hot fixes, etc.
select @@version Microsoft SQL Server 2005 - 9.00.3042.00 (X64) Feb 10 2007 00:59:02 Copyright (c) 1988-2005 Microsoft Corporation Standard Edition (64-bit) on Windows NT 5.2 (Build 3790: Service Pack 1)
My client will be receiving a .dbf file which needs to be uploadedinto a sql server database table (as an append) every week. They areNOT computer savvy and I would like to automate this process ratherthan go into enterprise manager and run data transformation.Is there any way to write a batch file or a set of command lines whichwill do this?Thanks.Monica
I'm in the process of importing a series of flat files into SQL Server. I'm using a ~ to separate the columns and the row delimiter is {CR}{LF}. One of the files has a field that contains the CRLF combination in a few places so that field is split over several rows. This is readily visible when I look at the flat file. However, when I'm importing the file, the Import and Export wizard seems to ignore them and import the files as they should with one row per record.
Hi ALL, I need to delete 1st and last lines of text from a text file in an automated process,and save the file with the same name or a different name at the same location. How is that possible?Any help is greatly appreciated. Thanks!! Sai.
I am writing a string to a text file using the below code:
DECLARE @MyText nvarchar(500) SET @MyText = 'type This is my text >> c:MyLog.txt' exec master..xp_cmdshell @MyText
What I want to know is. how do I write multiple lines to MyLog.txt without having to call out xp_cmdshell each time I want a new line in my log? Do I use newline character in @MyText like SET @MyText = 'type This is my text line 1</n>This is line2 >> c:MyLog.txt'
Hey everyone, I just signed up today as i am new to sql, and have a little problem i was hoping for some feedback.
I have a table called Nurse (see below). Nurse has an attribute called Exp_date which is the expiry date of their license. Their licenses have to be renewed every 2 years so i am trying to write an Assertion to check this (see below). unfortunaltey i am quite new to this and am not sure if it will work. I was wondering if anyone could let me know if it is wrong or if it will work. if it is wrong can i have some suggestions.
here is the Nurse table: CREATE TABLE Nurse ( Nurse_ssn varchar(12), Lic_no varchar(9), Exp_date date NOT NULL, CONSTRAINT _PK PRIMARY KEY(Nurse_ssn), );
here is my assertion to check that the license has been renewed in the last 2 years:CREATE ASSERTION expiry-constraint CHECK ( SELECT Exp_date FROM Nurse ((Sysdate - Exp_date)< 2) );
Not a specific database application; im learning from a text book and im not trying to get this to work on a system, im just doing it on paper. its a question im having trouble with.
I created a package that exports contents from a table to a flat file but all my records are being displayed in a single record. where do i configure it to where each record has its own line. the columns in the flat file are fixed.
I have a series of fixed width files, all with the same schema. I need to import the data into a SQL Server table. Each record in the flat file begins with 'D1'. The length of each record (string) is 380. There are cases where the record ends after position 193, and a new record appears in the current string beginning at position 194. So at position 194 'D' appears, and '1' appears at position 195.
In the flat file, I need to insert a line break after position 193 if position 194 = 'D' and if position 195 = '1'. I'm guessing I would do this with a Script Component Transformation. Once the file is edited, then I can bring the data into the table.
What might the script look like? If you have any suggestions, samples, or know of examples on the web you can point me to, please share.
I have a flat file with several rows of entire type in one of the rows a string comes and when it goes away to guard in the BD it falls, since I can know in that this row of the flat file the string?????
Using ADO to conect to a text format data file to gather data. File is a .dat file, tab delimited, no header row.
Got all my ducks in a row: 1) Write a schema.ini 2) Make sure the extension is not excluded in the Jet Text registry key 3) Setup the connection properly (per MSDN Scripting help)
Works nicely, except the fist line of data is missing. File contains 78 rows of data, Jet is skipping the first line every time and reporting 77 rows.
Notes: 1) Adding a blank row, as suggested in this forum, is not an option - the data files are machine generated are not to be altered by other processes. 2) I could do it the old fashion way of importing and splitting into arrays, but this is a database function and ADO should be able to handle it.
Code samples:
Code Block
adoCON.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & sPath & ";Extended Properties=""text;HDR=NO;FMT=Delimited;"";" On Error Resume Next rsSrc.Open "Select * From " & sFile, adoCON, adOpenStatic, adLockOptimistic, adCmdText sPath is a string containing the path, including the trailing sFile is a string containing the file name.
I have a flat file destination that Im sending data to, from an OLE DB data source. There are two records, but for some reason they are both going on the same line in the output. This is after setting the output to fixed width, from comma delimited.
My Integration Services creates a flat file using OLE DB Source and then a Flat File Destination. The flat file is created from data from my data source with is just a table with many rows.
Each row in my flat file .txt is appended onto each other, there are no line returns after each record. How can I put in a return after each row in my flat file that is outputted from the Flat File Destination component in conjunction with the properties in my Flat File Connection Manager. What am I missing here in order to ensure each row from my table creates a carriage return in my .txt flat file?
Hi All,I have started getting Assertion Errors in SQL.It appears when I process a cube (Most of the time)Other SQL statements, usually with a join or 6 do the same thing.Whaving a scratch around google, I noticed the most people who getthese errors are using SATA drives. Either RAID or not.Surprise, I am using SATA in RAID 1.Is this a common thing with SATA? I can't go to the pwers that be andsay I need a couple large SCSI drives because I _think_ it's theSATA's.Another very odd thing that happened thismorning was I copied the mdfand ldf files off my machine (About 70GB) and onto the server. attachedthem and SQL was happy.Select Count(*) from aview gave me the count I was expecting.Select * From aview returned no rows. most of the time.I thought I was going mad. F5 works, then it doesn't then it does then,you get the point.Backup and restore seemed better until the errors below started...HELP!!!!ThanksCheers,Crispin17066 :SQL Server Assertion: File:<q:SPHINXNTDBMSstorengdrsinclude ecord.inl>, line=1447Failed Assertion = 'm_SizeRec > 0 && m_SizeRec <= MAXDATAROW'.
I am playing around trying to develop a thing in SSIS that would be like an assertion elsewhere -- e.g., test a precondition and raise an exception if the precondition isn't true. I'm posting this to see if folks have already done something like this or have suggestions how to go about it in a semi-general way that could be re-used.
My toy thingamabob right now has the goal of comparing the grand totals for a numeric field in two xml files and raising an exception if they aren't equal. I've implemented it as two XML tasks, each of which uses XSLT to compute the total and post it as a string into a variable, then a script task to convert the string variables into numbers, compare them, and take appropriate action.
I need to execute xp_cmdshell in a trigger and pass a command lineparameter to the .exe programi.e. I have a .exe program c:program filessavedata.exeIn the trigger I have a parameter @Id bigintI need to pass the parameter @Id to savedata.exeIn the trigger, I am tryingEXEC master..xp_cmdshell 'cmd.exe /C "c:program filessavedata.exe "'+ CAST(@Id as varchar)BUT this does not work.Can someone please help me with how to do this?Thanks,db
Hi,I have dumped a very large database from mysql (using mysqldump program)as a raw sql file. The reason was, convert this database to a MSSQLdatabase. Since mysqldump creates the file as raw sql file with thedatabase-table structures and the data in it, I thought using OSQL commandline utilities should work to out this whole database in MSSQL server.I have run this command from command line:osql -u sa -i mysqldump.sqlIt is going since yesterday. It has been almost 36 hours that it'sstarted. And in the mssql server, I see no database created yet. On thescreen of the command line, I see bunch of numbers are going in order. Iassume they are row numbers of the tables processed. But, if it is doing it,then where is it saving all this data ? I have checked the tempdb, pub db,other dbs, and I see no tables related to the database I am inserting. Willit populate it at the and of the job ? Or, am I doing something wrong here?Regards.Murtix.
I have a CSV file that I am importing via SSIS into a SQL table.On the Flat File connector, I have specified Line Feed as the row delimiter.The data flow is failing due to some of the rows having line feeds before the end of the row.Is there a way to get rid of some line feeds but not others, so that I can run the data flow successfully.
Hi, I have a data file and the contents of it are as follows
2 -- This is the header indicating the no of records in my files 1001|s1 1006|s2
The content of format file is as follows. This is to skip first column of the all the rows and get only Subs (i.e s1 and s2 )
9.0
2 1 SQLCHAR 0 100 "|" 0 ID ""
2 SQLCHAR 0 100 " " 1 Subs ""
Here is my query to get all the Subs from my data file
SELECT * FROM OPENROWSET( BULK 'datafile.txt',
FORMATFILE = 'FormatFile.fmt',
FIRSTROW = 2 ) AS a
But this query retuns only s2 where i was expeting s1 and s2. The reason being is that the firts row i.e header doesn't follow the format Can any one please let me know how to skip the first line in the data file and get the result as required
We are getting above error message while running transactional replication between two servers. Both are running SP2 (7.00.842), so I don't think the earlier SPs fix this particular error. We do replicate text columns.
I went through the troubleshooting replication guide and now am receiving the following error instead:
The process could not execute 'sp_repldone/sp_replcounters' on 'servername'.
I figure we could re-install replication, but I don't see that realistic on-going resolution.
I've Executed DBCC CHECKDB in the T-SQL in the Query Analyser, then i got results in the Grid, but i wana to store that Information Immidiatly in the Text file, useing T-SQL Script, please help any one how to write T-SQL.
i know that going into menu-Query- Results to File. i don't want to do like that.
I want to save through writing T-SQL Script
Please help any body know.... Thanks in Advance....