SQL ROW_NUMBER OVER AND PARTITION BY
Table Name: myTableColumns:-->roll_no-->classId-->locationSQL Statements--Get the count of rows based on columns SELECT *, ROW_NUMBER()OVER(PARTITION BY roll_no ORDER BY subject DESC) rowCnt...
View ArticleProgrammatically adjusting the "toolbar type of a ListViewWebPart using...
I have a requirement to hide new item or edit list in SharePoint list$powershellSnapin = “Microsoft.Sharepoint.Powershell”if ((Get-PSSnapin -Name $powershellSnapin -ErrorAction SilentlyContinue) -eq...
View Articlesql multiple inner joins to same table
CREATE TABLE Table1([weddingtable] int, [tableseat] int, [tableseatid] int, [name] varchar(4), [Created] int,[Modified] int);INSERT INTO Table1([weddingtable], [tableseat], [tableseatid],...
View ArticleHow to change default options for different file extentions
Go to this path.Control Panel\All Control Panel Items\Default Programs\Set Associations
View ArticleRemove “Restricted User” in SQL Server
Remove “Restricted User” in SQL Server--------------------------------------------------------------- Use DatabaseNameALTER DATABASE DatabaseName SET SINGLE_USER WITH ROLLBACK IMMEDIATEGOALTER...
View ArticleC# create GUID
Console.WriteLine(@"System.Guid.NewGuid().ToString() = " + System.Guid.NewGuid().ToString()); Console.WriteLine(@"System.Guid.NewGuid().ToString(""N"") = " +...
View ArticleAras Innovator Disconnect all users from the database
Disconnect all users from the database--Change the database connection string in the InnovatorServerConfig.xml from “<DB-Connection…” to <xDB-Connection” and restart the w3svc service(IIS). This...
View ArticleSql Querry to find all active DB connection
SELECT DB_NAME(dbid) AS DBName,COUNT(dbid) AS NumberOfConnections,loginameFROM sys.sysprocessesGROUP BY dbid, loginameORDER BY DB_NAME(dbid)
View ArticleCMD - Read folder file Name using cmd
Open CMDgo to directorycd c:\myfolderdir *.xmldir /B *.xml >t.txtYou will get all file name
View ArticleSQL table compare between 2 databases
SQL Server Data Tools for Visual Studio 2013 -Run as AdministratorTOOLS-->SQL Server-->New Data Comparison...Click on New Connection..under Source DatabaseSelect SQL Server Name and DB NameClick...
View ArticleAdd users under IIS_IUSRS
Control panel -> user account -> change account type -> Advanced -> Groups ->IIS_IUSRSorThis PC-->Right click--> Manage--> Local Users and Groups-->IIS_IUSRSAdd your name...
View ArticleAras enable debugging and stack trace
Enable debugging:Go to IIS Server-Go to IISGo to innovator web siteRight click Select explorer :Ex: c:\Program Files (x86)\Aras\Innovator\Server\Find innovator.config.xmlChange below value from false...
View ArticleAras Innovator - Properties and Attributes
Properties are used to define the data for an Item; attributes are meta-data for theItem or Property, which are used to control the server logic and Methods. Think ofattributes like command line...
View ArticleExcel sub string formula based on last space
=TRIM(RIGHT(SUBSTITUTE(A1,"",REPT("",LEN(A1))),LEN(A1)))=TRIM(LEFT(SUBSTITUTE(A1,"",REPT("",LEN(A1))),LEN(A1)))
View ArticleGet item CHARACTERISTIC values of an Item
select * from innovator.PART where keyed_name='P00001'-- Get ID from above results and use in the below query...select * from innovator.PART_ITEM_CHARACTERISTIC_VALUE where...
View Article