Objects table corrupted at sharepoint_config database
I am using Sql server 2005 and sharepoint 2007 into cluster envirnoment. After DBCC checkdb notice that Dbo.Objects table corrupted at sharepoint_config database.Error is as below DBCC results for...
View ArticleDynamic sql query to convert single column string delimited with semicolon...
ID Rollcode Rack AA0001 99203; S9088 1350; 1350 ABB0001 99203; S9088 4123; 4123 ADA000 99203; S9088 530; 530 ADM000 99202; S9088;J2308 4516; 4516 ABD000 99203; S9088 3025; 3025 ID Rollcode1 Rollcode2...
View Articlesql query to get the count from a column
i have a table with columns SponsorID AccountID CountryID 123 456 236 123 789 236 123 654 40 123 897 236 123 978 40 123 564 40 ' ' ' ' ' ' ' ' ' i want to write a sql query to find the sponsorID's who...
View ArticleDBCC Check DB issue Please Help
Dear Sir/Madam, I big follower of your blogs and website I have one issue on my Production DB. Kindly help me Details of the issue are mentioned. Datbase name has been mentioned as IssueDB I have...
View ArticleThe process could not connect to Subscriber- replication
Folks, I'm having trouble setting up replication from a server hosted outside our domain that is hosted in south Dakota to a virtual box in our domain hosted locally here in Ohio.below is the error...
View ArticlePerformance hit while Comparing Rows in absence of key
Hello, May anyone please help me on this. database: SQL SERVER 2008 18 Million records i have two table and i need to check missing rows between two table, as i don't have any keycolumn i concatenated...
View ArticleSQL server is replicating to wrong subscriber.
I have a publication which is intended to push data to a subscriber over the internet from a remote server to our onsite local subscriber but it ends up on a wrong subscriber.Here is the scenario:...
View ArticleLogshipping error 2005-2014
I have thought that there is an issue with the copy and restore parameter, but the parameter id is the secondary server name.but still I got the error both the jobs are been failing Message 2016-04-13...
View ArticleLogshipping issue 2005 to 2014 in no recovery mode
all the jobs are running successful but the restore job is showing following message Skipped log backup file. Secondary DB: '5T', File: 'F:\SecondaryShared\5T_20160422144001.trn' 2016-04-22 09:48:01.97...
View ArticleAvoid cross join when using distance function
Hi , I am running this query : select case when p2.age < 15 then '0-15' when p2.age between 15 and 25 then '15-25' when p2.age between 26 and 39 then '26-39' when p2.age between 40 and 64 then...
View Articlehow to join tables from two server
Hi , Please help me to write a sql query. I have connected to Oracle DB through SSIS "Microsoft OLEDB provider for Oracle" and Data Access Mode"SQL Commend" I have two tables: Table 1:XYZ (in Oracle...
View ArticleDatabase Mirroring partial fail-over to mirrored server happened?
Hi Experts, In our production Servers, Few databases in Primary server failover to Secondary database. ex:10 databases in primary, 5 will be principal synchronized status,remaining 5 will be mirror...
View Articlesql trouble help
County (CountyCode, CountyName) Constituency (ConstituencyCode, CountyCode, ConstituencyName) Using MS-SQL-Server, create the above database with its tables. Capture screenshots for SQL statements that...
View ArticleHow to calculate bell curve and disply data in Google chart
I want to calculate bell curve report and data display in google chart. How to calculate bell curve report from give data? ![![alt text][1]][1] Query :- SELECT ItemId AS 'ItemId', AVG(Qty) AS 'Average...
View ArticleWhy Stored Procedure cannot be used with Select, Where & Having. Understand...
Why stored procedure cannot be used with Select, Where & Having? I understand a function can serve the purpose - what's the reason why a stored procedure cannot be executed in select? Blogs are...
View ArticleIn-place Upgrade sql 2005 to 2008 Error Code 0xB8A6B4FA
Hi, I am trying to in-place upgrade sql server from 2005 to 2008. Everything went smoothly but the database engine, SQL Server Replication, Full-Text Search, AS, and RS failed to upgrade. The log as...
View Articleorder by is not working
Hello Team, we have a table where files column like FR1 ,FR10 ,FR2 ,FR3 ,FR4 ,FR5 ,FR6 ,FR7 ,FR8 ,FR9 when we are using order by to the column of this file to get the F10 value below F9 is not working...
View ArticleList of tables in all databases used in stored procedures
We have created stored procedures which include lot of tables from different databases in same server. Now i need to list all the table corresponding particular stored procedures. I have tried the...
View ArticleIncorporate logic from one SP to other
Hi, I have 2 SP's SP1 and SP2. I need the logic of SP 2 to be present in SP1. Can this be done? Please refer the attachments[link text][1] [1]: /storage/temp/4210-sp2.txt
View ArticleAdd TotQty column which will multiple all qty
can someone help to add a calculation at each level to multiple all the quantities and it must assigned to the new column named TotalQty in the below query: ALTER PROCEDURE [dbo].[SP] ( @PartNumber...
View Article