Viewing 15 posts - 436 through 450 (of 754 total)
That's OK, but it's best to be clear about that so that volunteers know not to recommend platform-specific (TSQL) solutions.
Here's a tek-tips Pervasive forum: https://www.tek-tips.com/threadminder.cfm?pid=318
May 11, 2022 at 9:18 pm
A calendar table is great for that.
But if you want to derive it dynamically, and you're always executing on the day following the end of the date range:
May 11, 2022 at 9:06 pm
PSQL? Are you using postgres? You posted in a SQL Server 2019 forum.
May 11, 2022 at 8:58 pm
Joe Celko's Trees and Hierarchies in SQL for Smarties -- Treason hierarchies is a whole different topic 🙂
Auto-correct did a number on your post, Joe.
May 6, 2022 at 8:42 pm
If you're not seeing it via direct group membership, look at nested groups (user is a member of a group that is a member of another group that has database...
May 6, 2022 at 6:22 pm
Do any Windows domain groups have SQL Server Windows logins/database access?
May 5, 2022 at 8:24 pm
Is that the only change to the script? What reporting tool?
Can you provide DDL for the tables including indexes? See How to Post Performance Problems
Get an actual execution...
April 29, 2022 at 1:06 pm
It sounds like you are trying to spell check existing data. Do you also want to validate incoming data? If so, how does it come in? SSIS or other ETL tools?...
April 29, 2022 at 12:59 pm
If you're talking geography, this provides a method to get direction using lat/long: https://stackoverflow.com/questions/14736464/determining-cardinal-compass-direction-between-points
Here's one that is supposed to calculate bearing between two points: https://www.spdba.com.au/cogo-calculating-the-bearing-between-two-points-sql-server-2008-spatial/
Note: Given origin/source & destination points,...
April 28, 2022 at 3:08 pm
You can use a tally function, number table, or similar to get a selected # of rows to generate -- e.g.,
USE [DBA]
GO
DECLARE @fquantity INT = 50
SELECT...
April 27, 2022 at 5:03 pm
I don't - I get '000' if @max_naam = '22'. Does @MAX_naam really need to be varchar(max)?
DECLARE @MAX_naam AS varchar(MAX) = '22'
DECLARE @maxnaam_length AS int = LEN(@MAX_naam);
DECLARE...
April 26, 2022 at 8:54 pm
DECLARE @zeroes AS varchar
If you declare a variable or parameter as varchar w/o specifying length -- e.g., varchar(5) -- it is implicitly declared as varchar(1), and can...
April 26, 2022 at 8:32 pm
You should probably start w/ determining what is using the most memory, & seeing if there opportunities to tune expensive queries via better indexes and/or more efficient queries.
Beyond that, the...
April 26, 2022 at 5:54 pm
SSRS is for reporting existing data, not for data input.
Are you trying to generate (semi-) blank forms that can be printed for somebody to write in (or, I suppose edit...
April 26, 2022 at 4:53 pm
Viewing 15 posts - 436 through 450 (of 754 total)