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 > november 2006 > threads for friday november 24

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

How to encode a date?
Posted by Stijn Verrept at 11/24/2006 6:09:27 PM
A function I seem to be missing in TSQL is to encode a date. For example: EncodeDate(2006, 8, 23) How can I best do this? -- Thanks in advance, Stijn Verrept....more >>

CLR Function - Dispose() problem
Posted by Chris Nusca at 11/24/2006 3:37:47 PM
Hi, I have a CLR table-valued function that pulls data from a 3rdParty OLEDB provider. When I call Dispose() on the .NET objects (System.Data.OleDb.*) and the end of my function Init() method, it causes COM interop errors which I cannot catch. I think it's a ThreadAbortException that cause...more >>

Columns_Updated function
Posted by Waldy at 11/24/2006 3:08:31 PM
Hi there, I am trying to provide auditing for a customer and was going to use the Columns_Updated function in my update trigger as I do not want to report that an update has occurred when someone just opens a record to view it and clicks the OK button. In that case, only the ti...more >>

update trigger on a table
Posted by Dahab at 11/24/2006 2:55:18 PM
Hi I have a table where two fields together is unik id. On the table I have a update trigger that is updating a date field. The trigger goes like this: Update table1 set date1 = getdate() where id1= (select id1 from inserted) and id2=(select id2 from inserted) This is ok when only one reco...more >>

Need help with formatting ouput
Posted by ajmister at 11/24/2006 2:55:08 PM
Hi My query us extracting values in the following format. create table tmp_id ( id int, count int ) id count 1 10 2 2 3 7 4 20 I would the values in the count field to be aligned to the right ...more >>

stored proc exists?
Posted by lord.zoltar NO[at]SPAM gmail.com at 11/24/2006 1:40:26 PM
I'm working on a small tool that makes changes to a database (SLQ Server 2005, but SQLExpress is deployed at the client's location). It has to either create a new stored procedure (if it doesn't exist), or it has to update it with a patch (if the procedure already exists). Currently, I'm tryin...more >>

Cluster Index
Posted by Mike at 11/24/2006 1:06:02 PM
anybody know the difference between clustered and a non-clustered index. Mike...more >>

Check for value passed in IF stmt
Posted by Rob at 11/24/2006 12:55:01 PM
I'm trying to do something like this... CREATE PROC up_myproc @pcode char (3) AS IF EXISTS (SELECT srvname from sysservers WHERE srvname like '%@pcode%') ::::::::::::: ....where I validate if the value passed in the SP (@pcode) is contained in the srvname column before the rest of the co...more >>



Using dotnet functions in an T-SQL update statement
Posted by WalterWalt at 11/24/2006 10:39:07 AM
How can I use this in SQL to update a table's data? Thanks using System; using System.Globalization; using System.Threading; namespace ToTitleCase1 { class Program { static void Main(string[] args) { string title = "this is my converted string"; ...more >>

disable the trigger
Posted by mecn at 11/24/2006 10:07:24 AM
Hi, I need to insert special records into one table on daily basis. I need to disable a trigger in the table, after my records inserted i need enable the trigger. How do accomplish ny task thanks ...more >>

Aggregate query misbehaviour
Posted by dan artuso at 11/24/2006 9:19:00 AM
Hi All, Has anyone ever seen the behaviour where a query containing an aggregate, (Count in this case) has to be run multiple times in succession until the 'counts' are correct? -- Dan ...more >>

TRIGGER help
Posted by Scott Rymer at 11/24/2006 9:18:30 AM
Using SQL2000 STD SP3... I'm trying to interface with our ERP database and I basically need to extend the table definition into my own database (I don't want to touch the ERP software's table defs). When a table in the ERP software has rows inserted, updated or deleted, I want to add/updat...more >>

Getting max value - group by clause
Posted by MJ at 11/24/2006 8:06:06 AM
Hi, I'm confused as to how to do this and would appreciate any help given! My data: Customer# Itemname Date Purchased Cost 1 Broom Jan 1, 2006 5.00 1 Broom Feb 2, 2006 6.00 1 Dustpan Feb 3, 2006 4.00 2 ...more >>

Finding bad data in view
Posted by VMI at 11/24/2006 6:50:01 AM
Whenever I query a a view, I get the error: "Error converting data type varchar to numeric." How can I find what the row with the bad data is without having to dissect the view and all its tables? Thanks....more >>

help needed
Posted by ramyakrishnakumar NO[at]SPAM yahoo.co.in at 11/24/2006 3:23:18 AM
Hi all, I am facing one problem. I have one test Stored Procedure in SQL as below [having one insert query followed by the select query] CREATE/ALTER PROCEDURE MigrateCAMTEST AS BEGIN insert into test values(1) SELECT CampaignName FROM MigrateCAMTab END Here MigrateCAMTab ...more >>

dba access to a remote sql server
Posted by xperre van wilrijk at 11/24/2006 3:17:06 AM
Hi, We own a remote webserver. It's ower machine, but it's in a datacenter specialized in webhosting, dedicated servers, ... So far, we've only put online websites we've made ourself for our clients using asp, asp.net, mysql and sqlserver express. We use remote desktop to update the data...more >>

Query Problem, please help
Posted by Sherebiah at 11/24/2006 2:30:51 AM
Group Please see the data set example shown below Master Table **************** Column1 Column2 R1 C1 R2 C2 Child Table ************* Column1 Column2 Column3 R1 X1 A1 R1 X2 A2 R1 X3 ...more >>

— istead of -
Posted by xgopi at 11/24/2006 1:16:01 AM
Hi, I inserted the following value to a table. Column datatype is varchar the value is 'Customer List - Based on the return date' The value has been inserted sucessfully . On selection the following is what i get 'Customer List — Based on the return date' My question is 1. W...more >>


DevelopmentNow Blog