Microsoft
Software
Hardware
Network
Question : How to use Merge (from Sql 2008) with this query
Hi!
I'm developing a aspx page with sql 2008. I have this part of code but I need to change this old sentence (that uses update, insert) using merge. Do you know how to do that?
Dim myComm As SqlCommand = New SqlCommand(" " & _
" UPDATE Join_ObservacionesDates SET observaciones = @Observaciones WHERE ID_Remisera = @ID_Remisera AND fecha = @Fecha " & _
" IF @@ROWCOUNT = 0 " & _
" INSERT INTO Join_ObservacionesDates (ID_Remisera,fecha,observa
ciones) " & _
" VALUES (@ID_Remisera,@Fecha,@Obse
rvaciones)
", myConn)
myComm.Parameters.Add("@Ob
servacione
s", SqlDbType.Text).Value = e.Record("observaciones")
myComm.Parameters.Add("@ID
_Remisera"
, SqlDbType.Int).Value = e.Record("ID")
myComm.Parameters.Add("@Fe
cha", SqlDbType.SmallDateTime).V
alue = e.Record("Date")
myComm.ExecuteNonQuery()
Answer : How to use Merge (from Sql 2008) with this query
The ASA will not treat port 445 any different than any other port. A static combined with an access-list entry should be enough.
Some ISP's may block port 445.
Random Solutions
How do i do PXE Boot using windows 2008 server and Deployment Workbench
SSL Weak Cipher Suites Supported
Error Creating Web Site: Exception from HRESULT: 0x800710D8
E-mail messages not displaying correctly
CentOS 5.3: search keyword in array of logs: how?
asp.net: How to bind Images to a ListView from a Database - I have a special need! the Image have already be downloaded
What is the best GUI for MySQLfor Windows and why?
How to Open a Console Session (xterm)
RHEL command to do an LS and have the result stop until you hit the space bar
migrate drupal from CentOS 4 to Centos 5 -----Also, Physical Machine to Virtual Machine