Viewing 15 posts - 1 through 15 (of 15 total)
I don't want to use LIKE because the table contains more than 2 million rows. It makes the query to run very slow.
May 30, 2011 at 7:51 am
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)
April 9, 2009 at 5:54 am
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.
April 8, 2009 at 6:45 am
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...
April 8, 2009 at 6:34 am
DECLARE @xml XML
SELECT @xml = BulkColumn
FROM OPENROWSET
(
BULK 'D:\Test1.dat', SINGLE_BLOB
...
April 8, 2009 at 6:28 am
a2zwd (3/26/2009)
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...
March 30, 2009 at 6:19 am
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...
March 23, 2009 at 7:09 am
dbcc checkident(Table_NAME, reseed, 0)
March 23, 2009 at 6:50 am
Gail,
thanks a lot.
Artur
PS. nice photo... sitting on the elephant 🙂
June 13, 2008 at 5:36 am
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...
June 13, 2008 at 5:10 am
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...
June 13, 2008 at 4:52 am
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]...
June 13, 2008 at 12:48 am
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...
June 12, 2008 at 11:53 pm
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.
May 12, 2008 at 2:56 am
Viewing 15 posts - 1 through 15 (of 15 total)