Viewing 15 posts - 1,876 through 1,890 (of 7,608 total)
Not enough details to get very specific, obviously.
However, this rules will always apply:
1. Create the clus index on all temp tables before loading them. There are techniques for doing this...
February 18, 2021 at 7:13 pm
What about opportunity cost? The tally is used here to gen years, so the number is inherently very small and will always be so. It is really worth the time...
February 18, 2021 at 7:04 pm
There's no need for anything remotely close to that number of rows (exceeding 2B for l5) for years
But what if I need to know...
February 18, 2021 at 6:10 pm
In general, agreed. Although that specific implementation of an inline tally table is, frankly, horrible. There's no need for anything remotely close to that number of rows (exceeding 2B for...
February 18, 2021 at 5:27 pm
would be nice to have something like this i guess, sucks it doesnt work
create table #table
(old_column int)
insert into #table
values(1),(2)
alter table #table
add new_column int default (case when...
February 18, 2021 at 5:18 pm
You can change the default file locations when installing SQL Server. You can also move the system databases later if you want to.
February 18, 2021 at 5:14 pm
Use ENCRYPTBYASYMKEY and DECRYPTBYASYMKEY.
February 17, 2021 at 5:31 am
No, not that way.
But, for this situation, you could make it a computed / virtual column.
ALTER TABLE [MyTable1]
ADD NewRange AS CAST(CASE WHEN Status <> 'AAA' /* OR Status IS NULL?...
February 17, 2021 at 5:28 am
Would you modify the sample data to include the "Theoretical Cycle Number", i.e. the desired cycle number you want added to each row.
I still don't fully understand all the criteria...
February 16, 2021 at 8:02 pm
In your specific version of SQL, there may be different columns returned by the FILELISTONLY command. Run a FILELISTONLY command in the main window and compare the columns that come...
February 16, 2021 at 3:29 pm
If there are existing overlapping object names, I'd resolve them -- i.e. rename one of the objects -- as part of the rework. So that, even if stored in separate...
February 16, 2021 at 3:14 pm
1 Be sure to specify the schema name on the table, assuming of course that it doesn't change from user to user.
FROM dbo.MYTABLE
2. Make the variable the exact same type...
February 16, 2021 at 3:04 pm
Here's the revised code. It should work exactly as written now.
DECLARE @sql nvarchar(max)
IF OBJECT_ID('tempdb.dbo.#restore_filelistonly') IS NOT NULL
DROP TABLE #restore_filelistonly;
CREATE TABLE #restore_filelistonly (
...
February 15, 2021 at 3:21 pm
Something along the lines below, adjust it as needed to match your environment. You didn't say anything about changing path names for the files, so I just used the paths...
February 14, 2021 at 9:34 pm
...hope you can work it out.
You really need to provide truly representative sample data if you want a full solution.
With the sample data thing, with this one it's...
February 12, 2021 at 4:35 pm
Viewing 15 posts - 1,876 through 1,890 (of 7,608 total)