Viewing 15 posts - 886 through 900 (of 2,645 total)
Linked servers will be the easiest way. Then you just add the server name as a prefix:
SELECT *
FROM [ServerName].[DatabaseName].[SchemaName].[TableName]
March 26, 2021 at 4:16 pm
These are your subqueries
,(SELECT RS.LIB_SERVICE
...
March 25, 2021 at 11:20 pm
One of the major ideas of client/server architecture was that the system would come in tiers. The database layer would get a result set, then pass that set on...
March 25, 2021 at 6:34 pm
If you want the SQL optimised you would be better off giving us the actual SQL that is generated along with the execution plan.
March 25, 2021 at 2:26 pm
You're likely wasting resources by using a CROSS JOIN. Just do a standard INNER JOIN using the LIKE comparison as the join condition.
The optimiser should make them have the...
March 17, 2021 at 10:44 pm
Set up the data:
if object_id('tempdb..#a','U') is not null
drop table #a
if object_id('tempdb..#b','U') is not null
drop table #b
go
create table #a
(
...
March 16, 2021 at 2:26 pm
Jonathan AC Roberts wrote:Your database is not normalised.
The standard way to store this is to have two tables instead of your #u table
It's a work table, Jonathan.
I know it's a temporary...
March 14, 2021 at 12:29 am
Your database is not normalised.
The standard way to store this is to have two tables instead of your #u table
CREATE TABLE #User
(
UserID int...
March 13, 2021 at 5:51 pm
I need to count the number of times each surgeon has done a procedure where op1 to op4 includes procedure b AND d OR just d irrespective of any...
March 11, 2021 at 7:54 pm
My Splitter function takes 3 parameters - data, delimiter and ValueForBlanks - typically empty string or NULL, but the value '[[DELETE]]' then completely removes any blank entries
Or you could...
March 5, 2021 at 8:56 pm
I've put an LTRIM on the output to make it the same as the SQL Server version, also it was searching the string for the delimiter one short of the...
March 5, 2021 at 6:22 pm
Great, thank you for the correction. Here is another Problem to consider
INSERT INTO @Test SELECT value FROM dbo.STRING_SPLIT('Abc, Ced, Def, ', ', ')
gives "Abc", "Ced" and "Def,...
March 5, 2021 at 6:10 pm
Is this what you want?
SELECT a.Eid , b.typ
FROM sample_data a
CROSS JOIN sample_data b
ORDER BY 1, 2
March 5, 2021 at 4:30 pm
So you are just trying to make sure you don't load the same file twice. Maybe if you create another table of all the files you have loaded, insert a...
March 5, 2021 at 3:27 pm
Why are you worried about getting duplicates?
If you make sure the same file isn't loaded twice then would that solve your problem?
March 5, 2021 at 2:53 pm
Viewing 15 posts - 886 through 900 (of 2,645 total)