mars

Membership.GetUser() & MARS

I'm using asp.net membership, and need to make a call to Membership.GetUser() while I have another open SQL connection, but my code dies at that call. I have MultipleActiveResultSets=True in the connection string that is used by both my code and the Membership provider. It appears that the Membership class is ignoring the MARS part of ...

MARS vs NextResult

I rehydrate my business objects by collecting data from multiple tables, e.g., SELECT * FROM CaDataTable; SELECT * FROM NyDataTable; SELECT * FROM WaDataTable; and so on... (C# 3.5, SQL Server 2005) I have been using batches: void BatchReader() { string sql = "Select * From CaDataTable" + "Sel...

help with my MARS MIPS Simulator Code

hey, i need help. I have written this code in MARS. It is supposed to receive an integer from the user, and convert it to HEX. I've been going over it for hours and as far as i can see, it should work fine. I have only included the loop and output part of the program as this is the only part that is not working. Can someone PLEASE point ...

is it Efficient to use Mars to Update 7000 Rows?

I have a service to update/inserts 7000+ rows using MARS. Is there a better way to do this? ...

EF-Reference.Load() - There is already an open DataReader

Looks like EF Reference.Load() is not working without MARS? Is that right? ...

Is ODBC from MARS but ADO/OLEDB from VENUS?

Short question: I am finding I need to use MARS over ODBC but not over ADO/OLEDB, is that correct? Longer explanation: I just discovered my ODBC code (using "Driver={SQL Native Client}", MFC CDatabase code) needs to have MARS ("MARS_Connection=yes;") because, although I do not issue multiple SELECTs when opening a RecordSet, I do fetch...

Keyword not supported MultipleActiveResultSets

We are using a custom Membership Provider in an ASP.NET MVC application. We have been experiencing intermittent 'System.InvalidOperationException - There is already an open DataReader associated with this Command which must be closed first.' problems with the class so I decided to enabled MARS. This is the connection string in the web c...

Creating (and accessing) an array in MIPS

I'm trying to create an array in MIPS Assembly, and then add all the elements together. However, when I try to assemble the following, it says Error in read_array line 1 position 7: ".word" directive cannot appear in text segment Assemble: operation completed with errors. Here's my assembly: list: .word 3, 2, 1, 0, 1, 2 li $t0...

SQL Exception: "Impersonate Session Security Context" cannot be called in this batch because a simultaneous batch has called it

When opening a connection to SQL Server 2005 from our web app, we occasionally see this error: "Impersonate Session Security Context" cannot be called in this batch because a simultaneous batch has called it. We use MARS and connection pooling. The exception originates from the following piece of code: protected SqlConnection Open()...

reading the file name from user input in MIPS assembly

I'm writing a MIPS assembly code that will ask the user for the file name and it will produce some statistics about the content of the file. However, when I hard code the file name into a variable from the beginning it works just fine, but when I ask the user to input the file name it does not work. after some debugging, I have discove...

invalid program counter value: 0

Hello , i'm currently working with assembly language under the MIPS processor. I'm currently using MARS simulator and for reasons unknown i get the following error message after every run: Go: running try.s Error in : invalid program counter value: 0 Go: execution terminated with errors. I get this error message independent of the co...

MARS - mips simulator

Hi all, Does anyone know whether MARS (http://courses.missouristate.edu/KenVollmar/MARS/) is cycle-accurate? and if not - what is the error approximation of the total cycle-count? I need ~5% accuracy... 10x a lot, RBH ...