Viewing 15 posts - 8,881 through 8,895 (of 10,144 total)
You could use a tally table:
DECLARE @Search_Surname VARCHAR(40)
SET @Search_Surname = 'MIxED CaSE SUrNAME'
SELECT @Search_Surname = STUFF(@Search_Surname, NUMBER, 1, '#')
FROM NUMBERS
WHERE NUMBER <= LEN(@Search_Surname)
AND ASCII(SUBSTRING(@Search_Surname, NUMBER, 1)) > 90
SELECT REPLACE(@Search_Surname,...
January 27, 2009 at 5:44 am
Steve, can you post the following please -
The statement from the sproc which writes out the text file
A sample of the text file to show exactly what you are...
January 27, 2009 at 4:23 am
Provided that there aren't any gaps in each group, then this will work:
DROP TABLE #ProductStatus
CREATE TABLE #ProductStatus (ItemCode varchar(20), Units int, Place varchar(5), Status int, StartDate datetime, EndDate datetime, Flag...
January 27, 2009 at 3:09 am
Old-fashioned SQL works well too:
SET DATEFORMAT MDY
DROP TABLE #Temp
CREATE TABLE #Temp (Id_solution INT, Parameter_nm VARCHAR(50), Parameter_value VARCHAR(50))
INSERT INTO #Temp (Id_solution, Parameter_nm, Parameter_value)
SELECT 11111111, '"Data1":"Sample1"','9' UNION ALL
SELECT 11111111, '"Table1"','7' UNION ALL
SELECT...
January 26, 2009 at 2:58 am
Hi Phil
Looking at your query, I reckon it can be simplified quite a bit - which would usually help with aggregation. Let's have a try.
Firstly, changing it so that the...
January 25, 2009 at 4:20 am
Numerous udf's have been posted, search under split string, e.g. http://www.sqlservercentral.com/scripts/Miscellaneous/31913/
This[/url] excellent article shows how to do it with a tally table.
Cheers
ChrisM
January 22, 2009 at 7:24 am
Lynn Pettis (1/21/2009)
January 21, 2009 at 10:09 am
munishprathap (1/20/2009)
i can achieve this task by the following Query,please let me know your feedback
IF EXISTS ( SELECT * FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_NAME = 'Note'
AND...
January 21, 2009 at 7:01 am
Jeff Moden (1/20/2009)
January 20, 2009 at 7:07 am
Christopher Stobbs (1/20/2009)
I'm with Jeff on this, why do you need to make the change?
Because...
There's no data in the table, although for the purpose of this exercise we must assume...
January 20, 2009 at 6:19 am
munishprathap (1/20/2009)
at tht time thy dnt need to copy the table content
thy need only to change the data type Datetime to...
January 20, 2009 at 5:45 am
munishprathap (1/20/2009)
No
If no other students are using it, why don't you simply script a new table using EM and copy the data into it?
January 20, 2009 at 5:25 am
munishprathap (1/20/2009)
Ok thts greatits having 10 rows and one column have DateTime type with values.
Is this table heavily used at present?
January 20, 2009 at 5:20 am
munishprathap (1/20/2009)
we cant predict no. of rows affected assume tht tables have 10 rows
How many rows do you have in the table right now?
January 20, 2009 at 4:57 am
munishprathap (1/20/2009)
not lik tht,values entered in these column was datetime only but in future i need to make entries
only as bigint
How many rows are currently affected?
January 20, 2009 at 4:50 am
Viewing 15 posts - 8,881 through 8,895 (of 10,144 total)