Why there is only one record per page for the second extent?
I did the test using the following script, and I found there was two records per page for the first and third extents , but there was only one record per page for the second extent, Why ? BTW, you...
View ArticleI am facing error while executing create procedure statement with some other...
Hi,Am facing error while executing create procedure statement followed by other insert and update queries as client needs all the queries in single script file."Msg 154, Level 15, State 1, Procedure...
View ArticleHow can i check the column which having all null values
We have a table named "TEST" with 4 columns (Col1, Col2, Col3, Col4) with following data - 1, Test, Exam, Online NULL, NULL, NULL, NULL 2, NULL, Practice, NULL NULL, NULL, NULL, NULL NULL, NULL, NULL,...
View ArticleDoes it make sense to partition the table if everything will be on a single...
Hello,I have some very large tables in my database, but a substantial chunk of this data is "old". Due to the circumstances beyond my control, I am not allowed to remove this "old" data. The other...
View ArticleMicrosoft 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 ArticleIs 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 ArticleSQL 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(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 ArticleCreating View for Select statement
Hi Everyone,How Can we create a view for select statement? Also one more question Syntax to Join other table to fetch Company Code Column?Please provide with example.Regards,Chinni
View ArticleApplication connection to SQL Server unstable!
The connections from the application to the SQL Server is unstable with the application users reporting freeze in their application screen and again connection starts working after some time. I have...
View ArticleAfter doing an ALTER TABLE, inserts not working correctly
I upgraded my SQL Server from 2008 to 2012, and everything worked o.k.I then added three columns to some tables. I used the following script to alter the tables: private int ModifyNewColumns(string...
View ArticleSQL Services fail to start after WSUS windows updates whether they have SQL...
SQL Services fail to start after WSUS windows updates whether they have SQL updates or not.#### Application Event log - Windows Server 2008 R2 Standard - SQL Server 2008 R2 EE #### 2013-02-19 - 3:33:13...
View ArticleMemory exercise
Hi Everyone,I am new to this forum and basically new bee to sql administration.Here is what I am looking for. Test Environment I have 4GB physical memory on my 32 -bit machine...
View Articlet-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 ArticleControl 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 Articleio 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 ArticleRe: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 ArticleRestore 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 ArticleSpeed 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 ArticleDatabase Mail error - Whitespace is not allowed at this location.
database mail is giving below error1) Exception Information =================== Exception Type: Microsoft.SqlServer.Management.SqlIMail.Server.Common.BaseException Message: The read on the database...
View Article