Viewing 15 posts - 1,276 through 1,290 (of 2,645 total)
I am intelligent and I have no varchar of 1 billion characters.
Also, in my designs, there is usually no place for varchar. In that case, I would use...
December 5, 2019 at 12:23 pm
I am using shrink file with truncate only option.
That will only clear space if it happens to be free at the end of the file. As the data you...
December 4, 2019 at 7:06 pm
IF OBJECT_ID('dbo.INFGenerateInsertStatement','P') IS NULL BEGIN
EXEC ('CREATE PROCEDURE dbo.INFGenerateInsertStatement AS')
END
GO
-- *****************************************************************************
-- Sample call
-- EXEC dbo.INFGenerateInsertStatement 'XXXXXXXXX', 'dbo', 'Integration%', 0
-- *****************************************************************************
ALTER PROCEDURE dbo.INFGenerateInsertStatement
(
...
November 30, 2019 at 9:29 pm
EXEC has been deprecated.
Drew
Have you got a Microsoft link that states this?
November 30, 2019 at 6:14 am
With 550 columns it's not possible to test every combination of 2 or more columns to see if they are unique. It's a combinatorial problem with a search space of...
November 27, 2019 at 2:28 pm
I thought you could just open a 2008 database in 2017?
November 27, 2019 at 2:33 am
This gives the results you have requested. But you can't guarantee these results if you have nothing concrete to order the data by.
;WITH CTE AS
(
...
November 26, 2019 at 4:12 pm
Here is a demonstration that the locking hints work. You will need to create a permanent version of Jeff's table (dbo.Codes) as the procedure will be run from different sessions.
With...
November 25, 2019 at 11:53 am
Hello,
I have the following queries that I want to group together in one optimized query. I would like to compare the difference between movements and balances with movements and...
November 24, 2019 at 2:03 am
I think you just need to write a stored procedure that's called when a new code is to be allocated.
It just needs the correct locking hints specified on the...
November 23, 2019 at 3:05 am
I don't think it'd a good idea to have more than one log file for a database:
https://www.sqlskills.com/blogs/paul/multiple-log-files-and-why-theyre-bad/
there's one exception - your log file grows stupidly big and...
November 22, 2019 at 3:23 pm
I don't think it'd a good idea to have more than one log file for a database:
https://www.sqlskills.com/blogs/paul/multiple-log-files-and-why-theyre-bad/
November 22, 2019 at 1:10 pm
Try doing
select TOP (50000) * from EXT_data_Hist_TbL
on each database, without anything in the WHERE or ORDER BY, and see how many reads it does.
November 21, 2019 at 7:55 pm
I think this is a direct conversion of your SQL, just subtracting 2 inline SQL statements:
SELECT (SELECT count(p.[peopleId])
...
November 21, 2019 at 4:09 pm
Grab a copy of NGrams8k and you can do this:
Declare @Temp Table(SomeId INT IDENTITY, [Data] VarChar(8000))
Insert @Temp ([Data])
Values('hello my name is john 07999999999 smith...
November 21, 2019 at 3:49 pm
Viewing 15 posts - 1,276 through 1,290 (of 2,645 total)