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
Keep geting lots of "The system failed to flush data to the transaction log. Corruption may occur" errors in Windows 7 Pro
Compatible Error in Excel 2003
SQLServer Query, Pivot and/or Cross tab or whatever
Setting Compatibility Mode in IE8 using JavaScript
Need help with 'System.Web.UI.ScriptManag
er is not defined error
I am new to webservices, please help.
trouble with user clicking before content loads ASP and Javascript
XP runs slow error 0XC000005e,The Security System detected an attempted downgrade attack for server
ProLiant DL380 G5 RAID Drive replacement procedure
VBScript - Capture Folder Contents Into Array