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 2005 > threads for sunday december 18

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

Sort to display without duplicates
Posted by den 2005 at 12/18/2005 11:54:02 PM
Hi everybody, I like to asked anyone who is very good at sql to help me display this data in a table format that duplicate headings, subheadings or other columns won't appear twice or more. Can anyone help me? I need to sort them and load them in a Datatable. Loop thorugh all records and d...more >>

Change dateformat
Posted by Manish Sukhija at 12/18/2005 10:14:02 PM
Hi Guys, Is there any way by that we can change default format of date. Thanks...more >>

Dynamic For Loop
Posted by Scott at 12/18/2005 9:44:20 PM
My below code returns a union fine in northwind. However, I'd like add some FOR LOOP's while building the SELECT statements to cut down on the redundant code. As you can see, each @SQLx statement has a variable from 1 to 3. I created this exmple to get an idea of using a FOR LOOP to cut down o...more >>

Error
Posted by Manoj at 12/18/2005 9:00:02 PM
Dear All I am getting this error during indexing on the table. What should i do to solve this problem Server: Msg 8946, Level 16, State 12, Line 2 Table error: Allocation page (1:48528) has invalid PFS_PAGE page header values. Type is 0. Check type, object ID and page ID on the page. Ser...more >>

Grouping and Average Question
Posted by Dragon9994 at 12/18/2005 6:05:01 PM
Hi, My problem is as follows: I would like to take the average value of count column grouping by drive letter and date. Sample table DriveLetter Date Count K: 2005-07-05 06:00:00:000 33.555 K: 2005-07-05 06:30:00:000 35.555 K: 2005-07-05 07:00:00:000 48.555 K: 2005-07-05 07:3...more >>

can define UDF in DLL
Posted by M_Tarvirdi at 12/18/2005 4:19:17 PM
Dear Friends can I write some functions in DLL and use it in msmsql as udf and in sql statements? how? any advice? Thanks Tarvirdi ...more >>

Temp Tables
Posted by Ahmed Hashish at 12/18/2005 3:55:47 PM
Dear All I have the following SP that creates a temp table T1: CREATE PROCEDURE CreateT1(@Crit varchar(1000)) AS Begin declare @SQL varchar(8000) Set @SQL=3D'SELECT ... INTO ##T1 FROM .... ' if @Crit<>'' SET @SQL=3D@SQL + ' WHERE (' + @Crit1 +')' ...more >>

Error 213: Insert Error: Column name or values don't match table definition
Posted by rdixon5652 NO[at]SPAM hotmail.com at 12/18/2005 1:52:50 PM
Hello, I have had the below procedure working and in use for some time now, and suddently i started getting the below error: "Eorror 213: Insert Error: Column name or number of supplied values does not match table definition" Thank you CREATE PROCEDURE bat_LogData ( @ComputerName varchar...more >>



Group by problem!
Posted by Bill nguyen at 12/18/2005 1:26:42 PM
I need to use Group By on a text column that contain numeric data in different format. For example, column "terminalID" can contain "0123" and '123' pointing to the same terminal. Group by treats these as 2 different groups. I used CAST (terminalID as INT) as 'terminalID' in SELECT but sti...more >>

WRITETEXT when column value is NULL
Posted by Jeff at 12/18/2005 1:13:10 PM
Using SQL Server 2000 Standard --- I need to update the value of a TEXT column. When it's NULL I get the following exception: [NULL textptr (text, ntext, or image pointer) passed to WriteText function.] Okay - good, so I look in BOL to find out what to do. Here's what it says in the ...more >>

Pausing-Restarting SQL Server Service
Posted by Leila at 12/18/2005 10:41:51 AM
Hi, When I use NET PAUSE in cmd mode, the service pauses successfully but when I issue NET START again, the service stays in pause state unless I use service manager to start it. Any help would be greatly appreciated, Leila ...more >>

Adventure Works DB
Posted by Leila at 12/18/2005 10:39:56 AM
Hi, I need Adventure Works Database (OLTP) for SQL Server 2000. Are there any links available to download it? Thanks in advance, Leila ...more >>

trigger help
Posted by Matt at 12/18/2005 9:08:30 AM
Greetings, I am having some trouble with a trigger. This is my first attempt at creating a trigger so any help would be great. The function of the trigger is, on the insert of a row to check the value inserted into to column VEH_REPAIR_CODE. If that value is not 19, send an email to the value i...more >>

Help with writing a Stored Procedure
Posted by GTN170777 at 12/18/2005 5:06:02 AM
Hi there, I would be really grateful with some assistance with this, i am 100% new to SQL & Stored Procedures. I'm building an ASP web application, i need to be able to update two fields in two related tables & could really do with some assistance. The tables are tbCompany and tbemployee. t...more >>

Error in using xp_cmdshell and osql
Posted by Coen at 12/18/2005 3:28:01 AM
Hi, can anyone help me with the following xp_cmdshell/osql problem? To solve a problem with osql I use the two sql test-scripts. Script1 is loaded in Sql Query Analyzer. Executing scripts 1: this calls en execute script2, which prints a message to the output window. Quite simple. My proble...more >>


DevelopmentNow Blog