Archived Months
January 2003
March 2003
April 2003
May 2003
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
April 2008


all groups > sql server programming > december 2006 > threads for wednesday december 27

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

big problem!would you mind helping me pls?
Posted by Nassa at 12/27/2006 9:48:02 PM
Hi Everyone, I have 3 tables: Telbook(Id:int,Name:char,address:char,comment:ntext,owneruserid:int), PK:id TelNumbers(telbookid:int,telno:char,telNotype:int,syscode:int),PK:syscode,FK:telNumbers.telbookid=telbook.id Teltypes(teltypes:char,fk:int),FK:telnumbers.telnotype=teltypes.fk The ques...more >>

Help with query.
Posted by ChrisR at 12/27/2006 8:34:37 PM
In adventureWorks, this query is producing almost what I want to do in my real DB. select top 10 e.employeeId, vacationHours, max(eph.rateChangeDate) as rateChangeDate, rate from humanResources.employee e inner join humanResources.employeePayHistory eph on e.employeeId = ...more >>

Help with index and query
Posted by Derek at 12/27/2006 8:24:21 PM
i am trying to figure out why the following gives me an index scan instead of an instead seek. this was tested under sql server 2005 service pack 1. i am trying to find all records in the database that have a group_id = null. is there a problem with having a null column being an index? i w...more >>

Testing SQL Server 2005 Security
Posted by Just Me at 12/27/2006 6:48:33 PM
I am playing with the security on SQL Server 2005 to get a firmer understanding of how it works. One thing would be nice to be able to switch logins to see the effect of my changes, I can set up different connections from within Visial Studio 2005, but I was wondering if I could do this from ...more >>

Reproducible Pseudo-Random subset query.
Posted by liam_herron at 12/27/2006 5:52:51 PM
select top 1000 * from SomeTable order by NEWID() This gives me the random part but I can reproduce the results if I execute this same query twice. What I want is something like: select top 1000 * from SomeTable order by NEWID(INITIALSEED) This would have the feature that if I suppl...more >>

is there a limit to rows in a #temp table in tempDB?
Posted by Rich at 12/27/2006 4:12:00 PM
Hello, Is there a sql server limit to how many rows one can have in a #temp table in tempDB? Thanks, Rich...more >>

Replacement for my LIKE Clause
Posted by varkey.mathew NO[at]SPAM wipro.com at 12/27/2006 3:24:44 PM
Dear all, I need some help from all my Transact SQL Guru friends out there.. Here is the scenario in its most simplified form.. .. I have two tables.. A(Lookup table) and B(Transaction Table) TableA Fields EmployeeLocationID EmployeeLocation (This could have values say "B","BO",...more >>

Cluster Index and IMAGE fields
Posted by William F. Kinsley at 12/27/2006 2:59:23 PM
I have a table that contians two fields a GUID and and IMAGE. The images average 10-50 MB and there can be millions of rows and will have hundreds of rows inserted daily. Is there any value to using a clustered index on the GUID column? When rebuilding the clustered Index, does the image dat...more >>



Query Question
Posted by Nate at 12/27/2006 2:06:12 PM
I am using two tables to manage employee evaluations for a company. The two tables are 'dashboard' and 'employees' The dashboard table contains an 'employee' and 'lead' field, which refer to the employee ID number for both the employee and their supervisor, which are in the employees table. ...more >>

can view only be a single query.
Posted by Sugandh Jain at 12/27/2006 1:55:06 PM
Hi, Right now we have some views to fetch some custom data from the combination of columns, but the performance of the query is quite bad. Is it possible to have the view as sql server code block, like in the stored procedure... these views are used at several places in the existing stored ...more >>

ERROR 306
Posted by goltar NO[at]SPAM gmail.com at 12/27/2006 1:19:19 PM
Hi i have a problem with de 306 error i want to grup by but this error apear the code is CREATE VIEW dbo.USA_GENERAL AS SELECT dbo.USA_VISTAS.Fecha_Proceso, dbo.USA_VISTAS.Mes_Vuelo, dbo.USA_VISTAS.Pais_Org_rt, dbo.USA_VISTAS.Pais_Dst_rt, dbo.USA_VISTAS.Ciudad_Org_rt, ...more >>

SS2005 side by side install
Posted by ricky at 12/27/2006 12:56:39 PM
Hi I have SQL 2000 client tools installed, is it possible to install SS2005 aswell, as a side-by-side install, such as SSIS and SSRS? Kind Regards Ricky ...more >>

MUST_CHANGE SQL Server 2005
Posted by Just Me at 12/27/2006 11:54:21 AM
If you create a user with the Must_Change set ( as seems to be default from the GUI ) , how can you reverse this using the ALTER LOGIN command, because I cant seem to find a way to do this. Cheers - JM ...more >>

Custom Paging - ASP.NET Grid + SQL 2000
Posted by Logu Krishnan at 12/27/2006 11:30:09 AM
in short, the question is "How do i do custom paging in my asp.net grids" in SQL 2000. if i use default paging and if my db has ~200000 records, then i have to select all the 2 lac records then bind to the grid. whereas i've to show only 50 rows... so if i do custom paging i can implement t...more >>

Does UPDATE not support a table alias?
Posted by news.valornet.com at 12/27/2006 10:14:35 AM
Hi, I can run this: update quoteitems set avgcost=(select avgcost from e_icitems ii where quoteitems.item=ii.item) But, not this: update quoteitems qi set avgcost=(select avgcost from e_icitems ii where qi.item=ii.item) It seems the update command doesn't support a table alias--is t...more >>

Statiscal functions: Standard Normal Curve (Bell Curve), Student T-distributions
Posted by B D Jensen at 12/27/2006 8:28:33 AM
Hi! In Excel there are many of the statiscal functions, but I need them in SQL Server 2005! I'm specially interested in the functions giving the area for the 'standard normal curve' (thats the complicate part, because of the integral). Can I wrap some c#-code as an UDF? Other ideas? ...more >>

Comparing 2 tables and coloums within tables.
Posted by Sam at 12/27/2006 4:56:23 AM
I would really apprecaite some help with this. I have 2 databases. They both have a table called rptcontrol and I wanted to check the differences within the 2 tables as well as coloums within rows in the 2 tables. That is I have system50 and system60 databases and I have a table rptcontrol i...more >>

Last transaction row
Posted by sundara murthy at 12/27/2006 2:53:00 AM
table : transaction I have a table like this, i need to take the last transaction of the particular day Trans_date Rcpt_Date Rcpt_Qty Sply_Qty Trans_Blnce_Qty 4/1/2006 4/1/2006 200 0 200 4/1/2006 1/4/2006 0 120 180 4/1/2006 1/4/2006 500 0 680 4/1/2006 1/4/2006 0 120 560 ...more >>

last transaction
Posted by sundara murthy at 12/27/2006 2:44:01 AM
table : transaction I have a table like this, i need to take the last transaction of the particular day Trans_date Rcpt_Date Rcpt_Qty Sply_Qty Trans_Blnce_Qty 4/1/2006 4/1/2006 200 0 200 4/1/2006 1/4/2006 0 120 180 4/1/2006 1/4/2006 500 0 680 4/1/2006 1/4/2006 0 120 560 ...more >>

Microsoft SQL Server 2005 Service Pack 2 Community Technology Prev
Posted by Sammy at 12/27/2006 2:30:00 AM
The release of the SP2 19th Dec is it just for testing or is this the offical SP2. If its not the official SP2 does nayone know when it will be released thanks for any advice Sammy...more >>

Dividing rows into equal groups...
Posted by Ronald Green at 12/27/2006 1:06:52 AM
Hi, I have a programming problem: I have a table like this: create table objs (objname varchar(500), size int) sample data: 'a', 518 'b', 1928 'c', 418 .. .. .. I have a few hundred rows in this table. What I want to do is to divide the rows into groups that contain rows such ...more >>

Trigger on specific row change
Posted by Mark Denardo at 12/27/2006 12:11:43 AM
Hi, I need to know if there is a way to create a trigger that is more specific than detecting an update on just a column in a table. I need to know when a specific row within a column changes. For example, lets say I have a table "dbo.table1", that contains two columns, "col_ID" & "col_Nam...more >>


DevelopmentNow Blog