Quantcast
Channel: Forum SQL Server Database Engine
Viewing all 15889 articles
Browse latest View live

Table structure changing the query plan on a non-clustered index.

$
0
0

I've been trying to understand why SQL server decides build a very complex query plan in some cases. 

I've got two test Tables. 

- Tab1 and Tabx 

When the table only has a single data page the select statement behaves as I would expect and uses the Index efficiently. 

However as soon as there's two data pages pages, the query run against xTab explodes into this:

I'm trying to understand why this is. Below are two test scripts that create the two tables:

CREATE TABLE dbo.Tab1
(
id BIGINT NOT NULL,
Alias VARCHAR(36) NOT NULL,
Version INT,
Locale VARCHAR(5),
Value1 VARCHAR(100) NOT NULL
);

CREATE NONCLUSTERED INDEX [IDX1] ON [dbo].[Tab1] 
(
	[id] ASC,
	[Alias] ASC,
	[Version] DESC,
	[Locale] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
GO


Truncate table Tab1
Go
DECLARE @i AS int = 1;
WHILE @i < 200
BEGIN
SET @i = @i + 1;
INSERT INTO dbo.Tab1
(id, Alias, Version,Locale,Value1)
VALUES
(@i, 'x', 1,'en-us','Test1');
END;
Go
-- Take a look at how many pages we have
SELECT index_type_desc, page_count,record_count, avg_page_space_used_in_percent
FROM sys.dm_db_index_physical_stats(DB_ID(N'Test1'), OBJECT_ID(N'dbo.Tab1'), NULL, NULL , 'DETAILED');


Select 
  Id
From
  Tab1 a 
Where
  a.id = 1
  and a.Alias	= 'x'
  and  (a.Locale = 'en-us' or a.Locale is NULL)
  and a.Version = 1 
Order By Version desc

vs

USE [test1]
GO

/****** Object:  Table [dbo].[xTab1]    Script Date: 09/05/2013 08:56:38 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[xTab1](
	[ObjectPropertyCode] [bigint] IDENTITY(1,1) NOT NULL,
	[ObjectCode] [bigint] NOT NULL,
	[String200Name] [varchar](30) NOT NULL,
	[String200] [varchar](2000) NOT NULL,
	[GroupCode] [bigint] NOT NULL,
	[Status] [char](1) NOT NULL,
	[EntityObjectCode] [bigint] NOT NULL,
	[Type] [varchar](5) NOT NULL,
	[ObjectPropertyAlias] [varchar](60) NOT NULL,
	[TypeObjectCode] [bigint] NOT NULL,
	[Version] [int] NULL,
	[Locale] [varchar](5) NULL
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

ALTER TABLE [dbo].[xTab1] ADD  CONSTRAINT [DF_xTab1_StringName]  DEFAULT ('') FOR [String200Name]
GO

ALTER TABLE [dbo].[xTab1] ADD  CONSTRAINT [DF_xTab1_String]  DEFAULT ('') FOR [String200]
GO

ALTER TABLE [dbo].[xTab1] ADD  CONSTRAINT [DF__47jectPro__Group__08EA5793]  DEFAULT ((0)) FOR [GroupCode]
GO

ALTER TABLE [dbo].[xTab1] ADD  CONSTRAINT [DF_xTab1_Status]  DEFAULT ('A') FOR [Status]
GO

ALTER TABLE [dbo].[xTab1] ADD  CONSTRAINT [DF_xTab1_EntityObjectCode]  DEFAULT ((-1)) FOR [EntityObjectCode]
GO

ALTER TABLE [dbo].[xTab1] ADD  CONSTRAINT [DF_xTab1_47]  DEFAULT ('') FOR [Type]
GO

ALTER TABLE [dbo].[xTab1] ADD  CONSTRAINT [DF_xTab1_ObjectPropertyAlias]  DEFAULT ('') FOR [ObjectPropertyAlias]
GO

ALTER TABLE [dbo].[xTab1] ADD  CONSTRAINT [DF_xTab1_TypeObjectCode]  DEFAULT ((-1)) FOR [TypeObjectCode]
GO

/****** Object:  Index [IDX1]    Script Date: 09/05/2013 08:51:45 ******/
CREATE NONCLUSTERED INDEX [IDX1] ON [dbo].[xTab1] 
(
	[ObjectCode] ASC,
	[ObjectPropertyAlias] ASC,
	[Version] DESC,
	[Locale] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
GO

Truncate table xTab1
Go
DECLARE @i AS int = 1;
WHILE @i < 101
BEGIN
SET @i = @i + 1;
INSERT INTO dbo.xTab1
(ObjectCode, ObjectPropertyAlias, Version,Locale,String200,GroupCode)
VALUES
(@i, 'x', 1,'en-us','Test1',0);
END;
Go
-- Take a look at how many pages we have
SELECT index_type_desc, page_count,record_count, avg_page_space_used_in_percent
FROM sys.dm_db_index_physical_stats(DB_ID(N'Test1'), OBJECT_ID(N'dbo.xTab1'), NULL, NULL , 'DETAILED');


Select 
  ObjectCode
From
  xTab1 a 
Where
  a.ObjectCode = 514345440
  and a.ObjectPropertyAlias	= 'x'
  and  (a.Locale = 'en-us' or a.Locale is NULL)
  and a.Version = 1 
Order By Version desc


When to do Index Maintence

$
0
0

Hi, how i monitor/manage/control when is index need to be created for reporting stored procedure before end user complained 'time out' ?

PS: The amount of data is increasing everyday.

Windows user via group membership and sysadmin role for currently connected user

$
0
0

hello,

I am trying to get a list of currently connected user who has sysadmin role. For the Windows login who doesn't have their logins created on the server but are part of Windows group, there seem to be no way to find out whether they are sysadmin or not. I was hoping to join dm_exec_session to syslogins or sys.server_principals view but since the Individual login doesn't exist on the server it comes back with empty row. Does anyone know how to resolve this problem.

I am using SQL 2008 r2.

Thanks for your input.

Kush


Linq Query on execution throwing Exchange Spill error

$
0
0
 

In Our Application while executing one of the LINQ Query we are getting error.

Type: System.Data.SqlClient.SqlException

Message: Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.

Source: .Net SqlClient Data Provider

HelpLink.ProdName: Microsoft SQL Server

HelpLink.ProdVer: 10.00.5829

HelpLink.EvtSrc: MSSQLServer

HelpLink.EvtID: -2

HelpLink.BaseHelpUrl:http://go.microsoft.com/fwlink

HelpLink.LinkId: 20476

Understanding in detailed we found it is due toExchange Spill.

This looks like an optimizer time-out as SQL Server is not able to create an execution plan for the LINQ query.
When the LINQ query is converted to normal query it runs in seconds.
We have a bunch of similar issues in our environment.
Below is the SQL Server profiler output. Please help!


Do we have a fix for the issue or is there a workaround available for this issue.

Appreciate any help on this issue.


Deadlock on table with one row and one primary key clustered index

$
0
0

I have one table with one row in it.

CREATE TABLE [dbo].[SYS_TRAN_ID](
 [NEXT_ID] [dbo].[id] NOT NULL,
 [PROCESS_ID] [dbo].[processid] NOT NULL,
 CONSTRAINT [XPKSTRANID] PRIMARY KEY CLUSTERED
(
 [NEXT_ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
END
GO

We occassionaly get deadlocks on this table with multiple SPIDs running this,

update SYS_TRAN_ID
  set  NEXT_ID = ( NEXT_ID + 1 ),
    @newID = NEXT_ID

The deadlock information is,

deadlock-list><deadlock victim="processaa31948"><process-list><process id="processaa31948" taskpriority="0" logused="0" waitresource="KEY: 5:342430164582400 (400041cd0cd1)" waittime="100" ownerId="8034737737" transactionname="UPDATE" lasttranstarted="2013-06-12T08:53:59.330" XDES="0x952a21790" lockMode="U" schedulerid="5" kpid="3204" status="suspended" spid="687" sbid="0" ecid="0" priority="0" trancount="2" lastbatchstarted="2013-06-12T08:53:59.330" lastbatchcompleted="2013-06-12T08:53:59.180" clientapp="CLAIMSTATION" hostname="PC6970A" hostpid="868" loginname="bnahrc" isolationlevel="read committed (2)" xactid="8034737737" currentdb="5" lockTimeout="4294967295" clientoption1="671088672" clientoption2="128056" databaseName="CWS_PROD"><executionStack><frame procname="CWS_PROD.dbo.xpi_GetNextID" line="65" stmtstart="3062" stmtend="3222" sqlhandle="0x0300050085bd2a1af9b38800b69d00000100000000000000">
update SYS_TRAN_ID
  set  NEXT_ID = ( NEXT_ID + 1 ),
    @newID = NEXT_ID     </frame></executionStack><inputbuf>
Proc [Database Id = 5 Object Id = 439008645]    </inputbuf></process><process id="process584f948" taskpriority="0" logused="0" waitresource="KEY: 5:342430164582400 (3500ef9ded8d)" waittime="4837" ownerId="8034775524" transactionname="UPDATE" lasttranstarted="2013-06-12T08:54:04.303" XDES="0x2dd548e90" lockMode="U" schedulerid="16" kpid="7232" status="suspended" spid="744" sbid="0" ecid="0" priority="0" trancount="2" lastbatchstarted="2013-06-12T08:54:04.303" lastbatchcompleted="2013-06-12T08:54:04.200" clientapp="CLAIMSTATION" hostname="PC6877" hostpid="5784" loginname="blopmm" isolationlevel="read committed (2)" xactid="8034775524" currentdb="5" lockTimeout="4294967295" clientoption1="671088672" clientoption2="128056" databaseName="CWS_PROD"><executionStack><frame procname="CWS_PROD.dbo.xpi_GetNextID" line="65" stmtstart="3062" stmtend="3222" sqlhandle="0x0300050085bd2a1af9b38800b69d00000100000000000000">
update SYS_TRAN_ID
  set  NEXT_ID = ( NEXT_ID + 1 ),
    @newID = NEXT_ID     </frame></executionStack><inputbuf>
Proc [Database Id = 5 Object Id = 439008645]    </inputbuf></process><process id="process5844e08" taskpriority="0" logused="1832" waitresource="KEY: 5:342430164582400 (3500ef9ded8d)" waittime="96" ownerId="8033146025" transactionname="implicit_transaction" lasttranstarted="2013-06-12T08:48:24.597" XDES="0x63ca5b970" lockMode="U" schedulerid="15" kpid="5696" status="suspended" spid="517" sbid="0" ecid="0" priority="0" trancount="2" lastbatchstarted="2013-06-12T08:54:09.070" lastbatchcompleted="2013-06-12T08:54:09.067" clientapp="CLAIMSTATION" hostname="PC9931" hostpid="3912" loginname="daughers" isolationlevel="read committed (2)" xactid="8033146025" currentdb="5" lockTimeout="4294967295" clientoption1="671088672" clientoption2="128058" databaseName="CWS_PROD"><executionStack><frame procname="CWS_PROD.dbo.xpi_GetNextID" line="65" stmtstart="3062" stmtend="3222" sqlhandle="0x0300050085bd2a1af9b38800b69d00000100000000000000">
update SYS_TRAN_ID
  set  NEXT_ID = ( NEXT_ID + 1 ),
    @newID = NEXT_ID     </frame></executionStack><inputbuf>
Proc [Database Id = 5 Object Id = 439008645]    </inputbuf></process></process-list><resource-list><keylock hobtid="342430164582400" dbid="5" objectname="CWS_PROD.dbo.SYS_TRAN_ID" indexname="XPKSTRANID" id="lockb2e654f80" mode="X" associatedObjectId="342430164582400"><owner-list><owner id="process5844e08" mode="X" /></owner-list><waiter-list><waiter id="processaa31948" mode="U" requestType="wait" /></waiter-list></keylock><keylock hobtid="342430164582400" dbid="5" objectname="CWS_PROD.dbo.SYS_TRAN_ID" indexname="XPKSTRANID" id="lock9a2614880" mode="U" associatedObjectId="342430164582400"><owner-list><owner id="processaa31948" mode="U" /></owner-list><waiter-list><waiter id="process584f948" mode="U" requestType="wait" /></waiter-list></keylock><keylock hobtid="342430164582400" dbid="5" objectname="CWS_PROD.dbo.SYS_TRAN_ID" indexname="XPKSTRANID" id="lock9a2614880" mode="U" associatedObjectId="342430164582400"><owner-list /><waiter-list><waiter id="process5844e08" mode="U" requestType="wait" /></waiter-list></keylock></resource-list></deadlock></deadlock-list>

Everything I have read thus far deals with update statements with where clauses and using a non-clustered index to cover the query. Can't find anything for my specific example of a table with just a clustered index and no where clause in the update statement. Any suggestions to help this deadlock issue?

sp_UpdateStats missing in database

$
0
0
Hi

We recently installed Lync at our company.
Lync creates 4 SQL instances and I have set up maintenance tasks for these instances.

Strange thing is that sp_UpdateStats does not exist in any of the databases created by the Lync installation.
If I create a new database on the server, I can run sp_UpdateStats with no problem.

I have not found one article out there about anyone having this problem. Strange. Can anyone help?

Server OS: Windows 2012 DataCenter
SQL: 2012 SP1

Please, please can someone help.

Thanks,
TDP

SQL Memory Usage

$
0
0

Hi All

I've been told that when dealing with 64bit SQL Servers with locked pages in memory enabled, using task manager to evaluate how much memory SQL Server is using is wrong.

What is a clear and concise way to retrieve SQL Server's memory usage on a server?

I came across the following script, can someone help me decipher what the columns actually mean?

select physical_memory_in_use_kb/(1024) as sql_physmem_inuse_mb,
locked_page_allocations_kb/(1024) as awe_memory_mb,
total_virtual_address_space_kb/(1024) as max_vas_mb,
virtual_address_space_committed_kb/(1024) as sql_committed_mb,
memory_utilization_percentage as working_set_percentage,
virtual_address_space_available_kb/(1024) as vas_available_mb,
process_physical_memory_low as is_there_external_pressure,
process_virtual_memory_low as is_there_vas_pressure
from sys.dm_os_process_memory

Thanks

Differential Backups Failing

$
0
0

The differential maintenance plan is failing with this error message  "Cannot perform a differential backup for database "Search_Service_Application_CrawlStoreDB_e9b6abf77def428095e4156c66fb4e06", because a current database backup does not exist. Perform a full database backup by reissuing BACKUP DATABASE, omitting the WITH DIFFERENTIAL option.
BACKUP DATABASE is terminating abnormally.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.

This is happing on a SQL Server 2012 Server Build 11.0.3128. I have verified we have a full backup. The maintenance plan is set to run every 6 hours but only fails during the 8:00 PM run. The current set up is this:

Full Backup on Weekly on Saturday at 9:00 PM

Differential Backup Daily every 6 hours starting at 2:00 AM ending at 11:59 PM

Transaction Log Backup once daily at 3:00 AM I don't know why it is set up this way as I did not set this.

One last note: This is a SharePoint database.

Any advice would be greatly appreciated - Thank You.


Sql Sever Restore error System.Data.SqlClient.SqlError: RESTORE detected an error on page (0:0) in database "test" as read from the backup set. (Microsoft.SqlServer.Smo)

$
0
0

Hi

getting below error in restore SQL Database,

System.Data.SqlClient.SqlError: RESTORE detected an error on page (0:0) in database "test" as read from the backup set. (Microsoft.SqlServer.Smo)

tx

suresh

Invalid object name for user-Defined table type parameter to stored procedure

$
0
0

I have a stored procedure defined with a single parameter whose type is a user-defined data type. On occasion when a call to this stored procedure is made I get an error "Invalid object name @ids". On a particular day I will this error only for a single stored procedure. We don't make any changes to the stored proc, or the C# code, but the next day everything works fine. I have attempted to pass different types of invalid data to the SP, like passing a null, or a table with the wrong data type for the columns, no data, etc. Using SSMS I have attempted to call this SP with different types of data for the parameters but nothing have done seems to generate this error.

My network people assur me that nothing with user permissions is being modified overnight. The SQL admins have checked the sql and system logs and there are no other errors being thrown.

In the SQL Profiler, I see 3 events, RPC:Starting, then SP:Starting, the RPC:Completed with a 1-Error in the error column.
I am tracing sp, rpc and sql statements.

The call to the stored proc is made by calling sp_procedure_params_rowset to get a list of parameters then building the stored procedure call. This is well tested code and always works as expected so I don't think how the stored proc call is built is what is causing this issue.

Any idea what could cause this?

SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[pc_ccs_check_ids]
	@ids as dbo.single_id_clustered readonly
AS
BEGIN
SET NOCOUNT ON
SELECT det.id, ch.[level]
FROM @ids det	
INNER JOIN change ch
    on det.id = ch.id
END
GO

Thank you for any help you can provide.

question regarding index properties for an index

$
0
0

Hi,

per the topic.  This is a SQL server 2012 Sp1 with CU4 I was working on optimizing a query and was looking at the index property for a table, in the fragmentation page, I see 0 for everything.  This table is part of a partition but I find this hard to believe as there are 11m rows in there.  See screenshot. 

I have tried pretty much everything I can think off to get those numbers up.  Rebuild the index w/ Full scan, update the stats, drop the index and recreate it, ran dbcc checkdb against the database, dbcc check against the table, tried to get the information via the dmv w/ Limited option (results never came back).

The last thing I did was rebuilt the table w/o the partition and put the same index on and I'm able to see the data in the fragmentation page of the index properties.  

I was wondering if anyone experienced this before and has a solution to it?

Thanks,


Update PDF file in FileTable

$
0
0

Hi-
I'm new to working with FileTables and am wondering if the following code (which saves annotations to a PDF file in the FileTable with changes that are made through the PDF control) makes sense. My save results are mixed while using the PDF control, depending upon the PDF file that is loaded. If a save is successful, the PDF control will load the PDF file with the annoatations, but the PDF file will not open in Adobe Acrobat (file corruption error is reported).

When using the provided PDFTron sample PDF control project with a file loaded from the file system, no errors are reported when saving annotations to the PDF file, and the changes can be viewed using Adobe Acrobat.

I'm wondering whether my code is generally appropriate, or if I'm going about this all wrong.

        'Create a connection to the database
        Dim ConStr As String
        ConStr = MyAppConnString
        Dim con As New SqlConnection(ConStr)
        con.Open()

        Dim sqlCommand As New SqlCommand()

        ' Set Command text to stored procedure name
        With sqlCommand
            sqlCommand.Parameters.Clear()
            .CommandText = "RetrieveDocument"
            ' Set the command type to Stored procedure
            .CommandType = CommandType.StoredProcedure
            ' Add parameter/s to the command. Depends on the Stored procedure
            .Parameters.Add("@SelectedNode", SqlDbType.NVarChar, 128).Value = myTag
            'add the conection to the command
            .Connection = con
        End With

        Dim filePath As String = CStr(sqlCommand.ExecuteScalar())

        'Obtain a Transaction Context
        Dim transaction As SqlTransaction = con.BeginTransaction("ItemTran")
        sqlCommand.Transaction = transaction

        ' Set Command text to stored procedure name
        With sqlCommand
            sqlCommand.Parameters.Clear()
            .CommandText = "tContext"
            ' Set the command type to Stored procedure
            .CommandType = CommandType.StoredProcedure
            .Connection = con
        End With

        Dim txContext As Byte() = CType(sqlCommand.ExecuteScalar(), Byte())

        'Open and read file using SqlFileStream Class
        Dim sqlFileStream As New SqlTypes.SqlFileStream(filePath, txContext, FileAccess.ReadWrite)
        Dim buffer As Byte() = New Byte(CInt(sqlFileStream.Length)) {}

        'Bind the image data to an image control
        Dim ms As MemoryStream = New MemoryStream(buffer)

        _pdfdoc.Lock()
        Try
            _pdfdoc.Save(ms, SDF.SDFDoc.SaveOptions.e_incremental)
        Catch ex As Exception
            MessageBox.Show(ex.ToString(), "Error during the Save")
        End Try
        _pdfdoc.Unlock()

        sqlFileStream.Write(buffer, 0, buffer.Length)

        'Cleanup
        sqlFileStream.Close()
        sqlCommand.Transaction.Commit()
        con.Close()

Thank you,

Matt

VS 2012 Publisher can not be verified message at install time

$
0
0

Using VS 2012.  How do I get rid of the message PUBLISHER CAN NOT BE VERIFIED at install time.  I also get Unknown Publisher message.  What can I do about both messages?


ecb

Error Connecting to SQLSERVER:SQL as a drive for LocalDb

$
0
0

Please see below.  There is some kind of communication problem when I try to access "(localdb)\Projects" using the ability to connect to SQL Server as a drive, and then ultimately later (e.g. $server = Get-Item .) as a Smo Server object.

With localdb, it fails about 8 times, then suddenly actually works.  It's painfully slow.

I am trying to do this, to, for example, write a script that can unregister a series of DACs all at once, but this is my root problem right now.

Any ideas?

Notice below, on the last line, it finally comes back and works.

Thanks,

Ryan

PS C:\Users\rwhite> cd sqlserver:sql\"(localdb)\projects"
WARNING: Could not obtain SQL Server Service information. An attempt to connect to WMI on '(localdb)' failed with the
following error: The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
WARNING: Could not obtain SQL Server Service information. An attempt to connect to WMI on '(localdb)' failed with the
following error: The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
WARNING: Could not obtain SQL Server Service information. An attempt to connect to WMI on '(localdb)' failed with the
following error: The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
WARNING: Could not obtain SQL Server Service information. An attempt to connect to WMI on '(localdb)' failed with the
following error: The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
WARNING: Could not obtain SQL Server Service information. An attempt to connect to WMI on '(localdb)' failed with the
following error: The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
WARNING: Could not obtain SQL Server Service information. An attempt to connect to WMI on '(localdb)' failed with the
following error: The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
WARNING: Could not obtain SQL Server Service information. An attempt to connect to WMI on '(localdb)' failed with the
following error: The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
WARNING: Could not obtain SQL Server Service information. An attempt to connect to WMI on '(localdb)' failed with the
following error: The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
WARNING: Could not obtain SQL Server Service information. An attempt to connect to WMI on '(localdb)' failed with the
following error: The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
PS SQLSERVER:\sql\(localdb)\projects> gci | gm

Install a application on another PC Questions

$
0
0

Using VS 2012.  When I install my VS 2012 application on another PC I get messages about ACCEPTING these two software products (1) MS SQL Server LocalDB and (2) MS Framework.  Is there a way to inform the installer to apply ACCEPT before they get these messages.  Or better do not let the user get these messages?


ecb


Failed to map 16777216 bytes contiguous memory

$
0
0

I am trying to set up a Full Text Catalog on SQL Server 2008 running on Windows Server 2008 R2 Enterprise.

I have created the catalog and added fields to be indexed. However, after a brief attempt at "Populating" the catalog, it then becomes "Idle" with 0 items. When I look at the Error Logs, I see the following error repeated over and over in the SQL Server Log, whenever the catalog tries to populate:

"Failed to map 16777216 bytes of contiguous memory", source being a server process id (spid) in the 20s or 30s. We've recently switched from using SQL Server 2005 to using 2008 for all future work, and this is a brand new database with only a few hundred rows of test data currently. I've created catalogs in the past on our SQL Server 2005 boxes without issue.

I do not have console access to the machine, but according to our sys admin when I inquired about this issue:

"Nothing in any logs except the SQL Logs.   The server is tweaked using SQL Best practice so memory shouldn’t be an issue and it’s not using physical memory excessively at the moment.
 
There are a lot of hits on Google for similar problems but I haven’t seen a valid answer yet."

Thus, I'm turning to you in hopes you may be able to assist, even if simply with more ideas to try.

Thank you in advance.

Web Site Admin Tool problem in VS2005

$
0
0
All,

When I create a new project and try to use the WSAT security tab, I get the following :

There is a problem with your selected data store. This can be caused by an invalid server name or credentials, or by insufficient permission. It can also be caused by the role manager feature not being enabled. Click the button below to be redirected to a page where you can choose a new data store.

The following message may help in diagnosing the problem: Unable to connect to SQL Server database.

I am using VS2005 beta2 with a local copy of SQL Server Express.

I am new to all of this so a little help would be great

Thx
jonpfl

SQL Network Interfaces, error: 26 ,How to overcome this error?

$
0
0

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

please help me

How t minimize the loging in sql server

$
0
0

Hi friends,

  I am looking to minimize the loging in sql server 2012. My process is I have many base tables, once data will get procced we are moving these all data into their respective history table but here the problem is Deleting huge data from multiple time from multiple table  base table making Log full. Can we minimize the loging.

Thanks,


Regards Vikas Pathak


how to make .bak up file of a database in SQL server 2008 R2 ?

$
0
0

Greetings,

I want to know what is the procedure to take .bak file of a database of sql server 2008 R2 and also how to restore that file , without running any sql query.

Viewing all 15889 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>