Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Ankur Vaish

Ankur Vaish

★ JanBask Expert
Share
79Questions
115Answers
204.5KViews on questions

Formula calculating calendar weeks (2015 vs 2016)

To be able to do weekly comparison report Year-to-Year with this weeknumbering it is necessary to create custom fields for the opportunity that calculates the Year and Week number for a given close date. Here is one solution using three custom formula fields. Field: Global Sales Report Weekday Description: Day 1 =…

Salesforce

Answered Jul 19, 2021 · 1.2K Views Read answer →

Trying to center button on the page

In order to align a button in the center. you need to use the Absolute Center class in slds positioned. For more information: https://www.lightningdesignsystem.com/utilities/alignment/ Here is How you can align lightning-button in Salesforce LWC? Sample Code: HTML:

Salesforce

Answered Jul 19, 2021 · 2.1K Views Read answer →

How to get Rows to Columns (SQL Server)?

There are a couple ways that you can get sql server rows to columns. You can use PIVOT or you can also use an aggregate function along with a CASE expression, but in order to return multiple rows for each Type you'll need to create a unique value that you can GROUP BY. I'd recommend using a windowing function like…

SQL Server

Answered Jul 12, 2021 · 1.3K Views Read answer →

How to Detect sql server lock table or row?

You can try this to detect sql server lock table : SELECT db_name(rsc_dbid) AS 'DATABASE_NAME', case rsc_type when 1 then 'null' when 2 then 'DATABASE' WHEN 3 THEN 'FILE' WHEN 4 THEN 'INDEX' WHEN 5 THEN 'TABLE' WHEN 6 THEN 'PAGE' WHEN 7 THEN 'KEY' WHEN 8 THEN 'EXTEND' WHEN 9 THEN 'RID ( ROW ID)' WHEN 10 THEN…

Salesforce

Answered Jul 12, 2021 · 2.9K Views Read answer →

Is there any limit for IN results in SQL Server IN clause?

It depends. Seriously. That’s why the docs can’t be specific about where you will notice degradation in your environment. The solution is to just stop doing this (and worrying about it) and use a table-valued parameter. If you have the values in C# in such a way that you can build a comma-separated list as a string to…

Salesforce

Answered Jul 12, 2021 · 1.4K Views Read answer →

How to fix SQL Server error 18456? I am seeing a message “Login failed for user - Error 18456 - Severity 14, State 38”.

State codes and their meaning. How to Fix SQL server error 18456? Here are the steps you can follow to fix SQL server error 18456:Here are the steps you can follow to fix SQL server error 18456: Step 1: Log In with Remote Desktop Step 2: Run Microsoft SQL Server Management Step 3: Checking the Server Authentication…

SQL Server

Answered Apr 24, 2021 · 1.5K Views Read answer →

How to Copy Database in SQL Server, Wizard vs Backup / Restore Script?

Jobs are not stored in the user database, it is stored in the msdb database. If you wish to copy the exact same jobs from the previous server then, you should think of taking backup of msdb at the previous server and restore them on the new server provided few pre-requisites are met. CDW(Copy database Wizard) can't be…

SQL Server

Answered Apr 24, 2021 · 1.4K Views Read answer →

More members from the SQL Server community

Learners asking and answering questions on the same topics — follow their questions and join in.

Latest SQL Server Blogs

Guides, tips and career advice on SQL Server from JanBask experts.

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.