I always thought an update was a delete and insert but looking around I'm seeing "it depends". I see that is this post:
http://dbaspot.com/ms-sqlserver/149740-how-does-update-statement-work.html
In that post is reference to a book with more detailed information but I don't see it anywhere for...
I don't think you can "Move" table data around like that (where the move pshycially deleted the data). You will have to maintain it yourself. Delete is an integral part of SQL. What issues with that concern you?
I was looking at this on another forum trying to get help. Towards the bottom is a good explanation of wate is really happening.
http://www.vbforums.com/showthread.php?710577-Label-does-not-refresh-on-load&p=4347549#post4347549
Leaving the label blank seems to be the key. If it is not when the form loads it hits the Lable changed event a second time putting back the original value not what was changed.
Public Class Form1
Private Sub TextBox2_TextChanged(sender As Object, e As EventArgs) Handles...
Must be something you are not showing us. This works fine:
Private Sub TextBox2_TextChanged(sender As Object, e As EventArgs) Handles TextBox2.TextChanged
TextBox2.Text = "222222222222"
Label4.Text = "Works for me"
End Sub
Post your code.
gmmastros is always worth listening to and heeding his advice [smile]
I work in an insurance related field and there are certain calculations like standard premium, tabular reserve, etc. When I started supporting this existing system the calculations were often done over and over again in many...
The SP simply did not return anything. The Catch was not executed. Nothing. But I found the answer! TIMEOUT!
I had a time out of 3 minutes.... Changed it to 6 Minutes and voila! It works just fine."
Something must be missing from the error handling if it timed out and the application could not...
You code build your select directly into Excel so when you open the spreadsheet it runs the SQL. There is a lot of information available on doing that on the internet. Here is one link:
http://office.microsoft.com/en-us/excel-help/connect-to-import-sql-server-data-HA010217956.aspx
One thing about using the Windows schedular as mentioned, unless I set it up wrong when I did it, is when the password is changed you need to change it there too.
Maybe you could use a sleep API based on the input from the user to wake up the logic and do the database work.
http://www.ex-designz.net/apidetail.asp?api_id=537
I'd put some logic in so they can't kick if off if it is already running.
If App.PrevInstance = True Then
MsgBox "Already...
Thanks for responding imex. I've been looking and over and partition but I think that is the wrong approach. What you provided was not the desired output but it got me thinking. This seems to work:
create table #temp(sectionid int, questionid int, text varchar(100))
insert into #temp
select...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.