Tuesday, 19 August 2014

Error : Unable to open module file

 

 

Description

When we try opening an existing solution, every project inside this solution has the following error: Unable to open module file 'C:\Users\USER123\AppData\Local\Temp\2\.NETFramework,Version=v4.0.AssemblyAttributes.vb': System Error &H80070002& C:\Users\USER123\AppData\Local\Temp\2\.NETFramework,Version=v4.0.AssemblyAttributes.vb

 

 

This issue is still happening with VS2012 as well.
Steps to reproduce:

1. Create a project/application using .NetFramework 4.5
2. Close VS2012
3. Navigate to Temp Folder (C:\Users\xxxxx\AppData\Local\Temp)
4. Delete the .NETFramework,Version=v4.5.AssemblyAttributes.vb file
5. Restart VS2012 and Start debug.

 

 

URL : https://connect.microsoft.com/VisualStudio/feedback/details/515041/unable-to-open-module-file-when-an-existing-solution-is-loaded

Thursday, 24 July 2014

How to changing default collation of SQL Server



image

1. Now open command prompt as Administrator user and navigate to the Setup.exe on installation media or local copy of setup.exe. In default installation setting; you’ll find this file here: (ตำแหน่งของไฟล์ Setup โปรแกรม SQL Server)
image

2. Next the command you want to run has following syntax:
Setup /QUIET /ACTION=REBUILDDATABASE /INSTANCENAME=<Your Instance Name> /SQLSYSADMINACCOUNTS=<Your SQL SYS Admin account> [ /SAPWD=<Password> ] /SQLCOLLATION=<Your New SQL Collation name>

Ex. setup /QUIET /ACTION=RebuildDatabase /INSTANCENAME=”SQLEXPRESS” /SAPWD=”password user sa” /SQLCOLLATION=”SQL_Latin1_General_CP1_CI_AS” /SQLSYSADMINACCOUNTS=”user admin on PC”

3. Hit enter and you are done.


URL : http://www.carryoverbit.com/changing-default-collation-of-microsoft-sql-server-2012/

Tuesday, 15 July 2014

Linked Server

 

Linked Server in SQL Server Management Studio.

image

 

Ex. Select Query

select * from [SAPDEV]..[SAPDEV].[ZHST_MID]

 

Ex. Insert Query

INSERT into  OPENQUERY (SAPDEV, 'select * from SAPDEV.ZHST_MID')
values ('210','M002','Test','TT',' ',' ',' ')

INSERT OPENQUERY (OracleSvr, 'SELECT name FROM joe.titles')
VALUES ('NewTitle')
 
Ex. Update Query

UPDATE OPENQUERY (OracleSvr, 'SELECT name FROM joe.titles WHERE id = 101') 
SET name = 'ADifferentName'
 
Ex. Delete Query

DELETE OPENQUERY (OracleSvr, 'SELECT name FROM joe.titles WHERE name = ''NewTitle''')

Monday, 30 June 2014

SAP Enhancements



Using SMOD you can search for enhancement and there component. Components includes Function Exit, Function Codes, Program,Calling Screen...so basically all exits.
CMOD allows you to create Project for your enhacement. In order to activate every exit code you need to create a project for same and activate it...Eventhough if you write a code and do not create a project for same your exit code will not reflect.

Ex. SMOD
image

Ex. CMOD
image

Friday, 27 June 2014

SAP Barcode


Location File .exe
\\SVSAPAPP01\CCSSAPAddon

Location VB.Net
\\SVSAPAPP01\IT_App\VB

Program Barcode in SAP se80
ZSD_BARCODE_AXCELIS