Quantcast
Channel: Forumul SQL Server Database Engine
Browsing all 15780 articles
Browse latest View live

Waits for Page Allocation

Hi Everybody,I have a question. Let's assume that we have multiple threads trying to Insert data into the same partition of a table. The Insert statement will be similar to:INSERT INTO DESTINATIONTABLE...

View Article


MSSQL - cyclomatic complexity of TSQL

Hi All,     Please let me know if there is any tool / utility to calculate the complexity of TSQL ( Stored procedures, functions ) in MSSQL. Is there is any microsoft supplied solution for this ?--...

View Article


Conversion failed when converting date and/or time from character string in...

Hi,I created LinkedServer in SSMS from MYSQL DB.When i Execute below open Query its working FineSELECT * FROM OPENQUERY(MySQL,'call GASP_sales_aps(''2013-04-01 00:00:00'',''2013-05-01 23:23:59'')')But...

View Article

UPdate with multiple tables

I have 2 tables namely Profile and Info. My table looked like this: PROFILE | p_Id | FirstName | LastName | | 1      | Jack         | Cole         |  | 2      | Cynthia     | Cole         |  | 3...

View Article

SQL Server 2005 64-bit 100% CPU

 We just did a conversion from SQL Server 2000 SP4 32 bit to SQL Server 2005 64 bit SP2 9.0.3042.0.  We have 16G of memory on the new box as well. We had no CPU/memory issues on the 32 bit box. We...

View Article


Fail to start Analysis Services Engine

Why I am not able to start the Analysis Services Engine again as the error message from event viewer as: Event Type: ErrorEvent Source: MSSQLServerOLAPServiceEvent Category: (289)Event ID: 0Date:...

View Article

Queries to Drive up CPU and Memory for Testing

Hello -Anyone know of some useful queries that can be used to intentionally drive up CPU and memory usage (1 query for each)?  I need to test out some monitoring tools on a test box and need to drive...

View Article

Could not allocate a new page for database 'XXXX' because of insufficient...

Dear All,I have a SQL Server 2008 (SP1) Database (Size600GB). It has more than 25 Data files and more than 5 LDF Files.My issue is most of the times whenever I tried to created new indexes or...

View Article


Image may be NSFW.
Clik here to view.

Can be stored procedures without cache?

Hello Guys!Today one procedure in my company after job for recompile, was no cache stored when I find with this select:SELECT [cp].[refcounts]  , [cp].[usecounts]  , [cp].[objtype]  , [st].[dbid]  ,...

View Article


Random Error: A network-related or instance-specific error occurred while...

Over the weekend around 2am in the morning we started receiving the following error from all of our web applications accessing a particular SQL Server: A network-related or instance-specific error...

View Article

SQL Server 2012 Shutting Down Randomly

Hello,I have two servers with Windows Server 2008 R2 and SQL Server 2012 Standard that were just setup about a week ago. Both SQL Server instances will randomly stop the service and become disabled. I...

View Article

can ODBC bcp_writefmt create a format file from the source table?

I am writing a routine using the SQL Server Driver extension to use BPC under ODBC.I get a table name, with arbitrary column names and types and lengths, and wish to create a BPC format file to im[port...

View Article

How to assign AD group default schema

Hi,We have AD group. Users are member of this group. I want to assing default_schema to this AD group. Why I right click user in db, selected properties, default schema is not selectable. How to to...

View Article


Image may be NSFW.
Clik here to view.

How to configure a computed column that uses two related tables at table...

--SQLServer 2008'R2I have two related tables one to many relationship dbo.days which holds 'Monday' through 'Friday', so dbo.dayid.3 would be 'Wednesday'and dbo.worklog both related on dbo.Day.DayID...

View Article

SQL Server 2008 Memory Usage details

Server configuration : Windows 2008 64-bit & SQL Server 2008 64-bit environment with 14 Gigs of Memory.Max. Server Memory set to 11 Gigs.- The task manager is showing sqlservr.exe is consuming all...

View Article


Instance error

When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the computer rather than be handled by this dialog box

View Article

Log database always full

Hi,I run SQL Server 2005 Workgroup Edition on Win SBS 2003 R2, it's 32-bit system. And I'm using the SQL Server 2005 WE for our small company's app database, and here's the recent trouble I...

View Article


xp_delete_file extremely slow on a server - Wait_Info...

I am looking at one server where xp_delete_file is extremely slow to delete files.One subdirectory contains a few thousands files and it takes about 1 second for each file to delete.The wait_info is...

View Article

Protecting an RDBMS System from DBA-s

Reference thread:http://social.msdn.microsoft.com/Forums/en-US/transactsql/thread/23f3b17d-d2ee-4f9b-ade1-2110e503b183"OK.  I have to ask.  WHAT makes avoiding xp_CmdShell a "best practice" especially...

View Article

select list because it is not contained in either an aggregate function or...

I wrote sp like below,Alter procedure First_Proc  (@fromdate datetime,  @todate datetime  )  as  begin  select DATEPART(YY,ModifiedDate) as Year        ,DATEPART(QQ,ModifiedDate) as Quarter...

View Article
Browsing all 15780 articles
Browse latest View live


Latest Images

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