Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Anna Ball

Anna Ball

Community Learner
Share
68Questions
65Answers
51.5KViews on questions

How cal I Change the use of GETDATE() in the entire database?

Use the SQL Server getdate tool to export the database objects definition to a SQL file which should include: tables, views, triggers, SPs, functions, and so on Edit the SQL file (make a backup first) using any text editor that allows you to find the text "GETDATE()" and replace it with "[dbo].[getlocaldate]()" Run…

SQL Server

Answered Jul 12, 2021 · 226 Views Read answer →

How to solve Online SQL statement checker [closed]?

below: My intent was to make it easier for people to setup environments that demonstrate the SQL problem they are attempting to solve, then post the link to StackOverflow (or something similar) and have people go there and attempt to solve it, much the same as jsfiddle.net is used to solve JavaScript questions. Hope…

SQL Server

Answered Jul 12, 2021 · 317 Views Read answer →

Why getting error -[Cannot read property 'style' of null]?

This error indicates that the element you were trying to select was not found (hence, it cannot find the “style” property for element, probably assigned to a variable - it is null, as in empty). Two possibilities here: you might have fired your script before the selector element began to exist in DOM. In your senario…

Salesforce

Answered Jul 12, 2021 · 365 Views Read answer →

Username Password Auth Flow returning different response than expected

You need to pass in your parameters in the body, https www salesforce com login. The request going over the wire should look like this: POST /services/oauth2/token HTTP/1.1 Host: login.salesforce.com Content-Length: ### Content-Type: application/x-www-form-urlencoded Accept: application/json…

Salesforce

Answered Jul 12, 2021 · 298 Views Read answer →

Is it possible to specify condition in Count()?

To solve sql count with condition, you can't limit the query itself with a WHERE clause. But you can use the count aggregate as it only counts the non-null values. So, use this code: SELECTcount (case Position when 'Manager' then 1 else null end) FROM Table_NameYou can also use the sum aggregate in a similar way:…

SQL Server

Answered Jul 8, 2021 · 1 Views Read answer →

Can someone explain "Diffie-Hellman Key Exchange" in an easier way?

Diffie-Hellman is a way of generating a shared secret between two people in such a way that it can't be seen by observing the communication. That's an important distinction You're not sharing information during the key exchange, you're creating a key together. This is useful because you can use this technique to…

SQL Server

Answered Apr 24, 2021 · 9 Views Read answer →

SQL Server TRY/CATCH does not work in certain cases

Unfortunately, there is no way. SQL Server MVP Erland Sommarskog has a series of brief* articles on the subject of handling errors in SQL Server that starts here: Error and Transaction Handling in SQL Server The issue you're running into with the Agent job is that it calls an extended stored procedure. This gives rise…

SQL Server

Answered Apr 24, 2021 · 12 Views Read answer →

How come SQL Server LIKE uses an index, but SQL Server CHARINDEX does not?

SQL Server maintains statistics on substrings in string columns in the form of tries that are usable by the LIKE query. However, its is not usable by the SQL Server CHARINDEX query See the String Summary Statistics section for more about this. A couple of important caveats are that any escaping of wildcards must be…

SQL Server

Answered Apr 24, 2021 · 12 Views Read answer →

SQL Server Developer vs Express Edition?

No, it isn't dangerous, but it depends on which version of SQL Server you are talking about, what parts you are using (just the DB engine?, SSIS?, SSRS?, ...) and your level of aversion to the small risk. Developer edition is essentially Enterprise edition under a different licence. The problems you could hit are that…

SQL Server

Answered Apr 24, 2021 · 13 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.