Viewing 15 posts - 76 through 90 (of 241 total)
Try this:
SELECT * INTO #Values
FROM (
SELECT 'Timothy' AS Search_value, 'Tim' AS Replace_Val UNION ALL
SELECT 'Kathleen', 'Kathy' UNION ALL
SELECT 'Joseph', 'Joe' UNION ALL
SELECT 'Michael','Mike'
)...
April 29, 2019 at 9:44 pm
There are formatting functions. You should be able to convert to any format you want.
=Format(Fields!MyDate.Value, "dddd, MMM d yyyy")
April 26, 2019 at 7:28 pm
Function ChrW takes Unicode code. So find the one you like and pass it.
https://www.rapidtables.com/code/text/unicode-characters.html
April 26, 2019 at 7:09 pm
I believe it should be True if you run remote SPs. For example you connected to ServerA and want to execute SP on ServerB:
exec ServerB.MyDB.dbo.MySP
April 26, 2019 at 5:43 pm
SELECT CHAR(149)
Here is what I use to display little pointy triangle on one of my reports. This is 2008 thou.
Microsoft.VisualBasic.Strings.ChrW(9658)
April 26, 2019 at 5:23 pm
Are you sure it's a SQL Server's message? Can you post exact text and message ID?
April 25, 2019 at 8:55 pm
Same technique as before. For the first 3 months of 2018 it'll look like this:
SELECT
C.prefix
,[Jan-18] = COUNT(CASE WHEN CONVERT(CHAR(6), W.[timestamp], 112) = '201801' THEN...
April 23, 2019 at 9:11 pm
Assuming that division is on Foreign vs. Local currency, something like this:
SELECT
keyinstn,
Abbreviation,
RatingSymbol = MAX(CASE WHEN ratingtypedesc LIKE 'Foreign%'
...
April 23, 2019 at 6:18 pm
I'm getting error:
Msg 208, Level 16, State 1, Line 67
Invalid object name 'CS_REPTOT'.
April 18, 2019 at 10:11 pm
Thanks Jeff! I'm not an OP but still...
And if we want to get days out of it and keep hours within 24 then last SELECT would be something like this:
April 18, 2019 at 6:19 pm
Another options is to delete in smaller chunks over period of time.
Dropping article will invalidate snapshot.
April 18, 2019 at 4:51 pm
You probably will have better luck on some VB.Net forum.
April 17, 2019 at 5:42 pm
The OP of this post suggests that 1899-12-30 is coming from Access DB.
April 17, 2019 at 5:28 pm
DECLARE @D DATETIME = '1899-12-30 09:12:32.000'
SELECT @D, CAST(@D AS TIME), CAST(CAST(@D AS TIME) AS CHAR(8))
April 17, 2019 at 2:23 pm
From what I learnt in this post it could be waiting for OLE DB info while parsing query during compilation. So, maybe (just guessing here) there is a difference...
April 16, 2019 at 10:23 pm
Viewing 15 posts - 76 through 90 (of 241 total)