Viewing 15 posts - 1 through 15 (of 52 total)
If the column DBSize
is consistent then this may work
declare @SomeTable table
(
DatabaseName nvarchar(1000) not null,
DBSize nvarchar(1000) not null
);
insert into...
May 13, 2020 at 1:30 pm
Try normalize the Employee table, to move out rows that may me NULL. Good normalization also gives more understanding of the model. Sometimes NULL, may be acceptable, e.x. a "start...
April 9, 2020 at 1:27 pm
Thanks, cross apply, makes it simpler, and easy to extend.
Edit: Missed ca.Area. IIF seems nice, need to try.
Thanks 🙂
February 28, 2020 at 2:31 pm
Have previous version of SSMS had support for in memory tables in diagrams?
The diagram in SSMS is neat, but somewhat limited, but very useful.
Only find this for 18.3.1 - Database...
December 17, 2019 at 3:29 pm
You may also consider to use not null on columns, and add a primary key and may be unique index, to prevent duplicates, in the first place.
December 17, 2019 at 7:16 am
Memory leakage in some of your SQLCLR code? Usage of unsafe/old assembles, check logs?
December 16, 2019 at 7:06 am
Is there possible to upgrade reCAPTCHAÂ to version v3? I guess the WordPress is last version. Do the forum use a spam mod?
If low score maybe no post for...
December 15, 2019 at 1:05 pm
You don't need the replace, better to use double quotes, like:
SET @SuccessQry =
'CREATE PROCEDURE #Success
@ProcessStep VARCHAR(50)
AS
SET NOCOUNT ON;
INSERT INTO #DataLog
(ProcessStep, StatusDesc)
VALUES
(@ProcessStep, ''Success'')';
SET @FailureQry =
'CREATE...
December 13, 2019 at 1:13 pm
December 12, 2019 at 3:05 pm
Nice article! Several image links is broken. In all samples display the schema(i.e object_schema_name(ob.object_id) + '.' + ob.name as User_Table), and describe the importance to always use schema name in...
December 11, 2019 at 4:04 pm
Back to the original question, that takes to long time.(many seconds to long time)
Hi,
I need to show a number of records per day in the dashboard of the web...
December 11, 2019 at 1:39 pm
Interesting, sins of version of 2008 the COUNT(*) vs COUNT(1) should generate the same execution plan.(column 1 should be pk/not null). Also count won't read any data from the column(s),...
December 11, 2019 at 12:30 pm
As in most development the code should speak for it self, and you should use:
Your procedure should...
December 9, 2019 at 8:20 pm
I guess this you need to do this cleaning from time to time, I put my cleaning statements in an own procedure(support.Cleanup), and then make a job to run. May...
December 4, 2019 at 9:22 pm
May be Identifying Relationship Between Columns In SQL can be of use?
November 26, 2019 at 9:17 pm
Viewing 15 posts - 1 through 15 (of 52 total)