Viewing 15 posts - 466 through 480 (of 748 total)
In SSMS, you can right click on the server & select properties, then select Memory. You should set memory to something lower than total server memory so that sufficient memory...
April 8, 2022 at 4:31 pm
Statistics are what the query optimizer uses to choose an execution plan.They contain statistical information about the distribution of values. The Query Optimizer uses these statistics to estimate the cardinality,...
April 8, 2022 at 4:16 pm
What edition of SQL Server? Hopefully not Express, as it can't take advantage of all that horsepower.
Compare actual execution plans.
You might try updating statistics on the new computer.
You have more...
April 8, 2022 at 2:59 pm
SQL Server Management Studio is a separate install: https://docs.microsoft.com/en-us/sql/ssms/download-sql-server-management-studio-ssms?view=sql-server-ver15
April 8, 2022 at 1:02 pm
But your original query isn't querying sys.objects on the linked server, it's querying it on the server trying to use that linked server remotely.
If those tables you need in sys.objects...
April 6, 2022 at 4:59 pm
If print didn't return anything, that tells you you're getting a null when concatenating. Since you're only concatenating obj.name, that seems to imply that the following returns nothing in the...
April 6, 2022 at 3:45 pm
Assuming dbo.BC_Data_Capture_Staging exists in the database in which you execute this statement:
...
April 6, 2022 at 3:25 pm
SQL Server doesn't support the CREATE TABLE as SELECT syntax.
You either explicitly create and then insert, or use SELECT INTO -- e.g.,
SELECT ID, Rail_Road, NCS_Codeline, NCS_Subdivision
INTO Codelines_backup
FROM...
April 5, 2022 at 2:06 pm
I have seen temporary shortages of specific instance configurations in specific regions, but It seems odd that AWS couldn't supply the EC2 instances you need in the long run. Are...
April 5, 2022 at 2:03 pm
"else 0"
Try changing 0 (zero) to '0' or some other string
April 4, 2022 at 1:21 pm
I'm not aware of any TSQL functions, since it involves nslookup, telnet & SMTP EHLO commands. You can certainly do email address syntax validation in TSQL, but that doesn't guarantee...
April 1, 2022 at 2:21 pm
The error is telling you the problem -- all the columns used in a foreign key must be all the columns in a unique index on the primary table. If...
March 31, 2022 at 1:15 pm
If it's only that combination we want to exclude, I think we'd want
SELECT ...
FROM t
WHERE NOT (EMPLOYEE_ID = 123 AND WORKSITE_ID = 22)
(EMPLOYEE_ID != 123 AND WORKSITE_ID...
March 30, 2022 at 8:34 pm
Viewing 15 posts - 466 through 480 (of 748 total)