Forum Replies Created

Viewing 15 posts - 6,616 through 6,630 (of 8,761 total)

  • RE: easy wildcard question

    Out of curiosity, why are you using dynamic sql, looking at this query, I cannot see the need for it?

    😎

  • RE: easy wildcard question

    tswalton (11/9/2014)


    Thanks for the reply. I actually found a really quick solution to the problem that I'm not sure is documented anywhere.

    I was trying this

    select * from tblDomains where (domain...

  • RE: easy wildcard question

    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

    ...

  • RE: variable char

    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

    ...

  • RE: Are the posted questions getting worse?

    Ed Wagner (11/8/2014)


    Something must have happened with the spam filter. In the Recent Posts...Posts Added Today, there were 3 actual posts across the 4 pages. All other posts...

  • RE: General approach BULK INSERT, SELECT INTO, RENAME

    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...

  • RE: Using ":" in and attribute name in an xml file

    imran 60091 (11/7/2014)


    I have a package that imports and transforms xml files provided by a third party vendor. This process has been failing since the vendor changed attribute names in...

  • RE: variable char

    Quick though, since you are already using sp_executesql, you should consider passing the parameter using the parameter string parameter of that procedure.

    😎

  • RE: Update record in table

    Quick thought, it might be easier to query the sys.partitions for the row count

    😎

    ;WITH LIST_TABLE AS

    (

    SELECT

    T.object_id

    ...

  • RE: Are the posted questions getting worse?

    Just got an "interesting" email via SSC, Steve are you expanding the "service"?

    😎

  • RE: Failed upgrade, now error 0x80070714

    tim_harkin (10/28/2014)


    Solved it myself. When I looked at 'C:\Program Files\Microsoft SQL Server\120\Setup Bootstrap\SQLServer2014\setup.exe' the file size was 0 KB. I renamed that to setup.exe.old, and re-ran the installer...

  • RE: how to import a series of files with different columns

    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...

  • RE: Why index scan instead of index seek?

    ufrufr (11/7/2014)


    Eirikur Eiriksson (11/6/2014)


    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...

  • RE: Encryted Records in All Colums

    niladri.primalink (11/6/2014)


    Hi All,

    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....

  • RE: Why index scan instead of index seek?

    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...

Viewing 15 posts - 6,616 through 6,630 (of 8,761 total)