The MSDN text means "dont send BEGIN TRAN commands to the server yourself.". Have you assigned the transaction back to the command, before using it? There's a sample on Rollback.
mortrr
Posts
-
Rollback not working. Any ideas? -
Why could a car battery be dying?You're not saying why you actually swap the batteries. Main reasons for dead batteries: - Sulphurization = crystals on the plates. Caused by continued charging and discharging. (Battery can be regenerated) - Positive grid corrosion. Usually from overcharging. Also from heat. - Vibrations. Have you checked if the battery is discharging, and if the alternator is working as it should? - Mort
-
A VPN hijackIt's really quite simple, if you know how ip-packet are send, and how netmasks work. ;-) A network consists of a bundle of ip-addresses, bound by a netmask. If the IP's are 192.168.1.x and netmask is 255.255.255.0, all addresses from 192.168.1.1 to 192.168.1.255 are on the same network. If the netmask is 255.255.0.0, all addresses from 192.168.1.1 to 192.168.255.255 are on the same network. Now - If a computer wants to connect to something foreign, outside the "local ip-range", it will use the "default gateway". So, when your computer wants to connect to your ISP's mail-server, it sends ip-packages through your default gateway. How the package gets back, is up to the computers and routers outside you network. So, when you connect your VPN to the company, and asks it to use the company "default gateway", it will send all foreign ip-packages to the companys network. If there is no connection from this network to your ISP, the package gets lost - and you're unable to check mail. And, if the company mail-server is on a ip-range that doesn't match the ip-address and netmask you are given by the VPN, you won't be able to reach the company mail-server, without using the company default gateway. In comes routing. It is possible to tell you computer, how to reach specific networks. For instance, if the company network is giving you the ip 10.10.1.190, and you KNOW that the company mail-server is reachable at 172.158.20.1, you can add this route AFTER opening the VPN connection, with: route add 172.158.20.0 mask 255.255.255.0 10.10.1.190 This tells your computer that all trafic to the ip-range 172.158.20.0 should go through the VPN connection. So even without using the default gateway at the company, you will be able to get mail from the company. - Morten
WDevs - The worlds first DSP, free blog space, email and more
-
Photoshop vector format ?AI files are EPS files with a bit structure. - Mort
-
Photoshop vector format ?It is possible to vector-based masks to a Photoshop image (and psd file), and you can export them to Illustrator files. But Photoshop doesn't have a vector-based file-format by itself. - Morten
-
Thanks to everyone that helpe me research my tv.....An equally big congratulations. How's the contrast on a thing like that. Can't find any specs on sony's site. - Morten
-
Now I seen the porn adThere's been some rulings in the us, where they got off because it was proven that the security was practically non-existant. The same would propably happen with this one. It could be seen as a prank. - Morten
-
Just Got My New CameraAnders Molin wrote: Money talks, but all mine ever says is "Goodbye!" Your sig makes more and more sense. :sigh: - Morten
-
sending a command from iis to localhost (redirect???) please help!How about using xmlhttp (or asptear) to request the page from localhost?
-
I blame you guys for thisThis sounds very much like an open invitation for all of us to come around for a short test-drive. Hmmmm - 340.000 users times 15 minutes = about 10 years. Guess you're gonna be busy. See ya ;)
-
A question for Chris MThe main problem is getting at the insertion point. The "minute" the cursor (focus) leaves the textarea, the insertionpoint is "lost". If you select some text in the textarea, you can replace that text, or fi insert tags around it (once you've asserted that the selection is actually in the textarea, and not somewhere else on the page), because the selection survives the click on the button. But if the cursor is just sitting there, doing it's thing, quietly blinking away, as it would if you want to insert a smiley somewhere, the browser looses the insertion point. - Mort
-
How to get a primary key?You have to use the right provider. "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=mydatabase.mdb" - Morten
-
Javascript Sorting ProblemStill, if you have to use hours upon hours implementing a single feature that will at best work flakily in NS 4.x for what is most likely a small userbase (even in phone companies - unless they're using OS/2), the time could be used better developing other features. To get the "tablesort" to work a bit better in NS, you could disable the click event for the coloumn-headings until the table is redrawn. - Morten
-
Javascript Sorting ProblemIf you don't have any form elements in the table, you can try: http://www.mattkruse.com/javascript/sorttable/index.html It's not extremely stable in NS 4.x, but it works if you don't click around too fast (as all NS layering). The buttom sample works in NS. Not the top one, as it contains form elements. You must have a very insistent customer, since you're trying to implement it for NS 4.0x The user base is propably below 1 percent now, and why ruin the "experience" for users keeping up to date? - Morten
-
Javascript Sorting ProblemIt can be done in the browser, including NS (but only NS6). Give all cells an ID. Cell_00_00 - Cell_00_01 - Cell_00_02 Cell_01_00 - Cell_01_01 - Cell_01_02 Cell_02_00 - Cell_02_01 - Cell_02_02 Create an Array for client-side javascript that contains all data (no need to read data from the table, before each sort). On click, sort the data (same array or to new array) and insert cell by cell. - Morten
-
Javascript Sorting ProblemI assume you're talking about requesting the data again from the database, and not using dhtml (which could be he only reason why the script doesn't work with netscape) to sort the single page. Getting your 10 records from the database, in the right order within a single page, can only be done by requesting those specific records by ID. So you'll have to send the IDs of the records back to the server (hidden input) with the sort field. MS SQL: "SELECT * FROM myTable WHERE ID IN ("+myIDs+") ORDER BY "+orderField myIDs contains comma-separated IDs. Paging after sorting using a different field, will be a bit confusing though, as the user whould have to return to your default sort-order. - Morten
-
prevent files from opening in the browserAdd the http-header Content-Disposition, with at value of "attachment; filename=xxx". You can do this using asp (example using jscript): Response.AddHeader("content-disposition","attachment; filename="+TheFileName); Or you can change the content-type of the file to something the browser isn't going to recognize. This can be done in IIS Manager or asp. - Morten
-
How to retrieve data in a page from another website?xmlHTTP and advice from your laywer
-
Window resizeDimon007 wrote: How knows how to get the browser's window size. Sorry, you can't get the size of the window. What you can get, is the width and height of the clientarea. document.body.clientWidth document.body.clientHeight which will tell you how much space is available to your page. You can move and resize the window using window.moveTo and window.resizeTo methods (and window.moveBy and window.resizeBy). And one more - how to dynamicly change size of background picture. You can't resize background images. You'll need different images in different resolutions. - Morten
-
error '80004005'The 'Operation must use an updateable query. ' usually means that the IUSR_xxx (anonymous account) doesn't have sufficient rights in the folder where the mdb-file resides. The user needs write, change and delete rights for locks and changes to the mdb file. - Morten