Hi, I am new to SQL Server and what I am trying to do is convert my working SELECT Query to an UPDATE Query to update the data from a vb.net datgridview. I have looked for a tool or examples but cant find any information that can point me to the correct path.
Select AssetNo [ASSET NO], t2.TYPE [TYPE], t3.Status [STATUS], t13.PURTYPE [PUR TYPE], MAKE [MAKE], t5.Model [MODEL], SerialNO [SERIAL NO], T6.OS [OS], LICENSEKEY [LIC KEY], MEMSIZE [MEM], HDDSIZE [HDD], Owner [OWNER], SVP [SVP], t12.Company [VENDOR], CONTRNO [CONTR NO], LNAME [USER LNAME], FName [USER FNAME], UserNO [USER NO], t9.Site [USER SITE], T10.BLDG [USER BLDG], t11.Dept [USER DEPT], Loc [USER LOC], CMNT, PO [PO], Cost [COST], purdate [PUR Date], WrrtyStart [WRRTY START], WrrtyEnd [WRRTY EXP], WrrtyEXT [WRRTY EXT], t14.CONTACT, t15.ADDRESS, T16.POBOX, T17.CITY, T24.STATE, T25.COUNTRY, T18.ZIPCODE, T19.TEL, T20.CEL, T21.FAX, T22.EMAIL, T23.WEBPAGE
From ASSETINFO t1
INNER Join TypeInfo t2 on t1.TYPEID = t2.TYPEID
INNER Join STATUSINFO t3 on t1.STATUSID = t3.STATUSID
INNER Join MAKEINFO t4 on t1.MAKEID = t4.MAKEID
INNER Join MODELINFO t5 on t1.MODELID = t5.MODELID
INNER Join OSINFO t6 on t1.OSID = t6.OSID
INNER Join OWNERINFO t7 on t1.OwnerID = t7.OwnerID
INNER Join SVPINFO t8 on t1.SVPID = t8.SVPID
INNER Join SITEINFO t9 on t1.SITEID = t9.SiteID
INNER Join BLDGINFO t10 on t1.BLDGID = t10.BLDGID
INNER Join DEPTINFO t11 on t1.DEPTID = t11.DEPTID
INNER Join VENDORINFO t12 on t1.VENDORID = t12.VENDORID
INNER Join PURTYPEINFO t13 on t1.PURTYPEID = t13.PURTYPEID
INNER Join VENDORINFO t14 on t1.VENDORID = t14.VENDORID
INNER Join VENDORINFO t15 on t1.VENDORID = t15.VENDORID
INNER Join VENDORINFO t16 on t1.VENDORID = t16.VENDORID
INNER Join VENDORINFO t17 on t1.VENDORID = t17.VENDORID
INNER Join VENDORINFO t18 on t1.VENDORID = t18.VENDORID
INNER Join VENDORINFO t19 on t1.VENDORID = t19.VENDORID
INNER Join VENDORINFO t20 on t1.VENDORID = t20.VENDORID
INNER Join VENDORINFO t21 on t1.VENDORID = t21.VENDORID
INNER Join VENDORINFO t22 on t1.VENDORID = t22.VENDORID
INNER Join VENDORINFO t23 on t1.VENDORID = t23.VENDORID
INNER Join STATEINFO t24 on t12.STATEID = t24.STATEID
INNER Join CNTYOINFO t25 on t12.CNTYID = t25.CNTYID
Regards,