Viewing 15 posts - 76 through 90 (of 7,191 total)
All good advice above. Some other things to be aware of:
(1) You can't downgrade from Enterprise to Standard. You'd need to uninstall and then reinstall. If you have the SQL...
April 30, 2020 at 9:54 am
If you tried that on your data, you'd see that it won;t work. It'll only select dates in the start month because you use "=" instead of ">". Also, it...
April 30, 2020 at 9:27 am
Use DATEFROMPARTS to build the date from the given year and month. For the end date, you'll want to add 1 to the month so that you include the whole...
April 29, 2020 at 4:00 pm
That's not something I've ever had to do before, or even wondered how to do if I did. If you use SSMS to script out the database, then the ALTER...
April 27, 2020 at 3:38 pm
Assuming that for each order line you have either an order date or an order date and a ship date (and no other rows), something like this should work. If...
April 27, 2020 at 3:30 pm
I can't reproduce that. I created SAMPLETABLE from your script, and, since you didn't provide any sample data (only expected results), I inserted the values 1, 1, NULL, 1, 1. ...
April 27, 2020 at 10:02 am
With no DDL or sample data for TABLEX and TEST, we can but speculate. My strong suspicion is that the TYPE_OF_ORDER column in TEST is int or some other numeric...
April 24, 2020 at 3:43 pm
Unless I've missed something, this should work:
SELECT
tb1.table1id,
tb2.table2id,
tb2.name,
tb2.department,
tb2.city,
tb2.modifieddate,
tb2.linkingID
FROM #table2 tb2
INNER JOIN #table1 tb1
ON tb2.linkingID = tb1.linkingID
OR (tb1.city = tb2.city and tb1.department = tb2.department and tb1.name = tb2.name)
John
April 24, 2020 at 11:39 am
The easiest way to find out is to try it. You won't break the database by attempting to restore a backup from the wrong place in the chain - it'll...
April 24, 2020 at 8:59 am
They should automatically be granted access at installation, as NT SERVICE\MSSQLSERVER and NT SERVICE\SQLSERVERAGENT, certainly for modern versions (say 2012 and above). Check that they exist on yours - if...
April 23, 2020 at 2:05 pm
There's a column in backupset called description or backup_description or something like that. Many third party utilities will write their name in there.
John
April 22, 2020 at 1:09 pm
Jon
What are they interested in - the size it's going to take up on disk, or the size of the actual data in it? Just add up the sizes of...
April 21, 2020 at 3:10 pm
And so,Is there any way that I can fetch both at the same time(so that it can be completed in 6 mins only).
So did you look at my suggestion...
April 21, 2020 at 7:46 am
I can even work with a query instead of view.
Again,I just want to confirm if working with a table runs fast than a view?
That's a "how long is a...
April 20, 2020 at 6:52 pm
Viewing 15 posts - 76 through 90 (of 7,191 total)