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 to deny write to the desktop for users?
Windows 7 Group Policy Bug?
I have a Toshiba Satellite A105 Laptop, and Hard Drive From Dell Vostro 1500 w/ Win 7 wont boot?
Deploy Printer Drivers to WinXP Computers
Gateway for Server automatically being removed after restart
CRM Backstop
WCF hosted on IIS: Why doesn't it show me the WCF method name and it's signature?
External Monintor won't work w/ Toshiba laptop; it USED to; fn (f5) doesn't "stick"
serial to USB adapter binds to which serial port?
TDSSand other malware - prevent and removal tips / thinking