I have a query for finding the fith lowest salary in a SQL database, and I am not able to understand how this query will be processed internally. It is: select * from emp a where 5= (select count(distinct sal) from emp where a.sal>=b.sal) Can you explain this to me?
How can I store images in SQL Server 2005 and retrieve them from VB.NET?
I need to call an Oracle stored procedure from SQL Server. The stored procedure is written in ANSI SQL. ORCL is my linked server. I am calling ORCL.USER.PROCEDURE P1, P2, P3 and I am getting this error: Could not execute procedure ‘PROCEDURE_NAME’ on remote server ‘ORCL’. [OLE/DB provider returned message: One or more errors occurred [...]
In regards to a SQL Server, what is an index? Also, what is an abstract, and could you please explain the types of both of these items?
In SQL Server 2005, I am not able to access the Northwind database. Some people have said that it is built into the SQL Server, but I can’t access it. How would I do so?
How would I go about migrating SQL Server 2005 back to SQL Server 2000?
I’m new to SQL Server Management Studio…… Is it possible to set it up to eMail Server Logs to myself? Thanks!
Hi, I have a file which contains the data 2:23:3#1:2:4#2:3:5 i have to insert the data in to the table in multiple rows from a single file as #–indicates to be inserted in next row : –indicates next column column1 column2 column3 2 23 3 1 2 4 2 3 5 I need to use [...]
I am using Crystal Reports 8.5, Visual Basic 6 and SQL Server 2005. In my server, I have two databases named Eng_School_Database and Guj_School_Database with the same structured tables. I want to change the databases at run time so that the report should contain the data of desired medium. I have tried the following code: [...]
I am trying to deploy SQL Server Express to be able to host a database off a mapped drive. In an open lab environment, I can get it to open and run a database off a mapped shared drive on a Windows 2003 server. However, when I take it to a client and their area [...]
We are in the process of migrating from SQL Server 2000 to SQL Server 2005, and I’m searching for a script that can transfer and restore the database permissions of all accounts from SQL Server 2000 to SQL Server 2005. I used sp_help_revlog to restore the logins, but I still have to restore the database [...]
how to match the datatype of the field that is in database and the datatype of the variable that holds the value of the returned value from database using stored procedure.
error sql writer – sql dumper liabrary failed initialization install corrupt or tamper with
Hi All I Newly joined with new Project,My Boss told me that Create Index strategy document which in excisting Project. I don’t where to start. I prepared some documents which is basically saying about Index recomandation,When we have to creat Indexes,and so other stuff which is finding most used Indexes and Unused index on so….on. [...]
Hi all I got formula to calucalate Row_size of a table Row_Size = Fixed_Data_Size + Variable_Data_Size + Null_Bitmap + 4 Fixed_Data_Size = total byte size of all fixed-length columns Variable_Data_Size = 2 + (Num_Variable_Cols x 2) + Max_Var_Size Num_Variable_Cols = number of variable-length columns Max_Var_Size = maximum byte size of all variable-length columns Null_Bitmap = [...]
What is the difference between Outerjoin and Left outerjoin.
This is our SQL code: Select addrid,addrkey,addrline1,addrline2,addrline3,addrcity,addrplace,addrzipcod,addrtype,addrphone,jobsconame,addrmc1, CASE month(getdate()) WHEN 1 THEN addrjan WHEN 2 THEN addrfeb WHEN 3 THEN addrmar WHEN 4 THEN addrapr WHEN 5 THEN addrmay WHEN 6 THEN addrjun WHEN 7 THEN addrjul WHEN 8 THEN addraug WHEN 9 THEN addrsep WHEN 10 THEN addroct WHEN 11 THEN addrnov WHEN [...]
In SQL Server 2005, we have two databases. We want the first one to store tables, and the second one to store views of the tables in the first one. We have achieved this if the tables and views are in the same database, but is there a way to do it with two?
Every time I restore one of my SQL Server 2005 databases to a point in time, my log shipping restore job fails on my secondary server. Any ideas on how to correct this?
I have a application in VB.NET with SQL Server 2005 Express Edition. In the last few days, the database is continuously corrupting. I repair it, but the problem continues. I revise my code, but I can’t find transactions errors that could produce the problems. Do you have any general ideas?





