Viewing 15 posts - 1,741 through 1,755 (of 2,648 total)
I can't see a way of speeding up the comparisons on the CUSTOM columns.
It might be possible to improve the performance of the left join to your view....
February 5, 2019 at 4:53 am
Is the message always of the form 'message [CLIENT: nnn.nnn.nnn.nnn]' ?
If so this will do it:DECLARE @SearchStringForStart varchar(100)='CLIENT: '
DECLARE @LenSearchStringForStart int = LEN(@SearchStringForStart)
DECLARE @SearchStringForEnd...
February 4, 2019 at 1:42 pm
You probably have a long running query.
Execute this to see what's running and how long it's been running for:SELECT sqltext.TEXT,
req.status,
...
February 4, 2019 at 5:12 am
February 3, 2019 at 4:27 am
If it's a one-off you could take a backup from one server and restore it on the other server then copy the data with an INSERT INTO... SELECT * FROM...
February 2, 2019 at 6:36 pm
January 31, 2019 at 1:30 pm
January 31, 2019 at 9:22 am
select g.name,scrnshotfilename,publisher,ye_id,genre from games g inner join Genres p on g.ge_id = p.ge_id...January 31, 2019 at 7:23 am
It's helpful to read if you add a few new-lines to your code.
To add another inner join you could put it in like this:select g.name,pu_id,ye_id,genre...
January 30, 2019 at 2:04 pm
January 30, 2019 at 12:50 pm
You need to have the agent job on the instance (Server B) which has the linked server connection to Server A.
Your queries will then be something like:
[code...
January 30, 2019 at 10:52 am
I've just created a function that will sort a csv column alphabetically:CREATE FUNCTION dbo.SortAlphabetic
(
@Text nvarchar(4000),
@Delimiter nvarchar(10) = ';'
)
RETURNS...
January 30, 2019 at 10:15 am
You can use SQL Server 2016's STRING_SPLIT function to split the column by semi-colon into multiple rows.
You can then put the string back together in alphabetic...
January 30, 2019 at 8:26 am
If you create the stored procedure with a default value for @state of NULL, then if the parameter is NULL you can display some help for the call, e.g.:
January 30, 2019 at 7:54 am
Viewing 15 posts - 1,741 through 1,755 (of 2,648 total)