Quantcast
Channel: SQL Server Database Engine forum
Browsing all 15264 articles
Browse latest View live

Trigger for High privileage users

Hi Team,I am in a Process of creating Database and server level Auditing, so requirement is we need Aduit High Privileage users activities and same them to a table? Do we have any triggers scripts for...

View Article


Re:Backup Issues

i have 2 servers1st server ip is 0.0.0.98 this server having C,D Drives only.2nd server ip is 0.0.0.99 this server having C,D,E Drives ..i am log in to 0.0.0.99 server tire to take the backup through...

View Article


SQL 2000 export logins and database role mapping

hi allI am going to migrate logins from SQL 2000 to sql 2008are there any script that I can script out the login,database users, and database role mapping?thanks

View Article

Where Backup Failed history get stored in system databases??

Is there any tables in msdb db or in other system db where backup failed history get logged except error log.I am using SQL Server 2008 R2.

View Article

MS SQL Login information?

Hi All,How can we find the last login information in sql server 2008, it means when was the user trying to login in to sql server.Thanks,SAAD.

View Article


Is io stalls on sys.dm_io_virtual_file_stats as bad thing?

I am confused by this counter. It says I have a high percentage of IO stalls. What does this mean? It seems to me that this is the ratio of reads/writes in a database file compared to all the database...

View Article

SQL Server 2012 Management Studio: I cannot create a SQL Server Express...

Hi all,I have SQL Server 2012 Express installed in my "Windows 7" PC that is part of Windows System in our Computer Network System. In the SQL Server 2012 Management Studio (SSMS 2012) of my SQL Server...

View Article

Failed to flush the commit table to disk in dbid 5 due to error 2601

I have a database with Change tracking enabled and when i tried to backup i got this error:Failed to flush the commit table to disk in dbid 5 due to error 2601. Check the errorlog for more...

View Article


How do I capture how many times an event happens in my table?

My table logs the execution of SSIS packages with results as Skip, Run, and Complete.  Ideally I should see two rows for each package, one for run and one for complete but in some cases I see run, run,...

View Article


t-sql question

I am trying to create a t-sql script when ever blocking happens with the following condition in a SQL db I want to get alert: If there is a session blocking another session for more than 5 minutes then...

View Article

io latency from sql server

Hi All,I want to find out IO latency for all files. For that i would like to automate the below script taking dbid and fileid as parameter for sys.dm_io_virtual_file_stats(null,null) function. How to...

View Article

Restore Model system Database in Sql Server 2008/R2

Dear Gurus,I'm a new bie to MS-SQl server. I'm trying to restore "Model" system database from the backup, but ending up with error.I used /m /t3608 and /t3609.Could you please help me in fixing the...

View Article

Image may be NSFW.
Clik here to view.

Not Able to Apply conditions Properly???

hi everyonei am facing a problem in creating a query,if anyone can help me,it will be reallu helpfulactually i am having a table consisting of two column  as shown aboveColumn name:1)   PhaseName...

View Article


Microsoft OLE DB Provider for SQL Server cannot get all the schemas?

I use MS SQL Server 2008 for Database Development. Now, I need to get all the tables in SQL Server via OLE DB For SQL Server. However, after querying, only one system table called sysallocunits is...

View Article

Control Access to SQL Server Visual Designers

Is it possible to control access of a user to the visual table designers of SQL Server e.g. the table designer or the view designer. What i want to achieve is that the changes to the SQL Server objects...

View Article


SQL Server 2005 became "no responding" until I restart windows 2003

i am not getting any error in the SQL Server Error log or Event Viewer, no blockings on the server. i have monitoring the PERFORMANCE DASHBOARD tool in that also memory usage and every thing showing...

View Article

sql full text search shows up on blocked process report

Ran the following SQL full text search on one of our larger repos.Select F.[KEY] AS KEYWORD, F.[RANK] AS KEYRANK FROM  CONTAINSTABLE(O2545, FileText, @FileText, 50) F50 rows returned in two minutes 38...

View Article


Speed up accessing related data in Std Ed ?

Hi, We have most of our data (millions of rows) stored in two tables "row" and "value",  linked with an syntetic foreign key. There are many values/columns on each row (1-20)A value is always accessed...

View Article

Jobs logged in the "Job Activity Monitor" but not in the "View History"

SQL Server 2005 Enterprise Ed,Hi guys,I have the following issue:There are some jobs running successfully. The execution is reported in the "Job Activity Monitor" highlighting the "Last execution" and...

View Article

(1 row(s) affected) Msg 8152, Level 16, State 14, Line 2 String or binary...

I am working on a project for college and I cannot figure out why I am getting these errors. Here is my code and errors I am receiving. in addition, I none of the data is being entered expect for two...

View Article
Browsing all 15264 articles
Browse latest View live


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