Viewing 15 posts - 6,616 through 6,630 (of 8,761 total)
Out of curiosity, why are you using dynamic sql, looking at this query, I cannot see the need for it?
😎
November 9, 2014 at 10:17 am
tswalton (11/9/2014)
I was trying this
select * from tblDomains where (domain...
November 9, 2014 at 10:06 am
Quick suggestion, use the charindex or patindex functions
😎
USE tempdb;
GO
SET NOCOUNT ON;
DECLARE @URL VARCHAR(150) = 'mywebsite.co.uk/folder/page.html';
DECLARE @tblDomain TABLE
(
Domain_ID INT IDENTITY(1,1) NOT NULL PRIMARY KEY CLUSTERED
...
November 9, 2014 at 9:47 am
peter478 (11/8/2014)
can you give me an example?
Quick example, more info here sp_executesql (Transact-SQL)
😎
DECLARE @COL_NAME NVARCHAR(128) = N'service_id';
DECLARE @PARAM_STR NVARCHAR(255) = N'@COL_NAME NVARCHAR(128)';
DECLARE @SQL_STR NVARCHAR(MAX) = N'
SELECT
...
November 8, 2014 at 9:49 pm
Ed Wagner (11/8/2014)
November 8, 2014 at 1:17 pm
Quick thought, nothing wrong with the DROP/RENAME approach, just remember to re-create any foreign key constraint etc. if applicable. Another way of doing this is to switch partitions, normally quicker...
November 8, 2014 at 10:06 am
imran 60091 (11/7/2014)
November 8, 2014 at 4:56 am
Quick though, since you are already using sp_executesql, you should consider passing the parameter using the parameter string parameter of that procedure.
😎
November 8, 2014 at 4:38 am
Quick thought, it might be easier to query the sys.partitions for the row count
😎
;WITH LIST_TABLE AS
(
SELECT
T.object_id
...
November 8, 2014 at 3:06 am
Just got an "interesting" email via SSC, Steve are you expanding the "service"?
😎
November 8, 2014 at 2:09 am
tim_harkin (10/28/2014)
November 8, 2014 at 1:05 am
Jeff Moden (11/7/2014)
qinzhen (11/7/2014)
Eirikur Eiriksson (11/6/2014)
There are several ways of doing this, somewhat depends on the circumstances which fits best.
Quick questions:
1) Does each file have a single format (number of...
November 8, 2014 at 12:52 am
ufrufr (11/7/2014)
Eirikur Eiriksson (11/6/2014)
November 7, 2014 at 1:04 am
niladri.primalink (11/6/2014)
Hope you are doing great. I want to know one thing. I have idea on SMK, DMK and symmetric and asymmetric keys. I have also idea on TDE....
November 6, 2014 at 11:16 pm
Quick thoughts, first is that the non-clustered index is not a covering index and will require an additional key lookup to satisfy the query output. Therefore the server simply deems...
November 6, 2014 at 10:56 pm
Viewing 15 posts - 6,616 through 6,630 (of 8,761 total)