Just as Window aggregate functions aggregate the value of a specified field, RANKING functions will rank the values of a specified field and categorize them according to their rank. The most common use of RANKING functions is to find the top (N) records based on a certain value. For example...
ANDO.xtype='P' 3rd method is to use the sys.all_sql_modules system view. The definition column of this view has definition of Stored Procedure, Views, Functions etc.You can write query as given below to check if any of the Stored Procedure or object is using the table/view you are l...
Built-in functions do not always offer the desired functionality. Take the “Datename” function that we saw in action in the previous section. Although it retrieves the date in multiple formats, what if you want to retrieve the date in a different format; one that is not supported by the...
One of my Application server has been restarted yesterday, we would like to know how to find the login information and the IP details of the server. Please help me how to get the information who did restarted SQL services! Thanks in advance, DBA DBAQuestion is quite confusing, if your sq...
Phil Factor shows how to create a table of input values versus expected results, and then use it to unit test your SQL stored procedures and functions and verify that they always produce the correct results. He uses SQL Prompt to make this task much simp
The error 0x80040e14 can occur when you have an insufficient amount of memory in your SQL Server. Memory is an important component if you expect your server to perform its functions so you may have to add more RAM to resolve this issue. ...
Unfortunately, as of writing (Hibernate 5.1.0), both the Java Persistence 2.1 stored procedure and the Hibernate-specific API cannot be used to call functions. However, there are several workarounds for this limitation. Fortunately, we can call the database function using plain JDBC API: ...
Appending text to a field that already contains text using TSQL apply cross apply function on condition Arabic question mark Arduino and SQL Server Are there any Bitmap(ped) indexes in SQL Server? Are there MIN(A,B) or MAX(A,B) functions in SQL? Argument data type datetime is inval...
Microsoft Access/Jet databases are more prone to corruption than SQL Server for a number of reasons. Since Access/Jet uses a file share model, all users are concurrently holding active connections to data. If any one of those users unexpectedly loses the connection, the database can become cor...
Recover & fix SQL Database without SQL Server Installation. Fixes Tables, Triggers, Stored Procedures, Functions, Views, etc. No Data Size Limitations Here to Fix SQL Database Suspect Mode. Two Scan Modes are Available: Quick Scan & Advance Scan Modes. Exports Both Schema and Schema with ...