help in selecting required columns from duplicates records
HI,I have a table like belowempid,ename,sal,Jdate,Rdate,deptid,designation,Terminated_Emp1,a,100,15-May-2014,11,SE,NO1,null,null,15-OCT-14,null,null,YESI want output like...
View ArticleSplit single row data into multiple columns depending upon length
Hi All,how canwe split the data in one row to multiple columns in csv file to sql server. Data in the csv is not delimitted but know the size of each column.ForExample: The data in CSV is like(two...
View ArticleIs there an SQL function to parse out characters in a string?
I have a column with characters like:12345 AB 1234512345 CD 12345I just want just the "AB" and "CD" returned.I tried this and can get only the first part trimmed off: SELECT column,substring(docket,...
View ArticleRecover Database
Hi all,I have a scenario, if a database of size 1.6 TB scheduled every Sunday 12:00 AM full backup, daily 12:00 AM differential backup and every 4 hours Transaction log backup. If Suppose on thursday...
View ArticleSQL Verification changes
I have a table that has records removed and the underlying index order no longer matches the order of the numbers in the ID field. As soon as a new record is added, SQL studio shifts it somewhere else...
View ArticleSS2K8R2 - Database bloating on restore
I have noticed that when I backup a database SS2K8R2 SP2 using compression, when that backup is restored the resultant database will bloat up. The original database data size: 32,470,016 kb, restored...
View ArticleWhy is INSERT INTO using so much tempdb and Why is it trying to allocate...
Why is INSERT INTO using so much tempdb and Why is it trying to allocate dbo.sort?I have a tsql proc that reads a list of tables and copys the contents to identical tables in another database. There...
View ArticleHow can I implement this database?
Okay, so if you are working with a company who owns more than 10 apartment complexes and they have asked you to build a database.So if I want to implement this database.What database software package...
View ArticleSuspect Database
Hi all,If a database is suspected, don't have the backups in place and then we didn't find any errors in dbcc checkdb then how to resolve the suspected database.
View ArticleHow to remove one single rowlock
Is it possible to remove one single rowlock?For example BEGIN TRANSACTION 1) SELECT * FROM [Table] WITH (XLOCK, NOWAIT, ROWLOCK) WHERE [Id]=1 2) SELECT * FROM [Table] WITH (XLOCK, NOWAIT, ROWLOCK)...
View Articleconnect to server
Hi please i need help i installed sql server management studio on my system windows 7 home basic 64bit i tried creating a new query it promts me with a dialogue box connect to server what do i do...
View ArticleDatabase restore failing
Hi,I have two databases. One is called AX12_Base and the other is AX12_UAT_Base.I'm trying to restore a backup of AX12_Base to AX12_UAT_Base but keep getting the below error:I have tried killing any...
View ArticleDelete Selected Row from Datagrid VB
HiCan someone help me please, I need the syntax to delete or hide the selected row from a datagrid (not a datagridview) in VB.NET.Thanks A LotCherry
View ArticleCannot perform an aggregate function on an expression containing an aggregate...
I am getting "Cannot perform an aggregate function on an expression containing an aggregate or a subquery." error by executing below query, I need to calculate the percentage. Can you please help me on...
View ArticleLicense Schema on SQL Server 2005, 2008 and 2012
Hello Friendsi have a physical server that has 2 processors with 10 cores each one and because the hyperthreading technology (i guess) in my os appears 40 cores. i need install SQL Server 2008...
View ArticleCannot find SQL Server 2008 instance
I have installed SQL server 2008 Developer edition on my laptop. When I open SSMS I cannot find the installed instance under the Server Name group and When I choose the Browse More option and go to...
View ArticleBCP error: Unexpected EOF encountered in BCP data-file
Hello,I am using SQL2k8R2 and it often comes to a need to do big data import for analysis, I believe bcp whould be the best efficient way to go, however, the bcp is really something that you like it...
View ArticleExecuted as user: ADMIN\abc-SQLServer. Linked servers cannot be used under...
Hi All, We have verified permissions on both sides,current server and linked server, the user has sysadmin. Another key piece of information is that this is happening when executing a SQL Job.Thanks.
View ArticleSQL Server 2008 Express Installation fails.
I am trying to install SQL server 2008 Express edition on my desktop (OS: Win 7 HP - 64 bit). I have been unable to do so on all of my 3 attempts.The installation gets to the end and then gives a error...
View ArticleDesign of basic accounting system
HelloI am new to the world of databases. I am about to design a database for a basic accounting system and payroll. I would deeply appreciate if you refer some good tutorials/samples about design of...
View Article