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 saturday december 31

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

Appending Text to a SQL Text Data Type
Posted by bobnunny at 12/31/2005 8:19:59 PM
I am trying to use a cursor to create a mass Text field with the results from the selections from a series of VarChar(8000) values. I know I need to use UpdateText, but it only seems to store the 1st one it reads. Can anyone help? Here's my text: Declare @TriggerText nVarChar(4000) Declare ...more >>


SELECT INTO PROBLEM
Posted by Savas Ates at 12/31/2005 4:08:46 PM
I have two tables.. They are both identical.. I want to select some fields from one and insert to another one. How can i do it ? SELECT urunadi INTO [AlisverissaatiXML].[dbo].[urunler] FROM [Kangurum].[dbo].[urunler] WHERE urunadi='ROMANSON PHIL MEETY' It returns The object name 'A...more >>

Cursor is the only choice?
Posted by Frank Lee at 12/31/2005 2:38:45 PM
If I want to do a process in a sequence order, is Cursor my only choice? for example, ------------------------------------------------------------ declare @ID uniqueidentifier declare MyCursor cursor local for select id from table where created>thedate order by created for read only...more >>

insert a un-ordered data to a clustered indexed column, what would happen?
Posted by Frank Lee at 12/31/2005 2:13:11 PM
Q1, If a column is clustered indexed and there are more than 500000000 records in the table. Now, if I insert a data which should be inserted to about the 10th location according to the clustered index, what would happen? Will system stupidly move all other data after the 10th location to nex...more >>

The case of the inadequate case function
Posted by Daniel Manes at 12/31/2005 2:05:18 PM
In most programming languages, there is a way to branch your code in multiple directions depending on the value of some switch variable. My situation right now is that I have a variable, @PostType, that determines which stored procedure should be called. I tried to use the CASE statement, but ...more >>

SELECT Min Date
Posted by Scott at 12/31/2005 12:09:18 PM
My below code selects the last 10 days of data from Northwind, how can I set that variable to the min date or dtStartDate variable? To be clear, my results below are fine, however, I need a SET dtStartDate = "The min date that below CODE is using as it's start date where criteria." CODE 1:...more >>

How to fetch AutoANSIToOEM, RegisteredOrganzation, etc. in SQLServer?
Posted by Mark Findlay at 12/31/2005 11:23:52 AM
I have both default instances and named instances of SQLServer. My reporting program is able to read the AutoANSIToOEM, RegisteredOrganization and UseIntlSettings properties from the registry under the HKLM\SOFTWARE\MICROSOFT\MSSQLSERVER\Client\DB-Lib key - but only for the DEFAULT instance...more >>

T-SQL 258 XML Iteration Boundary?
Posted by LvBohemian at 12/31/2005 9:47:01 AM
T-SQL 258 XML Iteration Boundary? Here is the scenario… I have to get a set of particular records for a particular time frame in a MSSQL 2000 table, then I have to pass them one at a time to a web service that returns additional information as xml for each applicable record from a legacy...more >>



MD5 Hashing rows?
Posted by Edgars Klepers at 12/31/2005 1:06:01 AM
I'm trying to implement some sort of security checking against database modification. I'm thinking to store a list with Hash values for row sets. i.e. [pseudocode] byte[] returnHash = MD5Hash( SELECT stuff FROM database WHERE junk ) [/pseudocode] Is there a way to do an MD5 hash or ...more >>

SID to dotnet SecurityIdentifier
Posted by Edgars Klepers at 12/31/2005 1:00:02 AM
From my research, SID's are supposed to be stored in an SQL database as a varbinary(85). What is the best way to translate the SID to the dotnet 2.0 SecurityIdentifier type? I am working in C# but can probably translate VB code over as well if that way is easier to explain. Thanks ...more >>


DevelopmentNow Blog