Viewing 15 posts - 121 through 135 (of 7,608 total)
References in SQL are to object names. The code will resolve based on the name.
A rename can't happen while the table is being queried, because a schema lock is in...
August 27, 2024 at 7:02 pm
I agree. Why the "need" to jump to such a huge number?
August 20, 2024 at 8:22 pm
Correct. You'd have to use decimal(38, 0) or some other larger value type rather than bigint.
August 19, 2024 at 8:07 pm
So you deliberately set the value so that it would get too large for a bigint ... and that seems to be your error.
Not sure why you felt the need...
August 19, 2024 at 3:08 pm
Theoretically @@IDENTITY value could be too large for a bigint. Hard to imagine actually using enough values to go past 19 digits, but it's theoretically possible.
Btw, you should get @@IDENTITY...
August 19, 2024 at 2:19 pm
Be sure you set and are using the correct variable. In your original code, you use "@tblName" but you never set the value of that variable. That's why I used...
August 16, 2024 at 8:14 pm
You can't use a variable in a DROP TABLE statement in SQL.
Change it to:
SET @dropCommand = N'DROP TABLE dbo.' + @tableName
August 16, 2024 at 5:28 pm
SQL data files could in theory gain from 64K cluster size, since SQL often writes data in 64K chunks.
SQL log files are different, so 32K should be just fine for...
August 16, 2024 at 2:33 pm
If you issued an UPDATE against an empty table, the UPDATE counter would still increment.
Maybe that's what happened?
August 15, 2024 at 10:32 pm
(1) more RAM (if you have only 300GB for SQL Server)
(2) do you (page) compress the data?
August 15, 2024 at 3:33 pm
The @p_iType is declared in the called proc as a parameter.
August 12, 2024 at 5:37 pm
Correct. How would SQL ever know you've deleted the backup file? It doesn't know, shouldn't know and shouldn't care.
I don't use maintenance plans (I'm a DBA, we use scripts), but...
August 12, 2024 at 5:36 pm
Yes, that's it, that's all that's required. The full could have been a month (or whatever) ago for all SQL cares. It's up to you to keep any backups you...
August 12, 2024 at 2:29 pm
3. SQL doesn't "know" you've deleted the backup file. Otherwise you could use it as a base. SQL will assume, reasonably enough, that if you take a full backup and...
August 12, 2024 at 2:20 pm
1 NO
2 It isn't. Multiple types of file can be sent a single physical file in SQL Server backups.
3 Look for the last full ('D') backup immediately preceding the 'I'...
August 11, 2024 at 3:14 pm
Viewing 15 posts - 121 through 135 (of 7,608 total)