TOP COUNT ISSUE
Hi,I have a requirement in which i need to get the top 3 count of car model for each Car make. Please find the example belowi have four columns Car make, Car model, Red Color Count, Balck color...
View Articleerror 824
2015-01-29 17:10:48.72 spid54 Error: 824, Severity: 24, State: 2. 2015-01-29 17:10:48.72 spid54 SQL Server detected a logical consistency-based I/O error: incorrect checksum (expected:...
View Articlelock escalation on table with no key/index
Hi,I've got the table with single column only (int) and no indexes nor pk/uq, just auto-created statistics.now, in transaction, there is a command: SELECT <COL> FROM <TABLE> WITH (ROWLOCK...
View ArticleStored Procedure or Computed Column
This is a question of what is the best practice and best performance.I have inherited a database that contains data for turbine engines. I have found 20 data points that are calculated from several...
View Article.mdf file is increasing..
Hello All, We have a database in production which is increasing in size daily. I am planning to add new file on other which is having enough space and make it as primary the growth of the db will be...
View ArticleIs it possible to add second mail profile to SQL Server Agent
We are using MSSQL 2008 enterprise version. We already have a mail profile "MailProfile1" which was configured on the SQL Server Agent Properties. Now we would like to add the second one "MailProfile2"...
View ArticleWhat are the scale out strategies that wouldn't include replication?
We are using a database that handles mission critical live information. We are experiencing performance problems and we are looking to scale out the database. We are not interested in replication...
View ArticleRename a column on a table that has fulltext index on the renaming column
I have to rename a column on a table, which has an fulltext assigned to the specified column.Will this make the fulltext crash or in any other way have a effect to the fulltext search ???And/Or do i...
View ArticleDatabase modeling question
Hi guys,I have a modeling question that I want to be reflected in Analysis Services tabular model.I have a fact table that has the student grades in each discipline. I want to add in my model the type...
View Articlecreate the ssis pacakges for cube.
hi what type of ssis packages are created in ssas cube.
View Article[Execute SQL Task] Error: Executing the query "DECLARE_@XMLA nvarchar(3000)...
HiDECLARE@XMLA nvarchar(3000) ,@DateSerial nvarchar(35); -- Change date to format YYYYMMDDHHMMSS SET @DateSerial= CAST(GETDATE() AS DATE); --SELECT @DateSerial Set @XMLA = N'<Batch...
View ArticleChanging the index type of primary key
Hi everyone,We have a table, which has one clustered index and one non clustered in index(primary). I want to drop the existing clustered index and make the primary key as clustered. Is there any easy...
View ArticleSlow running query on heavily updating table
Hi,I am working on a live gps tracking project. The project is using SQL Server 2008 web edition. There are thousands of devices which are sending data packets in every 10 seconds or less depending on...
View ArticleCreate test database with stub of data from production database
Hello,I want to create a testdatabase on a developer laptop. The database is a copy from production, but it is too big for the laptop. Therefore I want to create the schema on the laptop and then...
View ArticleIs it possible to add second mail profile to SQL Server Agent
We are using MSSQL 2008 enterprise version. We already have a mail profile "MailProfile1" which was configured on the SQL Server Agent Properties. Now we would like to add the second one "MailProfile2"...
View ArticleHow to create auto increment value in my column using identity ?
hi Team,I have an requirement where i create an auto increment value ,with my table columnCreate table Temp( DeptID int IDENTITY(1,1) PRIMARY KEY,Name varchar(50),Emailid nvarchar(50),Phone...
View ArticleEnhancement suggestion
Given the tree structure in SQL Server Management Studio of<Server> Databases<Database Name>ProgrammabilityStored Procedures<List of stored procedures>Allow for user defined folders...
View ArticleHow To Make Full Join With 2 Tabel
hi all,i have 2 table like thisTypeTableTypeIDTypeName1T12T23T3 TestTableTableIDTestIDTypeIDResult1111021253236i want result like thisTestIDTypeNameResult1T1101T251T3NULL2T1NULL2T2NULL3T36i want to...
View ArticleHow To Make Full Join With 2 Table
hi all,i have 2 table like thisTypeTableTypeIDTypeName1T12T23T3 TestTableTableIDTestIDTypeIDResult1111021253236i want result like thisTestIDTypeNameResult1T1101T251T3NULL2T1NULL2T2NULL3T36i want to...
View Articlefound pk with nonclustered in database, what could be the reason.
hi, generaly people make pk with clustered index,i found one database pk with non clustured index , please tel me what could be the reasons.yours sincerley.
View Article