Forum Replies Created

Viewing 15 posts - 1 through 15 (of 15 total)

  • RE: "Starts with" in Full-Text search

    I don't want to use LIKE because the table contains more than 2 million rows. It makes the query to run very slow.

    -------------------------
    - Name?
    - Abu Dalah Sarafi.
    - Sex?
    - 3 times a week!
    - No, no. Male or Female?
    - Male, female, sometimes camel...

  • RE: Stored procedures

    nice question

    -------------------------
    - Name?
    - Abu Dalah Sarafi.
    - Sex?
    - 3 times a week!
    - No, no. Male or Female?
    - Male, female, sometimes camel...

  • RE: import *.dat file into SQL database

    try this.

    DECLARE @xml XML

    SELECT @xml = BulkColumn

    FROM OPENROWSET

    (

    BULK 'D:\Test1.dat', SINGLE_BLOB

    ) X

    SELECT

    C.value('.', 'nvarchar(50)') as [Message],

    C.value('@time', 'datetime') as [Time],

    C.value('@type', 'nvarchar(50)') as [Type],

    C.value('@code', 'nvarchar(50)') as [Code]

    FROM @xml.nodes('/Msg') X(C)

    -------------------------
    - Name?
    - Abu Dalah Sarafi.
    - Sex?
    - 3 times a week!
    - No, no. Male or Female?
    - Male, female, sometimes camel...

  • RE: insert and update issue

    Use Sql Server Profiler and look what statement exactly passed to server to run.

    If it wouldn't help, write here your stored procedure and the statement from Sql Server Profiler.

    -------------------------
    - Name?
    - Abu Dalah Sarafi.
    - Sex?
    - 3 times a week!
    - No, no. Male or Female?
    - Male, female, sometimes camel...

  • RE: Create table between 2 linked servers

    1)

    Drop table

    Generate the script of structure and date of the other table with Sql Publishing Wizard

    Run generated script

    2)

    Drop table

    Generate the script of the table

    USE bcp tool to load data (table...

    -------------------------
    - Name?
    - Abu Dalah Sarafi.
    - Sex?
    - 3 times a week!
    - No, no. Male or Female?
    - Male, female, sometimes camel...

  • RE: import *.dat file into SQL database

    DECLARE @xml XML

    SELECT @xml = BulkColumn

    FROM OPENROWSET

    (

    BULK 'D:\Test1.dat', SINGLE_BLOB

    ...

    -------------------------
    - Name?
    - Abu Dalah Sarafi.
    - Sex?
    - 3 times a week!
    - No, no. Male or Female?
    - Male, female, sometimes camel...

  • RE: sql full text search like google search

    a2zwd (3/26/2009)


    Hi

    Thanks for the reply.

    I have created the full text index on the table.

    When I issued a query like

    select * from tablename where contains(*,'Lon')

    Its not retrieving anything. When I...

    -------------------------
    - Name?
    - Abu Dalah Sarafi.
    - Sex?
    - 3 times a week!
    - No, no. Male or Female?
    - Male, female, sometimes camel...

  • RE: checking binary data for IMAGE field

    If you do not want to return anything if ImageData is empty you can add simple checking "is not null"

    SqlCommand command = new SqlCommand(String.Format("select ImageData from ImagesStore where ImageId={0} and...

    -------------------------
    - Name?
    - Abu Dalah Sarafi.
    - Sex?
    - 3 times a week!
    - No, no. Male or Female?
    - Male, female, sometimes camel...

  • RE: How do i set identity column to zero?

    dbcc checkident(Table_NAME, reseed, 0)

    -------------------------
    - Name?
    - Abu Dalah Sarafi.
    - Sex?
    - 3 times a week!
    - No, no. Male or Female?
    - Male, female, sometimes camel...

  • RE: Indexes on table with more than 20 columns

    Gail,

    thanks a lot.

    Artur

    PS. nice photo... sitting on the elephant 🙂

    -------------------------
    - Name?
    - Abu Dalah Sarafi.
    - Sex?
    - 3 times a week!
    - No, no. Male or Female?
    - Male, female, sometimes camel...

  • RE: Indexes on table with more than 20 columns

    Gail,

    Thanks for your help.

    the IsTemplate = 0 have about 99.3% of rows.

    IsActive = 1 have about 85% of rows.

    You see, the search query is made dynamically, I posted here only...

    -------------------------
    - Name?
    - Abu Dalah Sarafi.
    - Sex?
    - 3 times a week!
    - No, no. Male or Female?
    - Male, female, sometimes camel...

  • RE: Indexes on table with more than 20 columns

    d.IsActive always = 1

    d.IsTemplate always = 0

    d.DocumentTypeId always existing parameter.

    I cannot suppose what parameters will be used more frequently. This project is not in production yet. But I have created...

    -------------------------
    - Name?
    - Abu Dalah Sarafi.
    - Sex?
    - 3 times a week!
    - No, no. Male or Female?
    - Male, female, sometimes camel...

  • RE: Indexes on table with more than 20 columns

    TABLE SCHEME:

    CREATE TABLE [dbo].[Documents](

    [DocumentId] [numeric](18, 0) IDENTITY(1,1) NOT NULL,

    [DocumentTypeId] [numeric](18, 0) NOT NULL,

    [SectionId] [numeric](18, 0) NOT NULL,

    [TemplateId] [numeric](18, 0) NULL,

    [Title] [varchar](200) NULL,

    [Description] [varchar](200) NULL,

    [ContentSource] [varchar](200) NULL,

    [ContentSourcePublicationDate] [datetime] NULL,

    [ContentSubject] [varchar](200) NULL,

    [ContentPublisher]...

    -------------------------
    - Name?
    - Abu Dalah Sarafi.
    - Sex?
    - 3 times a week!
    - No, no. Male or Female?
    - Male, female, sometimes camel...

  • RE: Indexes on table with more than 20 columns

    Thanks for reply.

    I have some varchar columns and Full text indexing is set for these columns and I use FREETEXT and CONTAINS for searching in these columns. The others are...

    -------------------------
    - Name?
    - Abu Dalah Sarafi.
    - Sex?
    - 3 times a week!
    - No, no. Male or Female?
    - Male, female, sometimes camel...

  • RE: Error message received idf deadlock occurs during parallel processing in sql server

    I'm getting "Transaction (Process ID 76) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction." too.

    -------------------------
    - Name?
    - Abu Dalah Sarafi.
    - Sex?
    - 3 times a week!
    - No, no. Male or Female?
    - Male, female, sometimes camel...

Viewing 15 posts - 1 through 15 (of 15 total)