Viewing 15 posts - 6,796 through 6,810 (of 59,102 total)
Since you aren't actually using the count for anything other than measuring if the count is greater than "0", just do a check for existence instead of a count... that'll...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 17, 2020 at 12:19 am
I'll get quite a bit of argument from a lot of folks but I've found that REORGANIZE frequently does NOT do a very good job at fixing page density problems...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 16, 2020 at 11:40 pm
Totally agreed on the Modified_By and Created_By columns being fix length like an INT column with an FK but, if an application has a generic login, that would mean that...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 16, 2020 at 11:17 pm
Hi Jeff, the DBA does not allow me the permission to create/use tally function. Can you provide a solution without using it please?
I wasn't suggesting that YOU create the...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 16, 2020 at 6:42 pm
It's (a separate table) is a better practice for multiple reasons especially if it can't be altered without all hell breaking loose. The 4 columns you speak of (I refer...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 16, 2020 at 4:04 pm
Nah... it's easier than that. Create a stored procedure that does the work, give the spreadsheet user privs to execute it, and have them execute the stored procedure...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 16, 2020 at 2:28 pm
Erased my post... I found an exception to the code I was going to post.
--Jeff Moden
Change is inevitable... Change for the better is not.
July 16, 2020 at 6:46 am
This is a triplicated post and multiple solutions have been provided. Please... no posts here. Instead, see the following post where all the other answers are...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 16, 2020 at 6:39 am
Thanks, this is ECM Opentext software database server, I did not manage it until today I found the alerts. Asked their team they said some contractors are loading some...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 16, 2020 at 6:36 am
p.s. SQL <> SQL so always identify which RDBMS engine you're using.
--Jeff Moden
Change is inevitable... Change for the better is not.
July 16, 2020 at 6:30 am
Nah... it's easier than that. Create a stored procedure that does the work, give the spreadsheet user privs to execute it, and have them execute the stored procedure from their...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 16, 2020 at 6:28 am
My recommendation is to do this application side still, but if database side is the solution you need, this query should do it:
DECLARE @tmp TABLE
(
[Letters] VARCHAR(25)
);
INSERT...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 16, 2020 at 6:22 am
Shifting gears a bit, please read the first link in my signature line below for how to post example data in future posts to help us help you faster and...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 16, 2020 at 6:16 am
Just to throw my hat into the ring, here's my humble version... It uses the fnTally function that Steve posted.
First, here's the test data I used...
DROP TABLE...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 16, 2020 at 6:06 am
I am denied the permission to create the function here
Submit the fnTally function to the resident DBA for review and deployment. Be sure to include the header so they...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 16, 2020 at 4:48 am
Viewing 15 posts - 6,796 through 6,810 (of 59,102 total)