Viewing 15 posts - 121 through 135 (of 637 total)
Actually I found a function written in another post....
https://www.sqlservercentral.com/forums/topic1001736-391-1.aspx
CREATE FUNCTION RemoveNonASCII
(
@nstring nvarchar(255)
)
RETURNS varchar(255)
AS
BEGIN
DECLARE @Result varchar(255)
July 20, 2017 at 6:59 am
July 20, 2017 at 6:56 am
Do not reply,.... I am ok with the following SQl that I found in some website. Works well!
So my next question:
I need to convert those illegal ( out...
July 20, 2017 at 6:52 am
I FOUND THE ANSWER.....
NO NEED TO REPLY PLEASE... The following works
So I get my count of 3
If( object_id('tempdb..#t') is not null )DROP TABLE #t;
June 30, 2017 at 2:00 pm
June 30, 2017 at 1:44 pm
IGNORE THE ABOVE POST-- I was wrong
Help me here please ... I need to count the distinct codes between a range. So the output I am expecting is 2...
June 30, 2017 at 1:42 pm
One solution might be for me to add a where clause that says
WHERE CODE BETWEEN 'D0100' AND 'D0103'
That wont work for me. Why ?
I plan to...
June 30, 2017 at 1:26 pm
Kaye Cahs - Thursday, June 29, 2017 3:24 PMI think 114 is the one you're looking for. It will return hh:mi:ss:mmm(24h).
https://docs.microsoft.com/en-us/sql/t-sql/functions/cast-and-convert-transact-sql#date-and-time-styles
Yeas...
June 30, 2017 at 6:53 am
June 29, 2017 at 3:10 pm
Thank you .. In the mean time I figured out...
I dont think we need to give a name to a constraint.. So the script works
IF EXISTS...
June 29, 2017 at 3:01 pm
June 29, 2017 at 2:34 pm
Here is my next question
I have a need to load new data into dbo.NPI100
However before I do that I like to make a backup copy of the table.
June 29, 2017 at 2:31 pm
CREATE TABLE dbo.NPI100
(
...
June 29, 2017 at 1:49 pm
SELECT TOP ...
FROM dbo.table_name
ORDER BY NEWID()
I presume...
June 29, 2017 at 1:34 pm
June 26, 2017 at 10:35 am
Viewing 15 posts - 121 through 135 (of 637 total)