sql-server-2005
How to drop all tables from a database in sql server 2005 in a statement except one table
I am using sql-server 2005. Initially, for learning purpose I created many tables now I want to drop all those tables except one which is currently I am working on.[详细]
2023-04-10 06:18 分类:问答How to multiply values from different rows and different columns?
This what the table looks like. CodeItemsUnitQTYPriceTotal ---------------------------------- HTM001Cable Tiepcsnull1.00?[详细]
2023-04-10 06:11 分类:问答How to convert row data into column?
My query is select distinct b.Emp_Name,a.emp_id,a.date,a.status,b.Emp_F_H开发者_Python百科,b.Emp_Gender,b.Emp_DOJ,c.Dept_Disc[详细]
2023-04-10 04:30 分类:问答nested exists clauses vs adjacent exists clauses
Can someone please tell me which of this 2 querys is better than the other and why? Should I use a join instead?[详细]
2023-04-10 03:08 分类:问答SQL Array within a cell
I have a cell that contains an array of characters seperated by commas i.e. \"1,2,3,4,5\" My question is, is it possible to remove a particular element of the array such as if I wanted to remove \"1开[详细]
2023-04-10 00:52 分类:问答INSERT statement will not let me use IF NOT EXISTS
I have an insert statement that I can\'t get to work the way I want it to. It开发者_开发问答\'s on a vb.net page. This is on a VB.net page and I\'m using SQL Server 2005 for my database.[详细]
2023-04-10 00:15 分类:问答How to find all the descendants with SQL?
Each entity can have one parent. I need to find all the descendants of 开发者_Python百科a given entity.[详细]
2023-04-09 23:44 分类:问答A stored proc to copy table data including any default value or binding data via a SQL script running within SQL Server
I would like to be able to copy a table and it\'s data and also still have any default value or binding (as it is labelled within SQL Server Management console) constraints copied over.[详细]
2023-04-09 21:42 分类:问答How to Update the Date without changing its Time Using SQL Server?
I have One Column in the Mytable called StockDate and its DataType is DateTime. So My Table contains record as follows[详细]
2023-04-09 21:22 分类:问答Evaluating formula in SQL
I am trying to process salary details of employees depends upon some schedule using SQL Server 2005. Here some fields are evaluating from formula. like..eg.[详细]
2023-04-09 19:28 分类:问答