Forum Replies Created

Viewing 15 posts - 2,746 through 2,760 (of 8,761 total)

  • RE: Find column values with Pattern

    John Mitchell-245523 (11/14/2016)


    Eirikur Eiriksson (11/14/2016)


    John Mitchell-245523 (11/14/2016)


    OK, this query will look at all columns with data length of 15 or more and show the number of values with the requested...

  • RE: Find column values with Pattern

    Here is a query I often use, adjusted to this requirements

    😎

    USE TEEST;

    GO

    SET NOCOUNT ON;

    DECLARE @PATTERN NVARCHAR(MAX) = N'INC[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]';

    DECLARE @SEARCH_TEMPLATE NVARCHAR(MAX) = N'

    UNION...

  • RE: Find column values with Pattern

    John Mitchell-245523 (11/14/2016)


    OK, this query will look at all columns with data length of 15 or more and show the number of values with the requested pattern. Beware that...

  • RE: Insert into table

    wikus (11/14/2016)


    Thank you very much for all the replies.

    You are very welcome.

    😎

  • RE: Insert into table

    Here is a suggestion towards a solution

    😎

    USE TEEST;

    GO

    SET NOCOUNT ON;

    IF OBJECT_ID(N'dbo.Table_1') IS NOT NULL DROP TABLE dbo.Table_1;

    CREATE TABLE [dbo].[Table_1](

    [Col1] [nchar](10) NULL,

    [Col2] [nchar](10) NULL,

    [Col3] [nchar](10) NULL,

    [Col4] [nchar](10) NULL,

    [Col5] [nchar](10) NULL

    ) ON...

  • RE: Dropping a view

    Good question and a good case for using WITH SCHEMABINDING when creating a view.

    😎

  • RE: Find column values with Pattern

    info 58414 (11/14/2016)


    Hi,

    How can I find all the rows of a database that have a particular pattern: for example: (INC000007615432) or with other words:

    Find all columns in a Database, where...

  • RE: Insert into table

    wikus (11/14/2016)


    Hi,

    I would appreciate some help please.

    I want to do a select distinct only on Col2 and add rows for those.

    INSERT INTO Table_1(Col1, Col2, Col3,Col4, Col5)

    SELECT DISTINCT Col1, Col2, 'ZZZ',...

  • RE: MICROSOFT SQL SERVER LICENSE TERMS

    IT researcher (11/14/2016)


    I need to use SQL server 2008 because it' the latest SQL server which is supported in XP, there are many customers present who still uses the...

  • RE: SQL complex join with One to Many relationships

    At the first glance, it looks like you are missing the second join specification for the ResourceGroupEnvironment table as the duplication is coming from that table (different VIP values), see...

  • RE: Fast Import Data with xml column

    psred (11/13/2016)


    Can anyone tell me the quick way to copy a source table of 1.3Tb data to destination table with xml datatype column in source table.

    Can you elaborate...

  • RE: Help with a query runs forever but returns nothing.

    The first thing I suggest is to rewrite the WHERE clause to eliminate the conversion and concatenation, either change to an EXIST or JOIN clause.

    😎

    INSERT INTO [addb20].[Target_MergeAMD4_WithData].[dbo].[ConfigOption]

    (

    ...

  • RE: SQL Query/JOB Error

    Can you post the DDL (create table) scripts for MAP, MAP_DAY and MAP_MONTH please?

    😎

  • RE: Restore trans log(s) from vss snapshot-based backuo

    124420294 (11/13/2016)


    But from below microsoft official docuement, it seems that vss snapshot plus trans log restore is support.

    https://technet.microsoft.com/en-us/library/cc966520.aspx

    (Full restore with additional rollforwards)

    The document you are referring to is an...

  • RE: SQL Query/JOB Error

    gunadi.arunanto (11/13/2016)


    Hi all,

    Need advise for my error

    Executed as user: NT AUTHORITY\NETWORK SERVICE. Arithmetic overflow error converting IDENTITY to data type int. [SQLSTATE 22003] (Error 8115) Arithmetic overflow occurred. [SQLSTATE...

Viewing 15 posts - 2,746 through 2,760 (of 8,761 total)