SQL Server 2008 R2 { An Error occured when attaching database(s) }
Hello Guys!I just installed SQL Server 2008 R2 a couple of days ago, on the first day use i can attach database(.mdf) with out any problem.on the day 2, i keep getting this...
View Articlehow to define a role with create and alter procedure rights but can't create...
hi, expertsI try to create a role with create and alter procedure without create and delete table rights, but failed , how to do it ? Thanks.RegardsGarey
View Articlesys.dm_exec_sql_text(qs.sql_handle) db_id is null, what db is refer to
when db_id is null in sys.dm_exec_sql_text(qs.sql_handle)what does the query runs against? which database counts as consuming the cpu?
View Articletable-valued UDF in sql server 2008 getting hang
Table Values UDF are getting hang when i am writing below query select * from FN_Retun (123) it dose not return any output and stays in the running mode and when check with sql profiler nothing was...
View ArticleSQL 2012 (on Windows 2012) - High Compiles (not DB specific), Very low Plan...
SQL Server 2012 SP1 (Enterprise Edition) - 11.0.3000Windows Server 2012 (SP0) OS - 160 GB RAM SQL - 100 - 140 GB Allocated MemoryTempDB on Fusion I/O.MAX DOP = 8, OptimizeAdhocWorkload=True,...
View ArticleWay of Passing the parameter into the function and performance gettin impacted
Hi all,while doing something i have come across something strange.i have a inline table value function which takes the 1 parameter which get used in the join condition and i have ran the query with...
View ArticleWhat is the best way to shrink log file ?
Hello Everyone, Can any one please suggest what is the best way to shrink log file, as i noticed log file size is very large compared to data file.Edition Sql server express 2008 r2 Set up in Full...
View ArticleDisplaying sequence of numbers
Hi,I need one sql query for displaying following scenario.My source table has one column containing values likeEMP NO12359i want an output likeEMPNO From To1 1 35 5 59...
View ArticleSQL Server Install - Disks Separation
I will install SQL Server 2008R2 and I'm in doubt of how to partition the disk. I researched the issue and found many opinions. Could you give me a hint or indicate some material?The configuration...
View ArticleHow deliver a Microsoft SQL Server BI solution in cloud - SQL Server 2012
Hi,I'm searching info about how deliver a SQL Server 2012 BI solution in the cloud. In particular, a SSAS tabular solution with PowerPivot. Using SharePoint online?Any helps to me, please?Thanks
View ArticleWhat would cause the instance_id column of msdb.dbo.sysjobhistory to skip...
The instance_id column of msdb.dbo.sysjobhistory is an identity column with increment to set 1. A few days ago on one my SQL 2000 servers, the column started skipping numbers. This is creating problems...
View ArticleAlter TAble Query error : Could not drop object 'dbo.Participants' because it...
I am using SQL Server 2008 and SQL Server Management Studio to run queries to tables in a database. I am attempting to alter an existing table that contains a foreign key. I need to add some columns...
View Articlehow to find partition function text applied to a table
Hi,I recently took over a database that has a partition_scheme and partition function applied to a table. When I look at the table and it's indexes I cannot find where (on what column) the function is...
View ArticleWhat happened to my user-defined server-side trace?
Hi Everybody,I created a server-side trace that automatically stopped itself Sunday at 7:00 a.m. That was TraceID = 2. Now, Monday, when I execute "SELECT * FROM fn_trace_getfilterinfo(2)", I see...
View ArticleSQL 2008 R2 tempdb keeps growing when I run a certain query
We have a certain query that now seems to result in tempdb growing until the disk runs out of space. This has started happening recently, and seems to be very similar to an issue we had about a year...
View ArticleError message 15404 in sending Database Mail in SQL Server 2008
I am trying to send an email of Stored Procedure results in SQL Server 2008, using the Database Mail. However, I'm getting what seems to be an Active Directory error: Msg 22050, Level 16, State 1,...
View ArticleSSIS Job Error
Hi All,I am getting below error when the job is running in sql server agent ,Could any one suggest how to resolve this error:Executed as user: THINK\s_PRD_SQL_ALL. Processed 0 pages for database...
View Article