Viewing 15 posts - 466 through 480 (of 754 total)
You can use STRING_SPLIT to turn the delimited data into separate rows.
You can use CROSS APPLY (if product_descr is never null), or OUTER APPLY (if there are nulls) after...
April 13, 2022 at 7:03 pm
You haven't mentioned the mdf file (primary data file). The corruption is in your mdf and/or one or more of the ndf files.
You restore from backups. Do you have recent...
April 13, 2022 at 1:12 pm
Do you know how to get execution plans? Do you know how to interpret them?
You can generate an execution plan in SSMS if you click the "Include Actual Execution Plan"...
April 8, 2022 at 4:41 pm
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
Viewing 15 posts - 466 through 480 (of 754 total)